SEP IRA

If you have both W2 and 1099 income, is the SEP IRA maximum contribution calculated from the combined income or only the self-employment 1099 income?