USB driver polling user app, handle only one XHCI controller for now, Implement USB device addressing
This commit is contained in:
9
include/device_info.h
Normal file
9
include/device_info.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef _DEVICE_INFO_H
|
||||
#define _DEVICE_INFO_H
|
||||
|
||||
struct device_info {
|
||||
int type;
|
||||
char key[0x100];
|
||||
};
|
||||
|
||||
#endif // _DEVICE_INFO_H
|
||||
@@ -1,6 +1,12 @@
|
||||
#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
|
||||
|
||||
/* debugconsole device */
|
||||
#define DEBUGCONSOLE_PUTSTR 0
|
||||
|
||||
@@ -21,4 +27,7 @@
|
||||
#define XDRV_READ 3
|
||||
#define XDRV_WRITE 4
|
||||
|
||||
/* usb controller devices */
|
||||
#define XUSBCTRL_POLL_DRIVER 0
|
||||
|
||||
#endif // _DEVICES_H
|
||||
|
||||
@@ -38,5 +38,6 @@
|
||||
#define SYS_STREAM_WRITE 35
|
||||
#define SYS_STREAM_READ 36
|
||||
#define SYS_GET_PROC_INFO 37
|
||||
#define SYS_GET_DEVICE_INFO 38
|
||||
|
||||
#endif // _M_SYSCALL_DEFS_H
|
||||
|
||||
Reference in New Issue
Block a user