coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
usb_debug.c File Reference
#include <stdint.h>
#include <device/pci_ops.h>
#include <device/pci_ehci.h>
#include <device/pci_def.h>
Include dependency graph for usb_debug.c:

Go to the source code of this file.

Macros

#define __SIMPLE_DEVICE__
 

Functions

pci_devfn_t pci_ehci_dbg_dev (unsigned int hcd_idx)
 
void pci_ehci_dbg_set_port (pci_devfn_t dev, unsigned int port)
 

Macro Definition Documentation

◆ __SIMPLE_DEVICE__

#define __SIMPLE_DEVICE__

Definition at line 4 of file usb_debug.c.

Function Documentation

◆ pci_ehci_dbg_dev()

pci_devfn_t pci_ehci_dbg_dev ( unsigned int  hcd_idx)

Definition at line 11 of file usb_debug.c.

References CONFIG, PCI_CLASS_REVISION, PCI_DEV, PCI_EHCI_CLASSCODE, pci_read_config32(), pm_io_write8(), PM_USB_ALL_CONTROLLERS, PM_USB_ENABLE, and SOC_EHCI1_DEV.

Referenced by ehci_debug_hw_enable(), and ehci_debug_select_port().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pci_ehci_dbg_set_port()

void pci_ehci_dbg_set_port ( pci_devfn_t  dev,
unsigned int  port 
)

Definition at line 35 of file usb_debug.c.

References DEBUG_PORT_ENABLE, DEBUG_PORT_MASK, DEBUG_PORT_SELECT_SHIFT, EHCI_HUB_CONFIG4, pci_read_config32(), pci_write_config32(), SOC_EHCI1_DEV, and value.

Referenced by ehci_debug_select_port().

Here is the call graph for this function:
Here is the caller graph for this function: