memory mapped in Android...........

Hi friends,

I m using Beaglebone black in android OS , plz help me code for GPIO (read, write & direction set) using memory mapped.