Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
musbhsdma.h File Reference

Go to the source code of this file.

Data Structures

struct  musb_dma_channel
 
struct  musb_dma_controller
 

Macros

#define MUSB_HSDMA_BASE   0x200
 
#define MUSB_HSDMA_INTR   (MUSB_HSDMA_BASE + 0)
 
#define MUSB_HSDMA_CONTROL   0x4
 
#define MUSB_HSDMA_ADDRESS   0x8
 
#define MUSB_HSDMA_COUNT   0xc
 
#define MUSB_HSDMA_CHANNEL_OFFSET(_bchannel, _offset)   (MUSB_HSDMA_BASE + (_bchannel << 4) + _offset)
 
#define musb_read_hsdma_addr(mbase, bchannel)
 
#define musb_write_hsdma_addr(mbase, bchannel, addr)
 
#define musb_read_hsdma_count(mbase, bchannel)
 
#define musb_write_hsdma_count(mbase, bchannel, len)
 
#define MUSB_HSDMA_ENABLE_SHIFT   0
 
#define MUSB_HSDMA_TRANSMIT_SHIFT   1
 
#define MUSB_HSDMA_MODE1_SHIFT   2
 
#define MUSB_HSDMA_IRQENABLE_SHIFT   3
 
#define MUSB_HSDMA_ENDPOINT_SHIFT   4
 
#define MUSB_HSDMA_BUSERROR_SHIFT   8
 
#define MUSB_HSDMA_BURSTMODE_SHIFT   9
 
#define MUSB_HSDMA_BURSTMODE   (3 << MUSB_HSDMA_BURSTMODE_SHIFT)
 
#define MUSB_HSDMA_BURSTMODE_UNSPEC   0
 
#define MUSB_HSDMA_BURSTMODE_INCR4   1
 
#define MUSB_HSDMA_BURSTMODE_INCR8   2
 
#define MUSB_HSDMA_BURSTMODE_INCR16   3
 
#define MUSB_HSDMA_CHANNELS   8
 

Macro Definition Documentation

#define MUSB_HSDMA_ADDRESS   0x8

Definition at line 43 of file musbhsdma.h.

#define MUSB_HSDMA_BASE   0x200

Definition at line 40 of file musbhsdma.h.

#define MUSB_HSDMA_BURSTMODE   (3 << MUSB_HSDMA_BURSTMODE_SHIFT)

Definition at line 136 of file musbhsdma.h.

#define MUSB_HSDMA_BURSTMODE_INCR16   3

Definition at line 140 of file musbhsdma.h.

#define MUSB_HSDMA_BURSTMODE_INCR4   1

Definition at line 138 of file musbhsdma.h.

#define MUSB_HSDMA_BURSTMODE_INCR8   2

Definition at line 139 of file musbhsdma.h.

#define MUSB_HSDMA_BURSTMODE_SHIFT   9

Definition at line 135 of file musbhsdma.h.

#define MUSB_HSDMA_BURSTMODE_UNSPEC   0

Definition at line 137 of file musbhsdma.h.

#define MUSB_HSDMA_BUSERROR_SHIFT   8

Definition at line 134 of file musbhsdma.h.

#define MUSB_HSDMA_CHANNEL_OFFSET (   _bchannel,
  _offset 
)    (MUSB_HSDMA_BASE + (_bchannel << 4) + _offset)

Definition at line 46 of file musbhsdma.h.

#define MUSB_HSDMA_CHANNELS   8

Definition at line 142 of file musbhsdma.h.

#define MUSB_HSDMA_CONTROL   0x4

Definition at line 42 of file musbhsdma.h.

#define MUSB_HSDMA_COUNT   0xc

Definition at line 44 of file musbhsdma.h.

#define MUSB_HSDMA_ENABLE_SHIFT   0

Definition at line 129 of file musbhsdma.h.

#define MUSB_HSDMA_ENDPOINT_SHIFT   4

Definition at line 133 of file musbhsdma.h.

#define MUSB_HSDMA_INTR   (MUSB_HSDMA_BASE + 0)

Definition at line 41 of file musbhsdma.h.

#define MUSB_HSDMA_IRQENABLE_SHIFT   3

Definition at line 132 of file musbhsdma.h.

#define MUSB_HSDMA_MODE1_SHIFT   2

Definition at line 131 of file musbhsdma.h.

#define MUSB_HSDMA_TRANSMIT_SHIFT   1

Definition at line 130 of file musbhsdma.h.

#define musb_read_hsdma_addr (   mbase,
  bchannel 
)
Value:

Definition at line 49 of file musbhsdma.h.

#define musb_read_hsdma_count (   mbase,
  bchannel 
)
Value:

Definition at line 58 of file musbhsdma.h.

#define musb_write_hsdma_addr (   mbase,
  bchannel,
  addr 
)
Value:

Definition at line 53 of file musbhsdma.h.

#define musb_write_hsdma_count (   mbase,
  bchannel,
  len 
)
Value:
musb_writel(mbase, \
len)

Definition at line 62 of file musbhsdma.h.