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 <soc/pci_devs.h>
Include dependency graph for xhci.c:

Go to the source code of this file.

Macros

#define PCH_XHCI_USB2_PORT_STATUS_REG   0x480
 
#define PCH_XHCI_USB3_PORT_STATUS_REG   0x520
 
#define PCH_XHCI_USB2_PORT_NUM   10
 
#define PCH_XHCI_USB3_PORT_NUM   4
 
#define TCSS_XHCI_USB2_PORT_STATUS_REG   0x480
 
#define TCSS_XHCI_USB3_PORT_STATUS_REG   0x490
 
#define TCSS_XHCI_USB2_PORT_NUM   1
 
#define TCSS_XHCI_USB3_PORT_NUM   4
 

Functions

const struct xhci_usb_infosoc_get_xhci_usb_info (pci_devfn_t xhci_dev)
 

Variables

static const struct xhci_usb_info pch_usb_info
 
static const struct xhci_usb_info tcss_usb_info
 

Macro Definition Documentation

◆ PCH_XHCI_USB2_PORT_NUM

#define PCH_XHCI_USB2_PORT_NUM   10

Definition at line 9 of file xhci.c.

◆ PCH_XHCI_USB2_PORT_STATUS_REG

#define PCH_XHCI_USB2_PORT_STATUS_REG   0x480

Definition at line 7 of file xhci.c.

◆ PCH_XHCI_USB3_PORT_NUM

#define PCH_XHCI_USB3_PORT_NUM   4

Definition at line 10 of file xhci.c.

◆ PCH_XHCI_USB3_PORT_STATUS_REG

#define PCH_XHCI_USB3_PORT_STATUS_REG   0x520

Definition at line 8 of file xhci.c.

◆ TCSS_XHCI_USB2_PORT_NUM

#define TCSS_XHCI_USB2_PORT_NUM   1

Definition at line 14 of file xhci.c.

◆ TCSS_XHCI_USB2_PORT_STATUS_REG

#define TCSS_XHCI_USB2_PORT_STATUS_REG   0x480

Definition at line 12 of file xhci.c.

◆ TCSS_XHCI_USB3_PORT_NUM

#define TCSS_XHCI_USB3_PORT_NUM   4

Definition at line 15 of file xhci.c.

◆ TCSS_XHCI_USB3_PORT_STATUS_REG

#define TCSS_XHCI_USB3_PORT_STATUS_REG   0x490

Definition at line 13 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 31 of file xhci.c.

References NULL, PCH_DEVFN_XHCI, pch_usb_info, SA_DEVFN_TCSS_XHCI, and tcss_usb_info.

Variable Documentation

◆ pch_usb_info

const struct xhci_usb_info pch_usb_info
static
Initial value:
= {
.usb2_port_status_reg = PCH_XHCI_USB2_PORT_STATUS_REG,
.num_usb2_ports = PCH_XHCI_USB2_PORT_NUM,
.usb3_port_status_reg = PCH_XHCI_USB3_PORT_STATUS_REG,
.num_usb3_ports = PCH_XHCI_USB3_PORT_NUM,
}
#define PCH_XHCI_USB2_PORT_NUM
Definition: xhci.c:9
#define PCH_XHCI_USB3_PORT_NUM
Definition: xhci.c:10
#define PCH_XHCI_USB2_PORT_STATUS_REG
Definition: xhci.c:7
#define PCH_XHCI_USB3_PORT_STATUS_REG
Definition: xhci.c:8

Definition at line 1 of file xhci.c.

Referenced by soc_get_xhci_usb_info().

◆ tcss_usb_info

const struct xhci_usb_info tcss_usb_info
static
Initial value:
= {
.usb2_port_status_reg = TCSS_XHCI_USB2_PORT_STATUS_REG,
.num_usb2_ports = TCSS_XHCI_USB2_PORT_NUM,
.usb3_port_status_reg = TCSS_XHCI_USB3_PORT_STATUS_REG,
.num_usb3_ports = TCSS_XHCI_USB3_PORT_NUM,
}
#define TCSS_XHCI_USB3_PORT_STATUS_REG
Definition: xhci.c:13
#define TCSS_XHCI_USB2_PORT_STATUS_REG
Definition: xhci.c:12
#define TCSS_XHCI_USB3_PORT_NUM
Definition: xhci.c:15
#define TCSS_XHCI_USB2_PORT_NUM
Definition: xhci.c:14

Definition at line 1 of file xhci.c.

Referenced by soc_get_xhci_usb_info().