Help Interface by mini PCI express

Hello to all. I have intel Galileo and the card communicates with embedded linux serial port. I would like to set the program that I part graphical interface to PCI Express. Can anyone help me with writing the program?