Char driver for mSGDMA.
More...
Go to the source code of this file.
Advacnes to next buffer, returns pointer to it.
- Parameters
-
| dev | DMA structure |
| buf_to_write | Returns address of a buffer to write to |
| int dma_dev_allocate_buffers |
( |
struct pci_dev * |
dev, |
|
|
struct dma_dev_struct * |
dma |
|
) |
| |
Allocates DMA buffers.
- Parameters
-
| dev | PCI device |
| dma | DMA strucutre to allocate memory |
Fields buf_number and buf_len must have valid values
| int dma_dev_create |
( |
struct dma_dev_struct * |
dev, |
|
|
struct class * |
best_class |
|
) |
| |
Creates new DMA char device.
- Parameters
-
| dev | Structure with DMA info |
| best_class | Class which this device will be part of |
Creates new char device, which represents FPGA mSGDMA Allowed operation on device is read(), which returns most recent data from buffers
| void dma_dev_free_buffers |
( |
struct pci_dev * |
dev, |
|
|
struct dma_dev_struct * |
dma |
|
) |
| |
Frees DMA buffers.
- Parameters
-
| dev | PCI device |
| dma | DMA strucutre to allocate memory |
| void dma_dev_remove |
( |
struct dma_dev_struct * |
dev, |
|
|
struct class * |
best_class |
|
) |
| |
Removes DMA char device.
- Parameters
-
| dev | Structure with DMA info |
| best_class | Class which this device will be part of |
Resets DMA.
- Parameters
-
| board | Pointer to structure with board specific data |