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

Go to the source code of this file.

Macros

#define DMAC_ISR   (PKUNITY_DMAC_BASE + 0x0020)
 
#define DMAC_ITCSR   (PKUNITY_DMAC_BASE + 0x0050)
 
#define DMAC_ITCCR   (PKUNITY_DMAC_BASE + 0x0060)
 
#define DMAC_IESR   (PKUNITY_DMAC_BASE + 0x0080)
 
#define DMAC_IECR   (PKUNITY_DMAC_BASE + 0x0090)
 
#define DMAC_ENCH   (PKUNITY_DMAC_BASE + 0x00B0)
 
#define DMASp   0x00000100
 
#define DMAC_SRCADDR(ch)   (PKUNITY_DMAC_BASE + (ch)*DMASp + 0x00)
 
#define DMAC_DESTADDR(ch)   (PKUNITY_DMAC_BASE + (ch)*DMASp + 0x04)
 
#define DMAC_CONTROL(ch)   (PKUNITY_DMAC_BASE + (ch)*DMASp + 0x0C)
 
#define DMAC_CONFIG(ch)   (PKUNITY_DMAC_BASE + (ch)*DMASp + 0x10)
 
#define DMAC_IR_MASK   FMASK(6, 0)
 
#define DMAC_CHANNEL(ch)   FIELD(1, 1, (ch))
 
#define DMAC_CONTROL_SIZE_BYTE(v)
 
#define DMAC_CONTROL_SIZE_HWORD(v)
 
#define DMAC_CONTROL_SIZE_WORD(v)
 
#define DMAC_CONTROL_DI   FIELD(1, 1, 13)
 
#define DMAC_CONTROL_SI   FIELD(1, 1, 12)
 
#define DMAC_CONTROL_BURST_1BYTE   (FIELD(0, 3, 3) | FIELD(0, 3, 0))
 
#define DMAC_CONTROL_BURST_4BYTE   (FIELD(3, 3, 3) | FIELD(3, 3, 0))
 
#define DMAC_CONTROL_BURST_8BYTE   (FIELD(5, 3, 3) | FIELD(5, 3, 0))
 
#define DMAC_CONTROL_BURST_16BYTE   (FIELD(7, 3, 3) | FIELD(7, 3, 0))
 
#define DMAC_CONFIG_UART0_WR   (FIELD(2, 4, 11) | FIELD(1, 2, 1))
 
#define DMAC_CONFIG_UART0_RD   (FIELD(2, 4, 7) | FIELD(2, 2, 1))
 
#define DMAC_CONFIG_UART1_WR   (FIELD(3, 4, 11) | FIELD(1, 2, 1))
 
#define DMAC_CONFIG_UART1RD   (FIELD(3, 4, 7) | FIELD(2, 2, 1))
 
#define DMAC_CONFIG_AC97WR   (FIELD(4, 4, 11) | FIELD(1, 2, 1))
 
#define DMAC_CONFIG_AC97RD   (FIELD(4, 4, 7) | FIELD(2, 2, 1))
 
#define DMAC_CONFIG_MMCWR   (FIELD(7, 4, 11) | FIELD(1, 2, 1))
 
#define DMAC_CONFIG_MMCRD   (FIELD(7, 4, 7) | FIELD(2, 2, 1))
 
#define DMAC_CONFIG_MASKITC   FIELD(1, 1, 4)
 
#define DMAC_CONFIG_MASKIE   FIELD(1, 1, 3)
 
#define DMAC_CONFIG_EN   FIELD(1, 1, 0)
 

Macro Definition Documentation

#define DMAC_CHANNEL (   ch)    FIELD(1, 1, (ch))

Definition at line 56 of file regs-dmac.h.

#define DMAC_CONFIG (   ch)    (PKUNITY_DMAC_BASE + (ch)*DMASp + 0x10)

Definition at line 50 of file regs-dmac.h.

#define DMAC_CONFIG_AC97RD   (FIELD(4, 4, 7) | FIELD(2, 2, 1))

Definition at line 76 of file regs-dmac.h.

#define DMAC_CONFIG_AC97WR   (FIELD(4, 4, 11) | FIELD(1, 2, 1))

Definition at line 75 of file regs-dmac.h.

#define DMAC_CONFIG_EN   FIELD(1, 1, 0)

Definition at line 81 of file regs-dmac.h.

#define DMAC_CONFIG_MASKIE   FIELD(1, 1, 3)

Definition at line 80 of file regs-dmac.h.

