Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
debug.c File Reference
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/dmapool.h>
#include <linux/dma-mapping.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
#include <linux/usb/otg.h>
#include <linux/usb/chipidea.h>
#include "ci.h"
#include "udc.h"
#include "bits.h"
#include "debug.h"

Go to the source code of this file.

Data Structures

struct  isr_statistics


#define ISR_MASK   0x1F
#define DBG_DATA_MSG   64UL
#define DBG_DATA_MAX   128UL


void dbg_interrupt (u32 intmask)

: event name

dbg_event: prints a generic event : endpoint address

: status

#define DUMP_ENTRIES   512
void dbg_done (u8 addr, const u32 token, int status)
void dbg_event (u8 addr, const char *name, int status)
void dbg_queue (u8 addr, const struct usb_request *req, int status)
void dbg_setup (u8 addr, const struct usb_ctrlrequest *req)
int dbg_create_files (struct device *dev)
int dbg_remove_files (struct device *dev)

Macro Definition Documentation

#define DBG_DATA_MAX   128UL

Definition at line 217 of file debug.c.

#define DBG_DATA_MSG   64UL

Definition at line 214 of file debug.c.

#define DUMP_ENTRIES   512

show_registers: dumps all registers

Check "device.h" for details

Definition at line 620 of file debug.c.

#define ISR_MASK   0x1F

Definition at line 25 of file debug.c.

Function Documentation

int dbg_create_files ( struct device dev)

dbg_create_files: initializes the attribute interface : device

This function returns an error code

Definition at line 735 of file debug.c.

void dbg_done ( u8  addr,
const u32  token,
int  status 

dbg_done: prints a DONE event : endpoint address : transfer descriptor : status

Definition at line 287 of file debug.c.

void dbg_event ( u8  addr,
const char name,
int  status 

Definition at line 303 of file debug.c.

void dbg_interrupt ( u32  intmask)

Definition at line 41 of file debug.c.

void dbg_queue ( u8  addr,
const struct usb_request req,
int  status 

Definition at line 315 of file debug.c.

int dbg_remove_files ( struct device dev)

dbg_remove_files: destroys the attribute interface : device

This function returns an error code

Definition at line 791 of file debug.c.

void dbg_setup ( u8  addr,
const struct usb_ctrlrequest req 

dbg_setup: prints a SETUP event : endpoint address : setup request

Definition at line 331 of file debug.c.