coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
xhci.c File Reference
#include <device/pci_type.h>
#include <intelblocks/xhci.h>
Include dependency graph for xhci.c:

Go to the source code of this file.

Macros

#define XHCI_USB2_PORT_STATUS_REG   0x480
 
#define XHCI_USB3_PORT_STATUS_REG   0x540
 
#define XHCI_USB2_PORT_NUM   10
 
#define XHCI_USB3_PORT_NUM   6
 

Functions

const struct xhci_usb_infosoc_get_xhci_usb_info (pci_devfn_t xhci_dev)
 

Variables

static const struct xhci_usb_info usb_info
 

Macro Definition Documentation

◆ XHCI_USB2_PORT_NUM

#define XHCI_USB2_PORT_NUM   10

Definition at line 8 of file xhci.c.

◆ XHCI_USB2_PORT_STATUS_REG

#define XHCI_USB2_PORT_STATUS_REG   0x480

Definition at line 6 of file xhci.c.

◆ XHCI_USB3_PORT_NUM

#define XHCI_USB3_PORT_NUM   6

Definition at line 9 of file xhci.c.

◆ XHCI_USB3_PORT_STATUS_REG

#define XHCI_USB3_PORT_STATUS_REG   0x540

Definition at line 7 of file xhci.c.

Function Documentation

◆ soc_get_xhci_usb_info()

const struct xhci_usb_info* soc_get_xhci_usb_info ( pci_devfn_t  xhci_dev)

Definition at line 18 of file xhci.c.

References usb_info.

Variable Documentation

◆ usb_info

const struct xhci_usb_info usb_info
static
Initial value:
= {
.usb2_port_status_reg = XHCI_USB2_PORT_STATUS_REG,
.num_usb2_ports = XHCI_USB2_PORT_NUM,
.usb3_port_status_reg = XHCI_USB3_PORT_STATUS_REG,
.num_usb3_ports = XHCI_USB3_PORT_NUM,
}
#define XHCI_USB3_PORT_STATUS_REG
Definition: xhci.c:7
#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

Definition at line 1 of file xhci.c.

Referenced by soc_get_xhci_usb_info().