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

+20
View File
@@ -0,0 +1,20 @@
module hulk.usb.xhci;
import hulk.pci;
import hulk.hurl.a1;
struct XHCI
{
void initialize(Pci.Device * pci_device)
{
}
static void build(Pci.Device * pci_device)
{
if (pci_device.memory_ranges[0].address != null)
{
XHCI * xhci = A1.allocate!XHCI();
xhci.initialize(pci_device);
}
}
}