![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <cpu/x86/smm.h>
#include <delay.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include "chip.h"
#include "iobp.h"
#include "pch.h"
Go to the source code of this file.
Macros | |
#define | XHCI_RESET_DELAY_US 1000 /* 1ms */ |
#define | XHCI_RESET_TIMEOUT 100 /* 100ms */ |
Functions | |
static u8 * | usb_xhci_mem_base (struct device *dev) |
static int | usb_xhci_port_count_usb3 (u8 *mem_base) |
static void | usb_xhci_reset_status_usb3 (u8 *mem_base, int port) |
static void | usb_xhci_reset_port_usb3 (u8 *mem_base, int port) |
static void | usb_xhci_reset_usb3 (struct device *dev, int all) |
static void | usb_xhci_clock_gating (struct device *dev) |
static void | usb_xhci_init (struct device *dev) |
Variables | |
static struct device_operations | usb_xhci_ops |
static const unsigned short | pci_device_ids [] |
static const struct pci_driver pch_usb_xhci | __pci_driver |
#define XHCI_RESET_DELAY_US 1000 /* 1ms */ |
Definition at line 71 of file usb_xhci.c.
#define XHCI_RESET_TIMEOUT 100 /* 100ms */ |
Definition at line 72 of file usb_xhci.c.
Definition at line 232 of file usb_xhci.c.
References pch_iobp_update(), pch_is_lp(), pci_and_config32(), pci_or_config16(), pci_read_config32(), pci_write_config16(), pci_write_config32(), and pci_write_config8().
Referenced by usb_xhci_init().
Definition at line 274 of file usb_xhci.c.
References acpi_is_wakeup_s3(), APM_CNT_ROUTE_ALL_XHCI, apm_control(), device::chip_info, config, pch_is_lp(), pci_or_config32(), pci_read_config32(), pci_update_config16(), pci_update_config32(), pci_write_config32(), PWR_CTL_SET_D0, PWR_CTL_SET_MASK, read32(), usb_xhci_clock_gating(), usb_xhci_mem_base(), usb_xhci_reset_usb3(), write32(), and XHCI_PWR_CTL_STS.
Definition at line 17 of file usb_xhci.c.
References PCI_BASE_ADDRESS_0, and pci_read_config32().
Referenced by usb_xhci_init(), and usb_xhci_reset_usb3().
|
static |
Definition at line 29 of file usb_xhci.c.
References pch_is_lp(), read32(), XHCI_USB3FUS, XHCI_USB3FUS_SS_MASK, and XHCI_USB3FUS_SS_SHIFT.
Referenced by usb_xhci_reset_usb3().
Definition at line 65 of file usb_xhci.c.
References read32(), write32(), XHCI_USB3_PORTSC, and XHCI_USB3_PORTSC_WPR.
Referenced by usb_xhci_reset_usb3().
Definition at line 54 of file usb_xhci.c.
References read32(), write32(), XHCI_USB3_PORTSC, XHCI_USB3_PORTSC_CHST, and XHCI_USB3_PORTSC_PED.
Referenced by usb_xhci_reset_usb3().
Definition at line 84 of file usb_xhci.c.
References pci_read_config32(), read32(), udelay(), usb_xhci_mem_base(), usb_xhci_port_count_usb3(), usb_xhci_reset_port_usb3(), usb_xhci_reset_status_usb3(), XHCI_PLSR_POLLING, XHCI_PLSR_RXDETECT, XHCI_RESET_DELAY_US, XHCI_RESET_TIMEOUT, XHCI_USB3_PORTSC, XHCI_USB3_PORTSC_PLS, XHCI_USB3_PORTSC_WRC, and XHCI_USB3PDO.
Referenced by usb_xhci_init().
|
static |
Definition at line 344 of file usb_xhci.c.
|
static |
Definition at line 344 of file usb_xhci.c.
|
static |
Definition at line 274 of file usb_xhci.c.