Fennix
1.0.0
Full Documentation
|
Go to the source code of this file.
Enumerations | |
enum | DeviceType { DEVICE_TYPE_MASK = 0b1111111100000000000000000000000000000000 , DEVICE_TYPE_NONE = 0b0000000000000000000000000000000000000000 , DEVICE_TYPE_INPUT = 0b0000000100000000000000000000000000000000 , DEVICE_TYPE_AUDIO = 0b0000001000000000000000000000000000000000 , DEVICE_TYPE_NETWORK = 0b0000010000000000000000000000000000000000 , DEVICE_TYPE_BLOCK = 0b0000100000000000000000000000000000000000 , INPUT_TYPE_NONE = DEVICE_TYPE_INPUT + 0 , INPUT_TYPE_KEYBOARD = DEVICE_TYPE_INPUT + 2 , INPUT_TYPE_MOUSE = DEVICE_TYPE_INPUT + 4 , INPUT_TYPE_JOYSTICK = DEVICE_TYPE_INPUT + 8 , INPUT_TYPE_TOUCHSCREEN = DEVICE_TYPE_INPUT + 16 , INPUT_TYPE_GAMEPAD = DEVICE_TYPE_INPUT + 32 , INPUT_TYPE_ACCELEROMETER = DEVICE_TYPE_INPUT + 64 , INPUT_TYPE_GYROSCOPE = DEVICE_TYPE_INPUT + 128 , INPUT_TYPE_MAGNETOMETER = DEVICE_TYPE_INPUT + 256 , AUDIO_TYPE_NONE = DEVICE_TYPE_AUDIO + 0 , AUDIO_TYPE_PWM = DEVICE_TYPE_AUDIO + 2 , AUDIO_TYPE_DSP = DEVICE_TYPE_AUDIO + 4 , AUDIO_TYPE_PCM = DEVICE_TYPE_AUDIO + 8 , AUDIO_TYPE_MIDI = DEVICE_TYPE_AUDIO + 16 , NETWORK_TYPE_NONE = DEVICE_TYPE_NETWORK + 0 , NETWORK_TYPE_ETHERNET = DEVICE_TYPE_NETWORK + 2 , NETWORK_TYPE_WIFI = DEVICE_TYPE_NETWORK + 4 , NETWORK_TYPE_BLUETOOTH = DEVICE_TYPE_NETWORK + 8 , NETWORK_TYPE_UART = DEVICE_TYPE_NETWORK + 16 , BLOCK_TYPE_NONE = DEVICE_TYPE_BLOCK + 0 , BLOCK_TYPE_SDCARD = DEVICE_TYPE_BLOCK + 2 , BLOCK_TYPE_HDD = DEVICE_TYPE_BLOCK + 4 , BLOCK_TYPE_SSD = DEVICE_TYPE_BLOCK + 8 , BLOCK_TYPE_USB = DEVICE_TYPE_BLOCK + 16 , BLOCK_TYPE_NVME = DEVICE_TYPE_BLOCK + 32 , BLOCK_TYPE_CDROM = DEVICE_TYPE_BLOCK + 64 , BLOCK_TYPE_FLOPPY = DEVICE_TYPE_BLOCK + 128 } |
Functions | |
EXTERNC dev_t | CreateDeviceFile (const char *name, mode_t mode, const struct InodeOperations *Operations) |
EXTERNC dev_t | RegisterDevice (DeviceType Type, const struct InodeOperations *Operations) |
EXTERNC int | UnregisterDevice (dev_t Device) |
enum DeviceType |
Definition at line 31 of file device.h.
EXTERNC dev_t CreateDeviceFile | ( | const char * | name, |
mode_t | mode, | ||
const struct InodeOperations * | Operations | ||
) |
EXTERNC dev_t RegisterDevice | ( | DeviceType | Type, |
const struct InodeOperations * | Operations | ||
) |
EXTERNC int UnregisterDevice | ( | dev_t | Device | ) |