EDT PCD SDK Documentation 6.1.0
|
Functions to setup and manage character device (chardev) interfaces associated with a PCI(e) device. More...
Functions | |
int | edt_chardev_init (void) |
Create chardev region and device class, used by all char device interfaces to this PCI device. More... | |
int | edt_chardev_cleanup (void) |
Cleanup after edt_chardev_init(). More... | |
int | edt_chardev_create_interfaces (const Edt_Dev *edt_p) |
Create character device interfaces to this PCI device. More... | |
int | edt_chardev_destroy_interfaces (const Edt_Dev *edt_p) |
Remove all character device files previously created by edt_chardev_create_interfaces() More... | |
Functions to setup and manage character device (chardev) interfaces associated with a PCI(e) device.
int edt_chardev_init | ( | void | ) |
Create chardev region and device class, used by all char device interfaces to this PCI device.
int edt_chardev_cleanup | ( | void | ) |
Cleanup after edt_chardev_init().
int edt_chardev_create_interfaces | ( | const Edt_Dev * | edt_p | ) |
Create character device interfaces to this PCI device.
If this is a PCD driver, this will create device files like:
/dev/pcd0_0 /dev/pcd0_1 /dev/pcd0_2
And likewise for PDV:
/dev/pdv0_0 /dev/pdv0_1 /dev/pdv0_2
...where the first number is the EDT device's "unit" number, and the second is the the DMA channel index.
edt_p | EDT device structure. All channel structs must be initialized before calling this function. |
int edt_chardev_destroy_interfaces | ( | const Edt_Dev * | edt_p | ) |
Remove all character device files previously created by edt_chardev_create_interfaces()
edt_p | EDT device structure. |