Forum Discussion
Altera_Forum
Honored Contributor
14 years agoFor (1) I've used a simple driver that gets the virtual address from pci_iomap() then in response to read/write requests (normally pread/pwrite) from the application does a copy_to/from_user() directly from the io space.
Remember to check the limit of the user copy! However this will be somewhat slow - you will almost certainly need to use DMA (initiated at either end) in order to get reasonable sized PCIe requests. Possibly very careful use of the data cache will suffice.