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

Go to the source code of this file.

Macros

#define TS_LOW_BIT   0x3 /* --xx */
 
#define TS_HI_BIT   0xc /* xx-- */
 
#define TS_LOW_SHIFT   (3)
 
#define TS_HI_SHIFT   (20 - 2) /* 2 bits for shifted low TS */
 
#define TS_INDEX2VAL(i)
 
#define CHCR_TX(xmit_sz)   (DM_FIX | SM_INC | 0x800 | TS_INDEX2VAL((xmit_sz)))
 
#define CHCR_RX(xmit_sz)   (DM_INC | SM_FIX | 0x800 | TS_INDEX2VAL((xmit_sz)))
 
#define USBTS_LOW_BIT   0x3 /* --xx */
 
#define USBTS_HI_BIT   0x0 /* ---- */
 
#define USBTS_LOW_SHIFT   6
 
#define USBTS_HI_SHIFT   0
 
#define USBTS_INDEX2VAL(i)   (((i) & 3) << 6)
 

Enumerations

enum  {
  XMIT_SZ_8BIT = 0, XMIT_SZ_16BIT = 1, XMIT_SZ_32BIT = 2, XMIT_SZ_64BIT = 7,
  XMIT_SZ_128BIT = 3, XMIT_SZ_256BIT = 4, XMIT_SZ_512BIT = 5
}
 
enum  { USBTS_XMIT_SZ_8BYTE = 0, USBTS_XMIT_SZ_16BYTE = 1, USBTS_XMIT_SZ_32BYTE = 2 }
 

Macro Definition Documentation

#define CHCR_RX (   xmit_sz)    (DM_INC | SM_FIX | 0x800 | TS_INDEX2VAL((xmit_sz)))

Definition at line 56 of file dma-register.h.

#define CHCR_TX (   xmit_sz)    (DM_FIX | SM_INC | 0x800 | TS_INDEX2VAL((xmit_sz)))

Definition at line 55 of file dma-register.h.

#define TS_HI_BIT   0xc /* xx-- */

Definition at line 46 of file dma-register.h.

#define TS_HI_SHIFT   (20 - 2) /* 2 bits for shifted low TS */

Definition at line 49 of file dma-register.h.

#define TS_INDEX2VAL (   i)
Value:
((((i) & TS_LOW_BIT) << TS_LOW_SHIFT) |\
(((i) & TS_HI_BIT) << TS_HI_SHIFT))

Definition at line 51 of file dma-register.h.

#define TS_LOW_BIT   0x3 /* --xx */

Definition at line 45 of file dma-register.h.

#define TS_LOW_SHIFT   (3)

Definition at line 48 of file dma-register.h.

#define USBTS_HI_BIT   0x0 /* ---- */

Definition at line 77 of file dma-register.h.

#define USBTS_HI_SHIFT   0

Definition at line 80 of file dma-register.h.

#define USBTS_INDEX2VAL (   i)    (((i) & 3) << 6)

Definition at line 82 of file dma-register.h.

#define USBTS_LOW_BIT   0x3 /* --xx */

Definition at line 76 of file dma-register.h.

#define USBTS_LOW_SHIFT   6

Definition at line 79 of file dma-register.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
XMIT_SZ_8BIT 
XMIT_SZ_16BIT 
XMIT_SZ_32BIT 
XMIT_SZ_64BIT 
XMIT_SZ_128BIT 
XMIT_SZ_256BIT 
XMIT_SZ_512BIT 

Definition at line 24 of file dma-register.h.

anonymous enum
Enumerator:
USBTS_XMIT_SZ_8BYTE 
USBTS_XMIT_SZ_16BYTE 
USBTS_XMIT_SZ_32BYTE 

Definition at line 63 of file dma-register.h.