From eb7b589f8f229ecde1ba11396b70e2e8b666ff63 Mon Sep 17 00:00:00 2001 From: Robert Zieba Date: Mon, 21 Nov 2022 22:25:53 +0000 Subject: [PATCH] device/xhci: Add struct for capability registers The XHCI code does not currently contain a structure that corresponds to the XHCI capability registers. These registers contain various useful information about the controller. Create a`xhci_capability_regs` struct to address this. BRANCH=guybrush BUG=b:186792595 TEST=builds Change-Id: If38bfde726bd4e5dd314456f25a2b08acd3cd20c Signed-off-by: Robert Zieba Reviewed-on: https://review.coreboot.org/c/coreboot/+/69915 Tested-by: build bot (Jenkins) Reviewed-by: Karthik Ramasubramanian --- src/include/device/xhci.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/include/device/xhci.h b/src/include/device/xhci.h index 861bf22d42..c984450b91 100644 --- a/src/include/device/xhci.h +++ b/src/include/device/xhci.h @@ -94,6 +94,19 @@ struct xhci_usb_info { uint32_t num_usb3_ports; }; +struct xhci_capability_regs { + uint8_t caplength; + uint8_t reserved0; + uint16_t hciversion; + uint32_t hcsparams1; + uint32_t hcsparams2; + uint32_t hcsparams3; + uint32_t hccparams1; + uint32_t dboff; + uint32_t rtsoff; + uint32_t hccparams2; +} __packed; + /** * Iterates over the xHCI Extended Capabilities List. */