Beagleboard xM platform.h for linux kernel driver

Hi All,
I am newbie of linux device driver. I want to start to learn how to program one linux device driver such as GPIO. And I am looking for where to find the platform.h which stores the registers of AM/DM37xx CPU in Beagleboard xM.
Please give me some advices to learn.
Thanks in advance, Regards.