coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
xhci.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <device/pci_type.h>
4 #include <intelblocks/xhci.h>
5 
6 #define XHCI_USB2_PORT_STATUS_REG 0x480
7 #define XHCI_USB3_PORT_STATUS_REG 0x540
8 #define XHCI_USB2_PORT_NUM 10
9 #define XHCI_USB3_PORT_NUM 6
10 
11 static const struct xhci_usb_info usb_info = {
13  .num_usb2_ports = XHCI_USB2_PORT_NUM,
14  .usb3_port_status_reg = XHCI_USB3_PORT_STATUS_REG,
15  .num_usb3_ports = XHCI_USB3_PORT_NUM,
16 };
17 
19 {
20  return &usb_info;
21 }
u32 pci_devfn_t
Definition: pci_type.h:8
const struct xhci_usb_info * soc_get_xhci_usb_info(pci_devfn_t xhci_dev)
Definition: xhci.c:36
#define XHCI_USB3_PORT_STATUS_REG
Definition: xhci.c:7
static const struct xhci_usb_info usb_info
Definition: xhci.c:11
#define XHCI_USB3_PORT_NUM
Definition: xhci.c:9
#define XHCI_USB2_PORT_NUM
Definition: xhci.c:8
#define XHCI_USB2_PORT_STATUS_REG
Definition: xhci.c:6
uint32_t usb2_port_status_reg
Definition: xhci.h:18