Start on XHCI struct
This commit is contained in:
1 parent
238659e94b
commit
37814b4f86
2 files changed
+50
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user