for xhci command ring

This commit is contained in:
xj 2024-07-12 04:21:57 -07:00
parent 4cceb8cd3b
commit a91baab639
1 changed files with 8 additions and 1 deletions

View File

@ -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;