From a23aa1ca904be76a163f959c9e366fcce030798b Mon Sep 17 00:00:00 2001 From: Robert Zieba Date: Wed, 10 Aug 2022 16:56:09 -0600 Subject: device/xhci: Factor out `struct xhci_usb_info` This commit factors out `struct xhci_usb_info` from intel specific code as it will be useful on other platforms. BUG=b:186792595 TEST=Builds for volteer Change-Id: I5b4cc6268f072c6948f11c7498a564d7a5c0a190 Signed-off-by: Robert Zieba Reviewed-on: https://review.coreboot.org/c/coreboot/+/67934 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/include/device/xhci.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/include/device') diff --git a/src/include/device/xhci.h b/src/include/device/xhci.h index e5ce8b514ca5..a4a3bc1de736 100644 --- a/src/include/device/xhci.h +++ b/src/include/device/xhci.h @@ -81,6 +81,20 @@ struct xhci_ext_cap { }; }; +/* + * struct xhci_usb_info - Data containing number of USB ports & offset. + * @usb2_port_status_reg: Offset to USB2 port status register. + * @num_usb2_ports: Number of USB2 ports. + * @usb3_port_status_reg: Offset to USB3 port status register. + * @num_usb3_ports: Number of USB3 ports. + */ +struct xhci_usb_info { + uint32_t usb2_port_status_reg; + uint32_t num_usb2_ports; + uint32_t usb3_port_status_reg; + uint32_t num_usb3_ports; +}; + /** * Iterates over the xHCI Extended Capabilities List. */ -- cgit v1.2.3