#define DMAC_CONFIG_MASKITC   FIELD(1, 1, 4)

Definition at line 79 of file regs-dmac.h.

#define DMAC_CONFIG_MMCRD   (FIELD(7, 4, 7) | FIELD(2, 2, 1))

Definition at line 78 of file regs-dmac.h.

#define DMAC_CONFIG_MMCWR   (FIELD(7, 4, 11) | FIELD(1, 2, 1))

Definition at line 77 of file regs-dmac.h.

#define DMAC_CONFIG_UART0_RD   (FIELD(2, 4, 7) | FIELD(2, 2, 1))

Definition at line 72 of file regs-dmac.h.

#define DMAC_CONFIG_UART0_WR   (FIELD(2, 4, 11) | FIELD(1, 2, 1))

Definition at line 71 of file regs-dmac.h.

#define DMAC_CONFIG_UART1_WR   (FIELD(3, 4, 11) | FIELD(1, 2, 1))

Definition at line 73 of file regs-dmac.h.

#define DMAC_CONFIG_UART1RD   (FIELD(3, 4, 7) | FIELD(2, 2, 1))

Definition at line 74 of file regs-dmac.h.

#define DMAC_CONTROL (   ch)    (PKUNITY_DMAC_BASE + (ch)*DMASp + 0x0C)

Definition at line 46 of file regs-dmac.h.

#define DMAC_CONTROL_BURST_16BYTE   (FIELD(7, 3, 3) | FIELD(7, 3, 0))

Definition at line 69 of file regs-dmac.h.

#define DMAC_CONTROL_BURST_1BYTE   (FIELD(0, 3, 3) | FIELD(0, 3, 0))

Definition at line 66 of file regs-dmac.h.

#define DMAC_CONTROL_BURST_4BYTE   (FIELD(3, 3, 3) | FIELD(3, 3, 0))

Definition at line 67 of file regs-dmac.h.

#define DMAC_CONTROL_BURST_8BYTE   (FIELD(5, 3, 3) | FIELD(5, 3, 0))

Definition at line 68 of file regs-dmac.h.

#define DMAC_CONTROL_DI   FIELD(1, 1, 13)

Definition at line 64 of file regs-dmac.h.

#define DMAC_CONTROL_SI   FIELD(1, 1, 12)

Definition at line 65 of file regs-dmac.h.

#define DMAC_CONTROL_SIZE_BYTE (   v)
Value:
(FIELD((v), 12, 14) | \
FIELD(0, 3, 9) | FIELD(0, 3, 6))

Definition at line 58 of file regs-dmac.h.

#define DMAC_CONTROL_SIZE_HWORD (   v)
Value:
(FIELD((v) >> 1, 12, 14) | \
FIELD(1, 3, 9) | FIELD(1, 3, 6))

Definition at line 60 of file regs-dmac.h.

#define DMAC_CONTROL_SIZE_WORD (   v)
Value:
(FIELD((v) >> 2, 12, 14) | \
FIELD(2, 3, 9) | FIELD(2, 3, 6))

Definition at line 62 of file regs-dmac.h.

#define DMAC_DESTADDR (   ch)    (PKUNITY_DMAC_BASE + (ch)*DMASp + 0x04)

Definition at line 42 of file regs-dmac.h.

#define DMAC_ENCH   (PKUNITY_DMAC_BASE + 0x00B0)

Definition at line 28 of file regs-dmac.h.

#define DMAC_IECR   (PKUNITY_DMAC_BASE + 0x0090)

Definition at line 24 of file regs-dmac.h.

#define DMAC_IESR   (PKUNITY_DMAC_BASE + 0x0080)

Definition at line 20 of file regs-dmac.h.

#define DMAC_IR_MASK   FMASK(6, 0)

Definition at line 52 of file regs-dmac.h.

#define DMAC_ISR   (PKUNITY_DMAC_BASE + 0x0020)

Definition at line 8 of file regs-dmac.h.

#define DMAC_ITCCR   (PKUNITY_DMAC_BASE + 0x0060)

Definition at line 16 of file regs-dmac.h.

#define DMAC_ITCSR   (PKUNITY_DMAC_BASE + 0x0050)

Definition at line 12 of file regs-dmac.h.

#define DMAC_SRCADDR (   ch)    (PKUNITY_DMAC_BASE + (ch)*DMASp + 0x00)

Definition at line 38 of file regs-dmac.h.

#define DMASp   0x00000100

Definition at line 33 of file regs-dmac.h.