Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tusb6010.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/prefetch.h>
#include <linux/usb.h>
#include <linux/irq.h>
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/usb/nop-usb-xceiv.h>
#include "musb_core.h"

Go to the source code of this file.

Data Structures

struct  tusb6010_glue
 

Macros

#define TUSB_REV_MAJOR(reg_val)   ((reg_val >> 4) & 0xf)
 
#define TUSB_REV_MINOR(reg_val)   (reg_val & 0xf)
 
#define WBUS_QUIRK_MASK
 
#define DEVCLOCK   60000000
 
#define OTG_TIMER_MS(msecs)
 

Functions

u8 tusb_get_revision (struct musb *musb)
 
 EXPORT_SYMBOL_GPL (tusb_get_revision)
 
void musb_write_fifo (struct musb_hw_ep *hw_ep, u16 len, const u8 *buf)
 
void musb_read_fifo (struct musb_hw_ep *hw_ep, u16 len, u8 *buf)
 
 MODULE_DESCRIPTION ("TUSB6010 MUSB Glue Layer")
 
 MODULE_AUTHOR ("Felipe Balbi <[email protected]>")
 
 MODULE_LICENSE ("GPL v2")
 
 module_init (tusb_init)
 
 module_exit (tusb_exit)
 

Macro Definition Documentation

#define DEVCLOCK   60000000

Definition at line 503 of file tusb6010.c.

#define OTG_TIMER_MS (   msecs)
Value:
((msecs) \
? (TUSB_DEV_OTG_TIMER_VAL((DEVCLOCK/1000)*(msecs)) \
: 0)

Definition at line 504 of file tusb6010.c.

#define TUSB_REV_MAJOR (   reg_val)    ((reg_val >> 4) & 0xf)

Definition at line 38 of file tusb6010.c.

#define TUSB_REV_MINOR (   reg_val)    (reg_val & 0xf)

Definition at line 39 of file tusb6010.c.

#define WBUS_QUIRK_MASK

Function Documentation

EXPORT_SYMBOL_GPL ( tusb_get_revision  )
MODULE_AUTHOR ( "Felipe Balbi <[email protected]>"  )
MODULE_DESCRIPTION ( "TUSB6010 MUSB Glue Layer"  )
module_exit ( tusb_exit  )
module_init ( tusb_init  )
MODULE_LICENSE ( "GPL v2 )
void musb_read_fifo ( struct musb_hw_ep hw_ep,
u16  len,
u8 buf 
)

Definition at line 227 of file tusb6010.c.

void musb_write_fifo ( struct musb_hw_ep hw_ep,
u16  len,
const u8 buf 
)

Definition at line 177 of file tusb6010.c.

u8 tusb_get_revision ( struct musb musb)

Definition at line 45 of file tusb6010.c.