Interfacing atxmega128a with SD Card
These sort of things should be included in avr/io.h, which you should be including at some point.  Check to make sure you have

#include &lt;avr/io.h&gt;


in the appropriate locations (top of C files and/or included header files).