Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
ehci-dbgp.c File Reference
#include <linux/console.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/pci_regs.h>
#include <linux/pci_ids.h>
#include <linux/usb/ch9.h>
#include <linux/usb/ehci_def.h>
#include <linux/delay.h>
#include <linux/serial_core.h>
#include <linux/kconfig.h>
#include <linux/kgdb.h>
#include <linux/kthread.h>
#include <asm/io.h>
#include <asm/pci-direct.h>
#include <asm/fixmap.h>

Go to the source code of this file.

Data Structures

struct  ehci_dev
 

Macros

#define USB_DEBUG_DEVNUM   127
 
#define dbgp_kgdb_mode   (0)
 
#define EARLY_HC_LENGTH(p)   (0x00ff & (p)) /* bits 7 : 0 */
 
#define USB_PID_OUT   0xe1
 
#define USB_PID_IN   0x69
 
#define USB_PID_SOF   0xa5
 
#define USB_PID_SETUP   0x2d
 
#define USB_PID_ACK   0xd2
 
#define USB_PID_NAK   0x5a
 
#define USB_PID_STALL   0x1e
 
#define USB_PID_NYET   0x96
 
#define USB_PID_DATA0   0xc3
 
#define USB_PID_DATA1   0x4b
 
#define USB_PID_DATA2   0x87
 
#define USB_PID_MDATA   0x0f
 
#define USB_PID_PREAMBLE   0x3c
 
#define USB_PID_ERR   0x3c
 
#define USB_PID_SPLIT   0x78
 
#define USB_PID_PING   0xb4
 
#define USB_PID_UNDEF_0   0xf0
 
#define USB_PID_DATA_TOGGLE   0x88
 
#define DBGP_CLAIM   (DBGP_OWNER | DBGP_ENABLED | DBGP_INUSE)
 
#define PCI_CAP_ID_EHCI_DEBUG   0xa
 
#define HUB_ROOT_RESET_TIME   50 /* times are in msec */
 
#define HUB_SHORT_RESET_TIME   10
 
#define HUB_LONG_RESET_TIME   200
 
#define HUB_RESET_TIMEOUT   500
 
#define DBGP_MAX_PACKET   8
 
#define DBGP_TIMEOUT   (250 * 1000)
 
#define DBGP_LOOPS   1000
 
#define EHCI_USBLEGSUP_BIOS   (1 << 16) /* BIOS semaphore */
 
#define EHCI_USBLEGCTLSTS   4 /* legacy control/status */
 

Typedefs

typedef void(* set_debug_port_t )(int port)
 

Functions

int __init early_dbgp_init (char *s)
 

Variables

struct console early_dbgp_console
 

Macro Definition Documentation

#define DBGP_CLAIM   (DBGP_OWNER | DBGP_ENABLED | DBGP_INUSE)

Definition at line 136 of file ehci-dbgp.c.

#define dbgp_kgdb_mode   (0)

Definition at line 103 of file ehci-dbgp.c.

#define DBGP_LOOPS   1000

Definition at line 147 of file ehci-dbgp.c.

#define DBGP_MAX_PACKET   8

Definition at line 145 of file ehci-dbgp.c.

#define DBGP_TIMEOUT   (250 * 1000)

Definition at line 146 of file ehci-dbgp.c.

#define EARLY_HC_LENGTH (   p)    (0x00ff & (p)) /* bits 7 : 0 */

Definition at line 107 of file ehci-dbgp.c.

#define EHCI_USBLEGCTLSTS   4 /* legacy control/status */

Definition at line 718 of file ehci-dbgp.c.

#define EHCI_USBLEGSUP_BIOS   (1 << 16) /* BIOS semaphore */

Definition at line 717 of file ehci-dbgp.c.

#define HUB_LONG_RESET_TIME   200

Definition at line 142 of file ehci-dbgp.c.

#define HUB_RESET_TIMEOUT   500

Definition at line 143 of file ehci-dbgp.c.

#define HUB_ROOT_RESET_TIME   50 /* times are in msec */

Definition at line 140 of file ehci-dbgp.c.

#define HUB_SHORT_RESET_TIME   10

Definition at line 141 of file ehci-dbgp.c.

#define PCI_CAP_ID_EHCI_DEBUG   0xa

Definition at line 138 of file ehci-dbgp.c.

#define USB_DEBUG_DEVNUM   127

Definition at line 72 of file ehci-dbgp.c.

#define USB_PID_ACK   0xd2

Definition at line 119 of file ehci-dbgp.c.

#define USB_PID_DATA0   0xc3

Definition at line 124 of file ehci-dbgp.c.

#define USB_PID_DATA1   0x4b

Definition at line 125 of file ehci-dbgp.c.

#define USB_PID_DATA2   0x87

Definition at line 126 of file ehci-dbgp.c.

#define USB_PID_DATA_TOGGLE   0x88

Definition at line 135 of file ehci-dbgp.c.

#define USB_PID_ERR   0x3c

Definition at line 130 of file ehci-dbgp.c.

#define USB_PID_IN   0x69

Definition at line 115 of file ehci-dbgp.c.

#define USB_PID_MDATA   0x0f

Definition at line 127 of file ehci-dbgp.c.

#define USB_PID_NAK   0x5a

Definition at line 120 of file ehci-dbgp.c.

#define USB_PID_NYET   0x96

Definition at line 122 of file ehci-dbgp.c.

#define USB_PID_OUT   0xe1

Definition at line 114 of file ehci-dbgp.c.

#define USB_PID_PING   0xb4

Definition at line 132 of file ehci-dbgp.c.

#define USB_PID_PREAMBLE   0x3c

Definition at line 129 of file ehci-dbgp.c.

#define USB_PID_SETUP   0x2d

Definition at line 117 of file ehci-dbgp.c.

#define USB_PID_SOF   0xa5

Definition at line 116 of file ehci-dbgp.c.

#define USB_PID_SPLIT   0x78

Definition at line 131 of file ehci-dbgp.c.

#define USB_PID_STALL   0x1e

Definition at line 121 of file ehci-dbgp.c.

#define USB_PID_UNDEF_0   0xf0

Definition at line 133 of file ehci-dbgp.c.

Typedef Documentation

typedef void(* set_debug_port_t)(int port)

Definition at line 681 of file ehci-dbgp.c.

Function Documentation

int __init early_dbgp_init ( char s)

Definition at line 835 of file ehci-dbgp.c.

Variable Documentation

struct console early_dbgp_console
Initial value:
= {
.name = "earlydbg",
.write = early_dbgp_write,
.flags = CON_PRINTBUFFER,
.index = -1,
}

Definition at line 970 of file ehci-dbgp.c.