setos

拙OS
Log | Files | Refs | LICENSE

commit 2f766dda6d634c8d2933ab892c9c3c314f72722b
parent 9b28be17eeb3633c95610a0e19ab49a0fe4b7ca8
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Mon,  6 May 2024 11:37:43 +0900

read ERDP

Diffstat:
Msys/src/kernel/main.c | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/sys/src/kernel/main.c b/sys/src/kernel/main.c @@ -146,7 +146,7 @@ kernel_main(EFI_GRAPHICS_OUTPUT_PROTOCOL *gop) msi_cap->message_data = 0xcafe; break; case 0x11: - cons_printf(&con0, "MSI-X\n"); + cons_printf(&con0, "MSI-X is not supported\n"); /* pending development MSIXCap *msix_cap = (MSIXCap *) cap; // enable msi-x @@ -186,9 +186,13 @@ kernel_main(EFI_GRAPHICS_OUTPUT_PROTOCOL *gop) for (;(xhc.op->USBSTS & 0x1) != 0;) { } cons_printf(&con0, "xHC started\n"); - for (;msg == 0;) { - } - cons_printf(&con0, "mouse moved\n"); + + // read ERDP + int trb_ccs = 0; + xhc_trb *ERDP = (xhc_trb *) (xhc.runtime->IR[0].ERDP&~0xf); + cons_printf(&con0, "ERDP: %x\n", ERDP); + cons_printf(&con0, "parameter:\t%x\nstatus:\t%x\ncontrol:\t%x\n", + ERDP->parameter, ERDP->status, ERDP->control); halt: for(;;) { __asm__("hlt"); }