DIR Return Create A Forum - Home
---------------------------------------------------------
Firestart Developer space
HTML https://firestartdev.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Driver development
*****************************************************
#Post#: 9--------------------------------------------------
Driver development
DIR By: Ceo
Date: May 31, 2026, 7:21 am
---------------------------------------------------------
I have a task here it is: Implement USB Host Controller
Detection
Goal:
Detect which USB controller the system has (UHCI, OHCI, EHCI, or
XHCI) by scanning PCI devices.
What the driver must do:
Scan PCI bus for class code 0x0C (Serial Bus Controller)
Check subclass 0x03 (USB Controller)
Identify the controller type using the programming interface
value
Print one of the following:
“UHCI controller found”
“OHCI controller found”
“EHCI controller found”
“XHCI controller found”
Requirements:
Must use PCI config space reads
Must NOT use libc
Must run in QEMU
Must not crash the kernel
What to do:
Create usb.c
Add PCI scanning code
Detect controller type
Print the result to VGA
Reply with your code when finished
If someone already claimed this task, choose another one
*****************************************************
Page 1 of 1