How to get the address of gpio related register

When possible, please provide the following info:
Hardware Platform: [Example: DRIVE AGX Xavier™ Developer Kit, DRIVE AGX Pegasus™ Developer Kit]
Software Version: [Example: DRIVE Software 10, DRIVE Software 9]
Host Machine Version: [Example: native Ubuntu 18.04]
SDK Manager Version: [Example: 1.0.1.5538]

I want to use devmem2 to directly operate the registers of gpio, such as gpio B59, how do I get the related registers of the gpio, such as where to determine the base address of the gpio, how to set it as input and output, from which register to read input values, etc.

Hi,

Please use your business address. Thanks.