Purchased home as primary residence (but also renting out part of it)

How should I treat a property that is both my primary residence and a rental property for tax purposes?