diff options
author | Robert Zieba <robertzieba@google.com> | 2022-11-21 22:25:53 +0000 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-03-07 17:11:58 +0000 |
commit | eb7b589f8f229ecde1ba11396b70e2e8b666ff63 (patch) | |
tree | 7d831b4b06096ddb602d3e5dbf24c36305177849 /src/include | |
parent | 5dbd3df03c455d6c3b3f6b1ab080513206004b95 (diff) |
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 <robertzieba@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69915
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/device/xhci.h | 13 |
1 files changed, 13 insertions, 0 deletions
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. */ |