Files
mop3/include/devices.h

41 lines
955 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
/* usb controller devices */
#define XUSBCTRL_POLL_DRIVER 0
#endif // _DEVICES_H