Originally Posted by darren
So if i understand correctly you have a box in the ceiling for the fan. To this box you have a hot and neutral ran from a junction box in the attic.
If you want to wire this up for the fan and light work separatly you will need to run a 3 wire between the fan box and your switch. On this 3 wire you would put the hot onto the white and then this would feed both of your switches. Coming back from your switches you would put the black and red and this would give you two hots that are switched in the fan box.
OP says all he has to work with is 12-2, So run 2 pieces of 12- 2 from the fan box to the switch box. Connect at the fan box the 2 whites to the hot supply (mark to show as hot as other posters have stated). Connect a black to the fan motor (usually black), connect the other black to the light kit (usually blue). At the switch box connect a switch across each white /black pair.