USB driver polling user app, handle only one XHCI controller for now, Implement USB device addressing
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 3m47s
Build documentation / build-and-deploy (push) Successful in 2m38s

This commit is contained in:
2026-03-29 18:59:20 +02:00
parent 69f063198a
commit 482afb47d7
22 changed files with 383 additions and 56 deletions

9
include/device_info.h Normal file
View 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

View File

@@ -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

View File

@@ -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