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

Go to the source code of this file.

Macros

#define __SIMPLE_DEVICE__
 
#define DEBUGPORT_MISC_CONTROL   0x80
 

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 enable_usbdebug.c.

◆ DEBUGPORT_MISC_CONTROL

#define DEBUGPORT_MISC_CONTROL   0x80

Definition at line 13 of file enable_usbdebug.c.

Function Documentation

◆ pci_ehci_dbg_dev()

pci_devfn_t pci_ehci_dbg_dev ( unsigned int  hcd_idx)

Definition at line 15 of file enable_usbdebug.c.

References outb(), PCI_DEV, PM_DATA, and PM_INDEX.

Here is the call 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 29 of file enable_usbdebug.c.

References DEBUGPORT_MISC_CONTROL, pci_ehci_base_regs(), read32(), and write32().

Here is the call graph for this function: