Start on XHCI struct

This commit is contained in:
josh committed 2023-06-10 22:55:08 -04:00
1 parent 238659e94b
commit 37814b4f86
2 files changed
+50

No files matched your search

+30
View File
@@ -5,6 +5,7 @@ import hulk.klog;
import hulk.hurl;
import hulk.hurl.a1;
import hulk.range;
import hulk.usb.xhci;
struct Pci
{
@@ -125,6 +126,35 @@ struct Pci
}
}
}
private void spawn_device_instance()
{
switch (class_id)
{
case SerialBusController.ID:
switch (subclass_id)
{
case SerialBusController.USBController.ID:
switch (if_id)
{
case SerialBusController.USBController.XHCIController.ID:
XHCI.build(&this);
break;
default:
break;
}
break;
default:
break;
}
break;
default:
break;
}
}
}
struct SerialBusController