Collaboration diagram for Device Management:
Data Structures | |
struct | _NUTDEVICE |
Device structure. More... | |
struct | _NUTVIRTUALDEVICE |
Virtual device structure. More... | |
struct | _IFSTREAM |
Stream interface information structure. More... | |
struct | _NUTFILE |
File structure. More... | |
struct | _NUTFILE |
File structure. More... | |
Defines | |
#define | IFTYP_RAM 0 |
RAM device. | |
#define | IFTYP_ROM 1 |
ROM device. | |
#define | IFTYP_STREAM 2 |
Stream device. | |
#define | IFTYP_NET 3 |
Net device. | |
#define | IFTYP_TCPSOCK 4 |
TCP socket. | |
#define | IFTYP_CHAR 5 |
Character stream device. | |
#define | IFTYP_CAN 6 |
CAN device. | |
#define | IFTYP_FS 16 |
file system device | |
#define | NUTFILE_EOF ((NUTFILE *)(-1)) |
Typedefs | |
typedef _NUTDEVICE | NUTDEVICE |
Device structure type. | |
typedef _NUTVIRTUALDEVICE | NUTVIRTUALDEVICE |
Device structure type. | |
typedef _IFSTREAM | IFSTREAM |
Stream interface type. | |
typedef _NUTFILE | NUTFILE |
File structure type. | |
Functions | |
NUTDEVICE * | NutDeviceLookup (CONST char *name) |
Find device entry by name. | |
int | NutRegisterDevice (NUTDEVICE *dev, uptr_t base, u_char irq) |
Register and initialize a device. | |
int | NullIOCTL (NUTDEVICE *dev, int req, void *conf) |
Perform control functions. | |
Variables | |
NUTDEVICE * | nutDeviceList = 0 |
Linked list of all registered devices. | |
NUTDEVICE | devNull |
Null device information structure. |
|
Find device entry by name.
|
|
Register and initialize a device. Initializes the device and adds it to the system device list. Applications should call this function during initialization for each device they intend to use.
|
|
Perform control functions. This function is called by the ioctl() function of the C runtime library.
|
|
Initial value: { 0, {'n', 'u', 'l', 'l', 0, 0, 0, 0, 0}, 0, 0, 0, 0, 0, 0, NullIOCTL, NullRead, NullWrite, NullWriteP, NullOpen, NullClose, 0 }
|