Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any DMA Linux kernel driver example with PCIe for FPGA?

I would like to write a driver in kernel space that:

  • Communicate a FPGA connected by PCIe in a embedded system( with powerPC).
  • It uses DMA to transfer information from the FPGA to RAM.
  • User programs have to access to this information.

I need some example that make something similar to guide me. Does anyone any idea where I can found some source?

like image 435
manolo tunez Avatar asked Sep 15 '15 18:09

manolo tunez


1 Answers

Connectal (http://www.connectal.org) is an open source framework that enables user-space software to communicate to Xilinx or Altera FPGAs. Very little of that communication involves the device-driver, actually.

Connectal supports message-passing between the software and hardware over memory mapped hardware FIFOs, and it supports shared memory via DMA from the FPGA.

The device-driver is designed to be architecture independent but PCIe communication has only been tested from x86.

Connectal also supports Zynq, so some of the problems you will run into (non-snooped I/O) have been debugged.

Connectal's hardware is currently implemented in Bluespec Systems Verilog and uses Xilinx or Altera PCIe cores.

like image 90
Jamey Hicks Avatar answered Nov 16 '22 18:11

Jamey Hicks