Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
musb_core.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/list.h>
#include <linux/kobject.h>
#include <linux/prefetch.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/idr.h>
#include <linux/dma-mapping.h>
#include "musb_core.h"

Go to the source code of this file.

Macros

#define TA_WAIT_BCON(m)   max_t(int, (m)->a_wait_bcon, OTG_TIME_A_WAIT_BCON)
 
#define DRIVER_AUTHOR   "Mentor Graphics, Texas Instruments, Nokia"
 
#define DRIVER_DESC   "Inventra Dual-Role USB Controller Driver"
 
#define MUSB_VERSION   "6.0"
 
#define DRIVER_INFO   DRIVER_DESC ", v" MUSB_VERSION
 
#define MUSB_DRIVER_NAME   "musb-hdrc"
 
#define generic_interrupt   NULL
 
#define MUSB_DEV_PM_OPS   NULL
 

Enumerations

enum  { MUSB_CONTROLLER_MHDRC, MUSB_CONTROLLER_HDRC }
 

Functions

 MODULE_DESCRIPTION (DRIVER_INFO)
 
 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:"MUSB_DRIVER_NAME)
 
int musb_get_id (struct device *dev, gfp_t gfp_mask)
 
 EXPORT_SYMBOL_GPL (musb_get_id)
 
void musb_put_id (struct device *dev, int id)
 
 EXPORT_SYMBOL_GPL (musb_put_id)
 
void musb_write_fifo (struct musb_hw_ep *hw_ep, u16 len, const u8 *src)
 
void musb_read_fifo (struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
 
void musb_load_testpacket (struct musb *musb)
 
void musb_hnp_stop (struct musb *musb)
 
void musb_start (struct musb *musb)
 
void musb_stop (struct musb *musb)
 
 module_param (fifo_mode, ushort, 0)
 
 MODULE_PARM_DESC (fifo_mode,"initial endpoint configuration")
 
irqreturn_t musb_interrupt (struct musb *musb)
 
 EXPORT_SYMBOL_GPL (musb_interrupt)
 
 module_param (use_dma, bool, 0)
 
 MODULE_PARM_DESC (use_dma,"enable/disable use of DMA")
 
void musb_dma_completion (struct musb *musb, u8 epnum, u8 transmit)
 
 EXPORT_SYMBOL_GPL (musb_dma_completion)
 
 module_init (musb_init)
 
 module_exit (musb_cleanup)
 

Variables

const char musb_driver_name [] = MUSB_DRIVER_NAME
 

Macro Definition Documentation

#define DRIVER_AUTHOR   "Mentor Graphics, Texas Instruments, Nokia"

Definition at line 110 of file musb_core.c.

#define DRIVER_DESC   "Inventra Dual-Role USB Controller Driver"

Definition at line 111 of file musb_core.c.

#define DRIVER_INFO   DRIVER_DESC ", v" MUSB_VERSION

Definition at line 115 of file musb_core.c.

#define generic_interrupt   NULL

Definition at line 1550 of file musb_core.c.

#define MUSB_DEV_PM_OPS   NULL

Definition at line 2332 of file musb_core.c.

#define MUSB_DRIVER_NAME   "musb-hdrc"

Definition at line 117 of file musb_core.c.

#define MUSB_VERSION   "6.0"

Definition at line 113 of file musb_core.c.

#define TA_WAIT_BCON (   m)    max_t(int, (m)->a_wait_bcon, OTG_TIME_A_WAIT_BCON)

Definition at line 107 of file musb_core.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
MUSB_CONTROLLER_MHDRC 
MUSB_CONTROLLER_HDRC 

Definition at line 1396 of file musb_core.c.

Function Documentation

EXPORT_SYMBOL_GPL ( musb_get_id  )
EXPORT_SYMBOL_GPL ( musb_put_id  )
EXPORT_SYMBOL_GPL ( musb_interrupt  )
EXPORT_SYMBOL_GPL ( musb_dma_completion  )
MODULE_ALIAS ( "platform:"  MUSB_DRIVER_NAME)
MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_INFO  )
module_exit ( musb_cleanup  )
module_init ( musb_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( fifo_mode  ,
ushort  ,
 
)
module_param ( use_dma  ,
bool  ,
 
)
MODULE_PARM_DESC ( fifo_mode  ,
"initial endpoint configuration"   
)
MODULE_PARM_DESC ( use_dma  ,
"enable/disable use of DMA  
)
void musb_dma_completion ( struct musb musb,
u8  epnum,
u8  transmit 
)

Definition at line 1637 of file musb_core.c.

int musb_get_id ( struct device dev,
gfp_t  gfp_mask 
)

Definition at line 136 of file musb_core.c.

void musb_hnp_stop ( struct musb musb)

Definition at line 420 of file musb_core.c.

irqreturn_t musb_interrupt ( struct musb musb)

Definition at line 1560 of file musb_core.c.

void musb_load_testpacket ( struct musb musb)

Definition at line 374 of file musb_core.c.

void musb_put_id ( struct device dev,
int  id 
)

Definition at line 157 of file musb_core.c.

void musb_read_fifo ( struct musb_hw_ep hw_ep,
u16  len,
u8 dst 
)

Definition at line 309 of file musb_core.c.

void musb_start ( struct musb musb)

Definition at line 939 of file musb_core.c.

void musb_stop ( struct musb musb)

Definition at line 1006 of file musb_core.c.

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

Definition at line 264 of file musb_core.c.

Variable Documentation

const char musb_driver_name[] = MUSB_DRIVER_NAME

Definition at line 118 of file musb_core.c.