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   0x540
 
#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   0
 
#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 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 14 of file xhci.c.

◆ PCH_XHCI_USB2_PORT_STATUS_REG

#define PCH_XHCI_USB2_PORT_STATUS_REG   0x480

Definition at line 12 of file xhci.c.

◆ PCH_XHCI_USB3_PORT_NUM

#define PCH_XHCI_USB3_PORT_NUM   4

Definition at line 15 of file xhci.c.

◆ PCH_XHCI_USB3_PORT_STATUS_REG

#define PCH_XHCI_USB3_PORT_STATUS_REG   0x540

Definition at line 13 of file xhci.c.

◆ TCSS_XHCI_USB2_PORT_NUM

#define TCSS_XHCI_USB2_PORT_NUM   0

Definition at line 19 of file xhci.c.

◆ TCSS_XHCI_USB2_PORT_STATUS_REG

#define TCSS_XHCI_USB2_PORT_STATUS_REG   0x480

Definition at line 17 of file xhci.c.

◆ TCSS_XHCI_USB3_PORT_NUM

#define TCSS_XHCI_USB3_PORT_NUM   4

Definition at line 20 of file xhci.c.

◆ TCSS_XHCI_USB3_PORT_STATUS_REG

#define TCSS_XHCI_USB3_PORT_STATUS_REG   0x490

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

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

Referenced by xhci_update_wake_event().

Here is the caller graph for this function:

Variable Documentation

◆ 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:18
#define TCSS_XHCI_USB2_PORT_STATUS_REG
Definition: xhci.c:17
#define TCSS_XHCI_USB3_PORT_NUM
Definition: xhci.c:20
#define TCSS_XHCI_USB2_PORT_NUM
Definition: xhci.c:19

Definition at line 1 of file xhci.c.

Referenced by soc_get_xhci_usb_info().

◆ usb_info

const struct xhci_usb_info 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:14
#define PCH_XHCI_USB3_PORT_NUM
Definition: xhci.c:15
#define PCH_XHCI_USB2_PORT_STATUS_REG
Definition: xhci.c:12
#define PCH_XHCI_USB3_PORT_STATUS_REG
Definition: xhci.c:13

Definition at line 1 of file xhci.c.

Referenced by soc_get_xhci_usb_info(), and xhci_update_wake_event().