how to use GPMC to connect one FPGA

I am not care which FPGA,I just want a source code demo.