#include <sys/device.h>
Data Fields | |
NUTDEVICE * | dev_next |
Link to the next device structure. | |
u_char | dev_name [9] |
Unique device name. | |
u_char | dev_type |
Type of interface. | |
u_short | dev_base |
Hardware base address. | |
u_char | dev_irq |
Interrupt registration number. | |
void * | dev_icb |
Interface control block. | |
void * | dev_dcb |
Driver control block. | |
int(* | dev_init )(NUTDEVICE *) |
Driver initialization routine. | |
int(* | dev_ioctl )(NUTDEVICE *, int, void *) |
Driver control function. |
|
Hardware base address. Will be set by calling NutRegisterDevice(). On some device drivers this address may be fixed. |
|
Driver control block. Points to a device specific information block. |
|
Interface control block. With stream devices, this points to the IFSTREAM structure and with network devices this is a pointer to the IFNET structure. |
|
Driver initialization routine. With stream devices this is called during NutDeviceOpen(). For network devices this routine is called within NutNetIfConfig(). |
|
Driver control function. Used to modify or query device specific settings. |
|
Interrupt registration number. Will be set by calling NutRegisterDevice(). On some device drivers the interrupt may be fixed. |
|
Type of interface. May be any of the following:
|