XHCI working on emulator but not on real hardware
Posted: Thu Apr 02, 2020 2:44 pm
Hello everyone,
After allmost a year I finally managed to make me XHCI driver work on the BOCHS and QEMU emulator.
Now I tried to make it work on real hardware.
The first problem which I found was that the ENABLE_SLOT command gave a 1 as completioncode but a 0 as slotnumber (I assumed it would start at 1).
After fixing this, the code runs smooth untill line 1126 ( GET_DESCRIPTOR on EndPoint0 ring) where it gives completioncode 0.
Could someone please tell me what I am doing wrong?
Link to sourcecode:
https://github.com/AdeRegt/SanderOSUSB/ ... dev/xhci.c
After allmost a year I finally managed to make me XHCI driver work on the BOCHS and QEMU emulator.
Now I tried to make it work on real hardware.
The first problem which I found was that the ENABLE_SLOT command gave a 1 as completioncode but a 0 as slotnumber (I assumed it would start at 1).
After fixing this, the code runs smooth untill line 1126 ( GET_DESCRIPTOR on EndPoint0 ring) where it gives completioncode 0.
Could someone please tell me what I am doing wrong?
Link to sourcecode:
https://github.com/AdeRegt/SanderOSUSB/ ... dev/xhci.c