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

Go to the source code of this file.

Functions

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

Variables

static const unsigned short pci_device_ids []
 
static struct pci_operations lops_pci
 
static struct device_operations usb_ehci_ops
 
static const struct pci_driver pch_usb_ehci1 __pci_driver
 

Function Documentation

◆ usb_ehci_init()

static void usb_ehci_init ( struct device dev)
static

Definition at line 11 of file usb_ehci.c.

References BIOS_DEBUG, PCI_COMMAND, PCI_COMMAND_MASTER, pci_or_config16(), and printk.

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 19 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_ehci1 __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:35
static struct device_operations usb_ehci_ops
Definition: usb_ehci.c:45

Definition at line 35 of file usb_ehci.c.

◆ lops_pci

struct pci_operations lops_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:19

Definition at line 35 of file usb_ehci.c.

◆ pci_device_ids

const unsigned short pci_device_ids[]
static
Initial value:
= {
0
}
#define PCI_DID_INTEL_82801IB_EHCI2
Definition: pci_ids.h:2646
#define PCI_DID_INTEL_82801IB_EHCI1
Definition: pci_ids.h:2642

Definition at line 35 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,
.init = usb_ehci_init,
.ops_pci = &lops_pci,
}
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 struct pci_operations lops_pci
Definition: usb_ehci.c:41
static void usb_ehci_init(struct device *dev)
Definition: usb_ehci.c:11

Definition at line 35 of file usb_ehci.c.