From a91baab6396cb5e050ddbfcae23b86770687f1d7 Mon Sep 17 00:00:00 2001 From: xj Date: Fri, 12 Jul 2024 04:21:57 -0700 Subject: [PATCH] for xhci command ring --- .../services/drivers/usb/components/port/xhci/xhci.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/xhci.h b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/xhci.h index 975bb2fec..93b36c792 100644 --- a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/xhci.h +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/xhci.h @@ -874,7 +874,8 @@ struct xhci_host { /* * Device context base address array. * - * dcbaa_addr holds the virtual address of the dcbaa, meanwhile dcbaa_phy keeps the value that should be writen to XHCI_OP_DCBAAP. + * dcbaa_addr holds the virtual address of the dcbaa, meanwhile dcbaa_phy keeps the value that should be writen to Device Context + * Base Address Array Pointer Register (XHCI_OP_DCBAAP). */ uintptr_t dcbaa_addr; uintptr_t dcbaa_phy; @@ -891,6 +892,12 @@ struct xhci_host { /** Command ring */ struct xhci_ring *cmds; + /* + * cmds_addr holds the virtual address of the command ring, meanwhile cmds_phy keeps the value that should be writen to Command Ring + * Control Register (XHCI_OP_CRCR). + */ + uintptr_t cmds_addr; + uintptr_t cmds_phy; /** Event ring */ struct xhci_ring *evts; struct xhci_er_seg *eseg;