Files
mop3/include/devices.h
kamkow1 288a4b4e83
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 35s
Build documentation / build-and-deploy (push) Successful in 27s
Implement storage device partition rescan (XDRV_PARTITION_RESCAN), Self-hosted installation WIP
2026-04-16 00:09:46 +02:00

42 lines
987 B
C

#ifndef _DEVICES_H
#define _DEVICES_H
#define DEVICE_TYPE_DEBUGCONSOLE 0
#define DEVICE_TYPE_TERMINAL 1
#define DEVICE_TYPE_KEYBOARD 2
#define DEVICE_TYPE_DRIVE 3
#define DEVICE_TYPE_USB_CTRL 4
/* Device flags */
#define DEVICE_FLAG_PCI (1 << 0)
#define DEVICE_FLAG_ISA (1 << 1)
#define DEVICE_FLAG_USB (1 << 2)
#define DEVICE_FLAG_VIRT (1 << 3)
/* debugconsole device */
#define DEBUGCONSOLE_PUTSTR 0
/* terminal device */
#define TERMINAL_PUTSTR 0
#define TERMINAL_DIMENSIONS 1
/* keyboard device */
#define KB_READ_KEY 0
/* drive devices */
#define XDRV_TYPE_RAMDRV 0
#define XDRV_TYPE_PARTDRV 1
#define XDRV_TYPE_IDEDRV 2
#define XDRV_TYPE_USBDRV 3
#define XDRV_GET_SIZE 0
#define XDRV_GET_SECTOR_SIZE 1
#define XDRV_GET_DEVICE_TYPE 2
#define XDRV_READ 3
#define XDRV_WRITE 4
#define XDRV_PARTITION_RESCAN 5
/* usb controller devices */
#define XUSBCTRL_POLL_DRIVER 0
#endif // _DEVICES_H