Can I contribute S-Corp shareholder distributions to IRA?

I'm both an owner and an employee of an S-Corp. Is the maximum amount I'm allowed to contribute to IRA the amount shown in my W-2 Box 1 (assuming it's below $6,000)? Or can I contribute my shareholder distribution as well?

 

Thanks for your help!