How to contribute to 401k from 1099 income

Hello,

What is the max amount I can contribute to solo 401k from my 1099 income? I don't  have any other income. Is there a percentage of income or I really can go 100% as long as I am within limits?

Thanks

S