Accessing a certain I/O controller using memory-mapped I/O
You should make a small driver layer, so that the main doesn't know about the low level details of what is going on - and here in that .c file that you have implemented the driver in, the constants goes as well. 

Then you call your driver and all is good :)