diff options
author | Keegan Saunders <keegan@undefinedbehaviour.org> | 2024-01-07 21:10:57 +0000 |
---|---|---|
committer | Keegan Saunders <keegan@undefinedbehaviour.org> | 2024-01-07 21:10:57 +0000 |
commit | 57fc95de3c52ed71a6cd478ae495d2bcaeab7204 (patch) | |
tree | f565197ac465b824f6af6af1cde7ca3ae68bcf27 | |
parent | 1fe150f1ed46a8c1a65187b3088274e067493639 (diff) |
arm64/qemu: add xhci usb
To use, add the QEMU XHCI PCI device:
-device qemu-xhci,id=xhci -device usb-tablet,bus=xhci.0
-rw-r--r-- | sys/src/9/arm64/io.h | 2 | ||||
-rw-r--r-- | sys/src/9/arm64/qemu | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/src/9/arm64/io.h b/sys/src/9/arm64/io.h index d17dc7d93..11040915a 100644 --- a/sys/src/9/arm64/io.h +++ b/sys/src/9/arm64/io.h @@ -15,3 +15,5 @@ enum { }; #define BUSUNKNOWN (-1) +#define PCIWINDOW 0 +#define PCIWADDR(x) (PADDR(x)+PCIWINDOW) diff --git a/sys/src/9/arm64/qemu b/sys/src/9/arm64/qemu index 18af1f5f5..557a2b288 100644 --- a/sys/src/9/arm64/qemu +++ b/sys/src/9/arm64/qemu @@ -16,11 +16,13 @@ dev bridge log ip arp chandial ip ipv6 ipaux iproute netlog nullmedium pktmedium inferno uart + usb rtc pci pci sd link + usbxhcipci pci usbxhci ethervirtio10 pci ethersink ethermedium |