Files
mop3/include/devices.h
kamkow1 d79556a58f
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 4m29s
Build documentation / build-and-deploy (push) Successful in 3m51s
devices utility app
2026-04-03 02:33:47 +02:00

40 lines
925 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_GET_SIZE 0
#define XDRV_GET_SECTOR_SIZE 1
#define XDRV_GET_DEVICE_TYPE 2
#define XDRV_READ 3
#define XDRV_WRITE 4
/* usb controller devices */
#define XUSBCTRL_POLL_DRIVER 0
#endif // _DEVICES_H