summaryrefslogtreecommitdiffstats
path: root/src/include/device
diff options
context:
space:
mode:
authorRobert Zieba <robertzieba@google.com>2022-08-10 16:56:09 -0600
committerMartin L Roth <gaumless@gmail.com>2022-11-09 23:58:03 +0000
commita23aa1ca904be76a163f959c9e366fcce030798b (patch)
tree72c51b92767065d4805b8c3af759472023c1f1bb /src/include/device
parent44281956928348bb5df14a8257921c49991dace5 (diff)
downloadcoreboot-a23aa1ca904be76a163f959c9e366fcce030798b.tar.gz
coreboot-a23aa1ca904be76a163f959c9e366fcce030798b.tar.bz2
coreboot-a23aa1ca904be76a163f959c9e366fcce030798b.zip
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 <robertzieba@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/67934 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Diffstat (limited to 'src/include/device')
-rw-r--r--src/include/device/xhci.h14
1 files changed, 14 insertions, 0 deletions
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.
*/