coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
usb.h File Reference
#include <types.h>
Include dependency graph for usb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __CONSOLE_USB_ENABLE__
 
#define USB_PIPE_FOR_CONSOLE   0
 
#define USB_PIPE_FOR_GDB   0
 

Functions

void usbdebug_init (void)
 
int usbdebug_hw_init (bool force)
 
void usb_tx_byte (int idx, unsigned char data)
 
void usb_tx_flush (int idx)
 
unsigned char usb_rx_byte (int idx)
 
int usb_can_rx_byte (int idx)
 
static void __usbdebug_init (void)
 
static void __usb_tx_byte (u8 data)
 
static void __usb_tx_flush (void)
 

Macro Definition Documentation

◆ __CONSOLE_USB_ENABLE__

#define __CONSOLE_USB_ENABLE__
Value:
(CONFIG(CONSOLE_USB) && \
((ENV_BOOTBLOCK && CONFIG(USBDEBUG_IN_PRE_RAM)) || \
(ENV_ROMSTAGE && CONFIG(USBDEBUG_IN_PRE_RAM)) || \
(ENV_POSTCAR && CONFIG(USBDEBUG_IN_PRE_RAM)) || \
(ENV_SEPARATE_VERSTAGE && CONFIG(USBDEBUG_IN_PRE_RAM)) || \
@ CONFIG
Definition: dsi_common.h:201
#define ENV_BOOTBLOCK
Definition: rules.h:148
#define ENV_RAMSTAGE
Definition: rules.h:150
#define ENV_ROMSTAGE
Definition: rules.h:149
#define ENV_SEPARATE_VERSTAGE
Definition: rules.h:152
#define ENV_POSTCAR
Definition: rules.h:154

Definition at line 16 of file usb.h.

◆ USB_PIPE_FOR_CONSOLE

#define USB_PIPE_FOR_CONSOLE   0

Definition at line 23 of file usb.h.

◆ USB_PIPE_FOR_GDB

#define USB_PIPE_FOR_GDB   0

Definition at line 24 of file usb.h.

Function Documentation

◆ __usb_tx_byte()

static void __usb_tx_byte ( u8  data)
inlinestatic

Definition at line 35 of file usb.h.

Referenced by console_interactive_tx_byte().

Here is the caller graph for this function:

◆ __usb_tx_flush()

static void __usb_tx_flush ( void  )
inlinestatic

Definition at line 36 of file usb.h.

Referenced by console_tx_flush().

Here is the caller graph for this function:

◆ __usbdebug_init()

static void __usbdebug_init ( void  )
inlinestatic

Definition at line 34 of file usb.h.

Referenced by console_hw_init().

Here is the caller graph for this function:

◆ usb_can_rx_byte()

int usb_can_rx_byte ( int  idx)

Definition at line 61 of file console.c.

References dbgp_console_input(), and dbgp_ep_is_active().

Here is the call graph for this function:

◆ usb_rx_byte()

unsigned char usb_rx_byte ( int  idx)

Definition at line 56 of file console.c.

References dbgp_console_input(), and usbdebug_rx_byte().

Here is the call graph for this function:

◆ usb_tx_byte()

void usb_tx_byte ( int  idx,
unsigned char  data 
)

Definition at line 46 of file console.c.

References dbgp_console_output(), and usbdebug_tx_byte().

Here is the call graph for this function:

◆ usb_tx_flush()

void usb_tx_flush ( int  idx)

Definition at line 51 of file console.c.

References dbgp_console_output(), and usbdebug_tx_flush().

Here is the call graph for this function:

◆ usbdebug_hw_init()

int usbdebug_hw_init ( bool  force)

Definition at line 658 of file ehci_debug.c.

References dbgp_ehci_info(), dbgp_enabled(), dbgp_not_present(), ehci_debug_info::ehci_base, ehci_debug_hw_enable(), ENV_POSTCAR, and usbdebug_init_().

Referenced by migrate_ehci_debug(), sdram_initialize(), and usbdebug_init().

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

◆ usbdebug_init()

void usbdebug_init ( void  )

Definition at line 729 of file ehci_debug.c.

References CONFIG, ENV_BOOTBLOCK, ENV_RAMSTAGE, ENV_ROMSTAGE, and usbdebug_hw_init().

Here is the call graph for this function: