How to access GPIO registers

Hi all,

I am trying to learn developing device drivers. I dont know how to
access GPIO registers from kernel space. Tried ioremap(). but I am not
successful. Can anyone suggest please me the best and efficient way to
do it.

GPIO has its own API. First of all, read kernel/Documentatio/gpio.txt.
It is a great starting point.

Daniele