EDT PCD SDK Documentation 6.1.0
edtdrvlnx.h File Reference

(git dc05dddc, 2023-10-26)

#include "edtdef.h"
#include "edt_lnx_kernel.h"
#include "edt_lnx_mm.h"
#include "edt_pci_devices.h"
#include "edtreg.h"
#include "edt_shared_types.h"
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/ioctl.h>
#include <linux/pci.h>
#include <linux/version.h>
#include "Edt_Dev.h"
#include "pcd.h"
Include dependency graph for edtdrvlnx.h:
This graph shows which files directly or indirectly include this file:

Functions

Edt_Dev * edt_create_device_structures (struct pci_dev *pci_dev, const struct pci_device_id *pci_id, unsigned int unit_number)
 Creates and initializes all DMA channel pointers. More...
 

Detailed Description

Author
EDT tech@.nosp@m.edt..nosp@m.com

Function Documentation

◆ edt_create_device_structures()

Edt_Dev * edt_create_device_structures ( struct pci_dev *  pci_dev,
const struct pci_device_id *  pci_id,
unsigned int  unit_number 
)

Creates and initializes all DMA channel pointers.

Should only be called from edt_pcidrv_probe().

Will call edt_init_channel_struct() on each channel pointer it creates.

Parameters
pci_devPCI device being added.
pci_idPCI device id structure to read information from.
unit_numberUnit number to assign to this device and all it's channels.
Returns
The channel 0 pointer if successful. NULL otherwise.