coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include "pci_xhci.h"
#include <acpi/acpigen.h>
#include <acpi/acpigen_pci.h>
#include <console/console.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <device/xhci.h>
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
struct | port_counts |
Macros | |
#define | PCI_XHCI_CLASSCODE 0x0c0330 /* USB3.0 xHCI controller */ |
Functions | |
__weak enum cb_err | pci_xhci_get_wake_gpe (const struct device *dev, int *gpe) |
static void | xhci_count_ports (void *context, const struct xhci_supported_protocol *data) |
static bool | xhci_port_exists (const struct device *dev, const struct usb_path *path) |
static const struct device * | get_xhci_dev (const struct device *dev) |
static const char * | xhci_acpi_name (const struct device *dev) |
static void | xhci_generate_port_acpi (void *context, const struct xhci_supported_protocol *data) |
static void | xhci_add_devices (const struct device *dev) |
static void | xhci_fill_ssdt (const struct device *dev) |
static void | xhci_enable (struct device *dev) |
Variables | |
static unsigned int | controller_count |
static const struct device_operations | xhci_pci_ops |
static const unsigned short | amd_pci_device_ids [] |
static const struct pci_driver xhci_pci_driver | __pci_driver |
#define PCI_XHCI_CLASSCODE 0x0c0330 /* USB3.0 xHCI controller */ |
Definition at line 12 of file pci_xhci.c.
Definition at line 73 of file pci_xhci.c.
References device::bus, bus::dev, DEVICE_PATH_ROOT, NULL, device::ops, device::path, device_path::type, and xhci_pci_ops.
Referenced by xhci_acpi_name().
Definition at line 22 of file pci_xhci.c.
References CB_SUCCESS.
Referenced by xhci_fill_ssdt().
|
static |
Definition at line 85 of file pci_xhci.c.
References ACPI_NAME_BUFFER_SIZE, BIOS_ERR, BIOS_INFO, BIOS_WARNING, dev_path(), DEVICE_PATH_USB, die(), get_xhci_dev(), malloc(), name, device::name, NULL, device::ops, device::path, pattern, usb_path::port_id, usb_path::port_type, printk, snprintf(), device_path::type, device_path::usb, xhci_pci_ops, and xhci_port_exists().
Definition at line 174 of file pci_xhci.c.
References acpigen_pop_len(), acpigen_write_device(), acpigen_write_name_integer(), xhci_for_each_supported_usb_cap(), and xhci_generate_port_acpi().
Referenced by xhci_fill_ssdt().
|
static |
Definition at line 28 of file pci_xhci.c.
References BIOS_INFO, port_counts::high_speed, xhci_supported_protocol::major_rev, xhci_supported_protocol::port_count, printk, and port_counts::super_speed.
Referenced by xhci_port_exists().
Definition at line 225 of file pci_xhci.c.
References ACPI_NAME_BUFFER_SIZE, BIOS_ERR, controller_count, device::enabled, malloc(), name, device::name, PCI_CLASS_REVISION, pci_read_config32(), PCI_XHCI_CLASSCODE, printk, and snprintf().
Definition at line 187 of file pci_xhci.c.
References acpi_device_name(), acpi_device_scope(), ACPI_DEVICE_SLEEP_D0, ACPI_DEVICE_SLEEP_D3_COLD, acpi_device_status(), acpigen_pop_len(), acpigen_write_ADR_pci_device(), acpigen_write_device(), acpigen_write_name_integer(), acpigen_write_name_string(), acpigen_write_PRW(), acpigen_write_scope(), acpigen_write_STA(), BIOS_DEBUG, BIOS_ERR, CB_SUCCESS, dev_path(), name, pci_xhci_get_wake_gpe(), printk, SLP_TYP_S3, and xhci_add_devices().
|
static |
Definition at line 146 of file pci_xhci.c.
References acpigen_pop_len(), acpigen_write_device(), acpigen_write_name_byte(), BIOS_INFO, buf, port_counts::high_speed, xhci_supported_protocol::major_rev, xhci_supported_protocol::port_count, xhci_supported_protocol::port_offset, printk, snprintf(), port_counts::super_speed, and xhci_print_supported_protocol().
Referenced by xhci_add_devices().
Definition at line 45 of file pci_xhci.c.
References BIOS_INFO, port_counts::high_speed, usb_path::port_id, usb_path::port_type, printk, xhci_count_ports(), and xhci_for_each_supported_usb_cap().
Referenced by xhci_acpi_name().
|
static |
Definition at line 255 of file pci_xhci.c.
|
static |
Definition at line 255 of file pci_xhci.c.
|
static |
Definition at line 14 of file pci_xhci.c.
Referenced by xhci_enable().
|
static |
Definition at line 14 of file pci_xhci.c.
Referenced by get_xhci_dev(), and xhci_acpi_name().