xhci: 获取设备描述符并配置endpoint (#50)

* 调整:使用宏定义来声明usb请求包

* new: 获取usb设备的config描述符

* new: 获取接口及端点描述符

* 临时修正系统根分区的挂载,使得能在真机上启动shell

* xhci: set_config

* bugfix: 解决之前错误的将control_endpoint信息绑定在xhci_hc下的bug

* xhci configure endpoint(存在bug

* 1

* 解决了configure endpoint出错的问题

* new: xhci驱动程序能够配置端点

* 删除trace usb的代码

xhci: 获取设备描述符并配置endpoint
存在问题:尚未能够正确初始化usb键盘,也没有将usb键盘相关的代码独立出来。
This commit is contained in:
login
2022-09-30 20:39:02 +08:00
committed by GitHub
parent 35345cae6c
commit fb417a5e81
9 changed files with 790 additions and 210 deletions

View File

@ -94,5 +94,5 @@ void apic_timer_init()
io_mfence();
irq_register(APIC_TIMER_IRQ_NUM, &apic_timer_ticks_result, &apic_timer_handler, 0, &apic_timer_intr_controller, "apic timer");
io_mfence();
kinfo("Successfully initialized apic timer for cpu %d", proc_current_cpu_id);
// kinfo("Successfully initialized apic timer for cpu %d", proc_current_cpu_id);
}