coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
usb_ehci.c File Reference
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <device/pci_ehci.h>
#include <device/pci_ops.h>
#include <soc/ehci.h>
#include <soc/pch.h>
Include dependency graph for usb_ehci.c:

Go to the source code of this file.

Functions

static void usb_ehci_set_subsystem (struct device *dev, unsigned int vendor, unsigned int device)
 
static void ehci_enable (struct device *dev)
 

Variables

static struct pci_operations ehci_ops_pci
 
static struct device_operations usb_ehci_ops
 
static const unsigned short pci_device_ids []
 
static const struct pci_driver pch_usb_ehci __pci_driver
 

Function Documentation

◆ ehci_enable()

static void ehci_enable ( struct device dev)
static

Definition at line 27 of file usb_ehci.c.

References CONFIG, device::enabled, and pch_disable_devfn().

Here is the call graph for this function:

◆ usb_ehci_set_subsystem()

static void usb_ehci_set_subsystem ( struct device dev,
unsigned int  vendor,
unsigned int  device 
)
static

Definition at line 11 of file usb_ehci.c.

References pci_dev_set_subsystem(), pci_read_config8(), pci_write_config8(), and vendor.

Here is the call graph for this function:

Variable Documentation

◆ __pci_driver

const struct pci_driver pch_usb_ehci __pci_driver
static
Initial value:
= {
.ops = &usb_ehci_ops,
.vendor = PCI_VID_INTEL,
.devices = pci_device_ids,
}
#define PCI_VID_INTEL
Definition: pci_ids.h:2157
static const unsigned short pci_device_ids[]
Definition: usb_ehci.c:47
static struct device_operations usb_ehci_ops
Definition: usb_ehci.c:39

Definition at line 47 of file usb_ehci.c.

◆ ehci_ops_pci

struct pci_operations ehci_ops_pci
static
Initial value:
= {
.set_subsystem = &usb_ehci_set_subsystem,
}
static void usb_ehci_set_subsystem(struct device *dev, unsigned int vendor, unsigned int device)
Definition: usb_ehci.c:11

Definition at line 27 of file usb_ehci.c.

◆ pci_device_ids

const unsigned short pci_device_ids[]
static
Initial value:
= {
0x9c26,
0x9ca6,
0
}

Definition at line 47 of file usb_ehci.c.

◆ usb_ehci_ops

struct device_operations usb_ehci_ops
static
Initial value:
= {
.read_resources = pci_ehci_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.ops_pci = &ehci_ops_pci,
.enable = ehci_enable,
}
void pci_dev_enable_resources(struct device *dev)
Definition: pci_device.c:721
void pci_dev_set_resources(struct device *dev)
Definition: pci_device.c:691
#define pci_ehci_read_resources
Definition: pci_ehci.h:22
static void ehci_enable(struct device *dev)
Definition: usb_ehci.c:27
static struct pci_operations ehci_ops_pci
Definition: usb_ehci.c:35

Definition at line 27 of file usb_ehci.c.