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

Go to the source code of this file.

Macros

#define AMCC_OP_REG_OMB1   0x00
 
#define AMCC_OP_REG_OMB2   0x04
 
#define AMCC_OP_REG_OMB3   0x08
 
#define AMCC_OP_REG_OMB4   0x0c
 
#define AMCC_OP_REG_IMB1   0x10
 
#define AMCC_OP_REG_IMB2   0x14
 
#define AMCC_OP_REG_IMB3   0x18
 
#define AMCC_OP_REG_IMB4   0x1c
 
#define AMCC_OP_REG_FIFO   0x20
 
#define AMCC_OP_REG_MWAR   0x24
 
#define AMCC_OP_REG_MWTC   0x28
 
#define AMCC_OP_REG_MRAR   0x2c
 
#define AMCC_OP_REG_MRTC   0x30
 
#define AMCC_OP_REG_MBEF   0x34
 
#define AMCC_OP_REG_INTCSR   0x38
 
#define AMCC_OP_REG_INTCSR_SRC   (AMCC_OP_REG_INTCSR + 2) /* INT source */
 
#define AMCC_OP_REG_INTCSR_FEC   (AMCC_OP_REG_INTCSR + 3) /* FIFO ctrl */
 
#define AMCC_OP_REG_MCSR   0x3c
 
#define AMCC_OP_REG_MCSR_NVDATA   (AMCC_OP_REG_MCSR + 2) /* Data in byte 2 */
 
#define AMCC_OP_REG_MCSR_NVCMD   (AMCC_OP_REG_MCSR + 3) /* Command in byte 3 */
 
#define AMCC_FIFO_DEPTH_DWORD   8
 
#define AMCC_FIFO_DEPTH_BYTES   (8 * sizeof (u32))
 
#define INTCSR_OUTBOX_BYTE(x)   ((x) & 0x3)
 
#define INTCSR_OUTBOX_SELECT(x)   (((x) & 0x3) << 2)
 
#define INTCSR_OUTBOX_EMPTY_INT   0x10 /* enable outbox empty interrupt */
 
#define INTCSR_INBOX_BYTE(x)   (((x) & 0x3) << 8)
 
#define INTCSR_INBOX_SELECT(x)   (((x) & 0x3) << 10)
 
#define INTCSR_INBOX_FULL_INT   0x1000 /* enable inbox full interrupt */
 
#define INTCSR_INBOX_INTR_STATUS   0x20000 /* read, or write clear inbox full interrupt */
 
#define INTCSR_INTR_ASSERTED   0x800000 /* read only, interrupt asserted */
 
#define MCSR_NV_LOAD_LOW_ADDR   0x0
 
#define MCSR_NV_LOAD_HIGH_ADDR   0x20
 
#define MCSR_NV_WRITE   0x40
 
#define MCSR_NV_READ   0x60
 
#define MCSR_NV_MASK   0x60
 
#define MCSR_NV_ENABLE   0x80
 
#define MCSR_NV_BUSY   MCSR_NV_ENABLE
 
#define AMCC_OP_REG_SIZE   64 /* in bytes */
 
#define AMCC_OP_REG_AIMB1   0x00
 
#define AMCC_OP_REG_AIMB2   0x04
 
#define AMCC_OP_REG_AIMB3   0x08
 
#define AMCC_OP_REG_AIMB4   0x0c
 
#define AMCC_OP_REG_AOMB1   0x10
 
#define AMCC_OP_REG_AOMB2   0x14
 
#define AMCC_OP_REG_AOMB3   0x18
 
#define AMCC_OP_REG_AOMB4   0x1c
 
#define AMCC_OP_REG_AFIFO   0x20
 
#define AMCC_OP_REG_AMWAR   0x24
 
#define AMCC_OP_REG_APTA   0x28
 
#define AMCC_OP_REG_APTD   0x2c
 
#define AMCC_OP_REG_AMRAR   0x30
 
#define AMCC_OP_REG_AMBEF   0x34
 
#define AMCC_OP_REG_AINT   0x38
 
#define AMCC_OP_REG_AGCSTS   0x3c
 
#define AMCC_OP_REG_AMWTC   0x58
 
#define AMCC_OP_REG_AMRTC   0x5c
 
#define AGCSTS_CONTROL_MASK   0xfffff000
 
#define AGCSTS_NV_ACC_MASK   0xe0000000
 
#define AGCSTS_RESET_MASK   0x0e000000
 
#define AGCSTS_NV_DA_MASK   0x00ff0000
 
#define AGCSTS_BIST_MASK   0x0000f000
 
#define AGCSTS_STATUS_MASK   0x000000ff
 
#define AGCSTS_TCZERO_MASK   0x000000c0
 
#define AGCSTS_FIFO_ST_MASK   0x0000003f
 
#define AGCSTS_RESET_MBFLAGS   0x08000000
 
#define AGCSTS_RESET_P2A_FIFO   0x04000000
 
#define AGCSTS_RESET_A2P_FIFO   0x02000000
 
#define AGCSTS_RESET_FIFOS   (AGCSTS_RESET_A2P_FIFO | AGCSTS_RESET_P2A_FIFO)
 
#define AGCSTS_A2P_TCOUNT   0x00000080
 
#define AGCSTS_P2A_TCOUNT   0x00000040
 
#define AGCSTS_FS_P2A_EMPTY   0x00000020
 
#define AGCSTS_FS_P2A_HALF   0x00000010
 
#define AGCSTS_FS_P2A_FULL   0x00000008
 
#define AGCSTS_FS_A2P_EMPTY   0x00000004
 
#define AGCSTS_FS_A2P_HALF   0x00000002
 
#define AGCSTS_FS_A2P_FULL   0x00000001
 
#define AINT_INT_MASK   0x00ff0000
 
#define AINT_SEL_MASK   0x0000ffff
 
#define AINT_IS_ENSEL_MASK   0x00001f1f
 
#define AINT_INT_ASSERTED   0x00800000
 
#define AINT_BM_ERROR   0x00200000
 
#define AINT_BIST_INT   0x00100000
 
#define AINT_RT_COMPLETE   0x00080000
 
#define AINT_WT_COMPLETE   0x00040000
 
#define AINT_OUT_MB_INT   0x00020000
 
#define AINT_IN_MB_INT   0x00010000
 
#define AINT_READ_COMPL   0x00008000
 
#define AINT_WRITE_COMPL   0x00004000
 
#define AINT_OMB_ENABLE   0x00001000
 
#define AINT_OMB_SELECT   0x00000c00
 
#define AINT_OMB_BYTE   0x00000300
 
#define AINT_IMB_ENABLE   0x00000010
 
#define AINT_IMB_SELECT   0x0000000c
 
#define AINT_IMB_BYTE   0x00000003
 
#define EN_A2P_TRANSFERS   0x00000400
 
#define RESET_A2P_FLAGS   0x04000000L
 
#define A2P_HI_PRIORITY   0x00000100L
 
#define ANY_S593X_INT   0x00800000L
 
#define READ_TC_INT   0x00080000L
 
#define WRITE_TC_INT   0x00040000L
 
#define IN_MB_INT   0x00020000L
 
#define MASTER_ABORT_INT   0x00100000L
 
#define TARGET_ABORT_INT   0x00200000L
 
#define BUS_MASTER_INT   0x00200000L
 

Macro Definition Documentation

#define A2P_HI_PRIORITY   0x00000100L

Definition at line 162 of file amcc_s5933.h.

#define AGCSTS_A2P_TCOUNT   0x00000080

Definition at line 116 of file amcc_s5933.h.

#define AGCSTS_BIST_MASK   0x0000f000

Definition at line 106 of file amcc_s5933.h.

#define AGCSTS_CONTROL_MASK   0xfffff000

Definition at line 102 of file amcc_s5933.h.

#define AGCSTS_FIFO_ST_MASK   0x0000003f

Definition at line 109 of file amcc_s5933.h.

#define AGCSTS_FS_A2P_EMPTY   0x00000004

Definition at line 123 of file amcc_s5933.h.

#define AGCSTS_FS_A2P_FULL   0x00000001

Definition at line 125 of file amcc_s5933.h.

#define AGCSTS_FS_A2P_HALF   0x00000002

Definition at line 124 of file amcc_s5933.h.

#define AGCSTS_FS_P2A_EMPTY   0x00000020

Definition at line 119 of file amcc_s5933.h.

#define AGCSTS_FS_P2A_FULL   0x00000008

Definition at line 121 of file amcc_s5933.h.

#define AGCSTS_FS_P2A_HALF   0x00000010

Definition at line 120 of file amcc_s5933.h.

#define AGCSTS_NV_ACC_MASK   0xe0000000

Definition at line 103 of file amcc_s5933.h.

#define AGCSTS_NV_DA_MASK   0x00ff0000

Definition at line 105 of file amcc_s5933.h.

#define AGCSTS_P2A_TCOUNT   0x00000040

Definition at line 117 of file amcc_s5933.h.

#define AGCSTS_RESET_A2P_FIFO   0x02000000

Definition at line 113 of file amcc_s5933.h.

#define AGCSTS_RESET_FIFOS   (AGCSTS_RESET_A2P_FIFO | AGCSTS_RESET_P2A_FIFO)

Definition at line 114 of file amcc_s5933.h.

#define AGCSTS_RESET_MASK   0x0e000000

Definition at line 104 of file amcc_s5933.h.

#define AGCSTS_RESET_MBFLAGS   0x08000000

Definition at line 111 of file amcc_s5933.h.

#define AGCSTS_RESET_P2A_FIFO   0x04000000

Definition at line 112 of file amcc_s5933.h.

#define AGCSTS_STATUS_MASK   0x000000ff

Definition at line 107 of file amcc_s5933.h.

#define AGCSTS_TCZERO_MASK   0x000000c0

Definition at line 108 of file amcc_s5933.h.

#define AINT_BIST_INT   0x00100000

Definition at line 137 of file amcc_s5933.h.

#define AINT_BM_ERROR   0x00200000

Definition at line 136 of file amcc_s5933.h.

#define AINT_IMB_BYTE   0x00000003

Definition at line 154 of file amcc_s5933.h.

#define AINT_IMB_ENABLE   0x00000010

Definition at line 152 of file amcc_s5933.h.

#define AINT_IMB_SELECT   0x0000000c

Definition at line 153 of file amcc_s5933.h.

#define AINT_IN_MB_INT   0x00010000

Definition at line 143 of file amcc_s5933.h.

#define AINT_INT_ASSERTED   0x00800000

Definition at line 135 of file amcc_s5933.h.

#define AINT_INT_MASK   0x00ff0000

Definition at line 131 of file amcc_s5933.h.

#define AINT_IS_ENSEL_MASK   0x00001f1f

Definition at line 133 of file amcc_s5933.h.

#define AINT_OMB_BYTE   0x00000300

Definition at line 150 of file amcc_s5933.h.

#define AINT_OMB_ENABLE   0x00001000

Definition at line 148 of file amcc_s5933.h.

#define AINT_OMB_SELECT   0x00000c00

Definition at line 149 of file amcc_s5933.h.

#define AINT_OUT_MB_INT   0x00020000

Definition at line 142 of file amcc_s5933.h.

#define AINT_READ_COMPL   0x00008000

Definition at line 145 of file amcc_s5933.h.

#define AINT_RT_COMPLETE   0x00080000

Definition at line 139 of file amcc_s5933.h.

#define AINT_SEL_MASK   0x0000ffff

Definition at line 132 of file amcc_s5933.h.

#define AINT_WRITE_COMPL   0x00004000

Definition at line 146 of file amcc_s5933.h.

#define AINT_WT_COMPLETE   0x00040000

Definition at line 140 of file amcc_s5933.h.

#define AMCC_FIFO_DEPTH_BYTES   (8 * sizeof (u32))

Definition at line 44 of file amcc_s5933.h.

#define AMCC_FIFO_DEPTH_DWORD   8

Definition at line 43 of file amcc_s5933.h.

#define AMCC_OP_REG_AFIFO   0x20

Definition at line 87 of file amcc_s5933.h.

#define AMCC_OP_REG_AGCSTS   0x3c

Definition at line 94 of file amcc_s5933.h.

#define AMCC_OP_REG_AIMB1   0x00

Definition at line 79 of file amcc_s5933.h.

#define AMCC_OP_REG_AIMB2   0x04

Definition at line 80 of file amcc_s5933.h.

#define AMCC_OP_REG_AIMB3   0x08

Definition at line 81 of file amcc_s5933.h.

#define AMCC_OP_REG_AIMB4   0x0c

Definition at line 82 of file amcc_s5933.h.

#define AMCC_OP_REG_AINT   0x38

Definition at line 93 of file amcc_s5933.h.

#define AMCC_OP_REG_AMBEF   0x34

Definition at line 92 of file amcc_s5933.h.

#define AMCC_OP_REG_AMRAR   0x30

Definition at line 91 of file amcc_s5933.h.

#define AMCC_OP_REG_AMRTC   0x5c

Definition at line 96 of file amcc_s5933.h.

#define AMCC_OP_REG_AMWAR   0x24

Definition at line 88 of file amcc_s5933.h.

#define AMCC_OP_REG_AMWTC   0x58

Definition at line 95 of file amcc_s5933.h.

#define AMCC_OP_REG_AOMB1   0x10

Definition at line 83 of file amcc_s5933.h.

#define AMCC_OP_REG_AOMB2   0x14

Definition at line 84 of file amcc_s5933.h.

#define AMCC_OP_REG_AOMB3   0x18

Definition at line 85 of file amcc_s5933.h.

#define AMCC_OP_REG_AOMB4   0x1c

Definition at line 86 of file amcc_s5933.h.

#define AMCC_OP_REG_APTA   0x28

Definition at line 89 of file amcc_s5933.h.

#define AMCC_OP_REG_APTD   0x2c

Definition at line 90 of file amcc_s5933.h.

#define AMCC_OP_REG_FIFO   0x20

Definition at line 30 of file amcc_s5933.h.

#define AMCC_OP_REG_IMB1   0x10

Definition at line 26 of file amcc_s5933.h.

#define AMCC_OP_REG_IMB2   0x14

Definition at line 27 of file amcc_s5933.h.

#define AMCC_OP_REG_IMB3   0x18

Definition at line 28 of file amcc_s5933.h.

#define AMCC_OP_REG_IMB4   0x1c

Definition at line 29 of file amcc_s5933.h.

#define AMCC_OP_REG_INTCSR   0x38

Definition at line 36 of file amcc_s5933.h.

#define AMCC_OP_REG_INTCSR_FEC   (AMCC_OP_REG_INTCSR + 3) /* FIFO ctrl */

Definition at line 38 of file amcc_s5933.h.

#define AMCC_OP_REG_INTCSR_SRC   (AMCC_OP_REG_INTCSR + 2) /* INT source */

Definition at line 37 of file amcc_s5933.h.

#define AMCC_OP_REG_MBEF   0x34

Definition at line 35 of file amcc_s5933.h.

#define AMCC_OP_REG_MCSR   0x3c

Definition at line 39 of file amcc_s5933.h.

#define AMCC_OP_REG_MCSR_NVCMD   (AMCC_OP_REG_MCSR + 3) /* Command in byte 3 */

Definition at line 41 of file amcc_s5933.h.

#define AMCC_OP_REG_MCSR_NVDATA   (AMCC_OP_REG_MCSR + 2) /* Data in byte 2 */

Definition at line 40 of file amcc_s5933.h.

#define AMCC_OP_REG_MRAR   0x2c

Definition at line 33 of file amcc_s5933.h.

#define AMCC_OP_REG_MRTC   0x30

Definition at line 34 of file amcc_s5933.h.

#define AMCC_OP_REG_MWAR   0x24

Definition at line 31 of file amcc_s5933.h.

#define AMCC_OP_REG_MWTC   0x28

Definition at line 32 of file amcc_s5933.h.

#define AMCC_OP_REG_OMB1   0x00

Definition at line 22 of file amcc_s5933.h.

#define AMCC_OP_REG_OMB2   0x04

Definition at line 23 of file amcc_s5933.h.

#define AMCC_OP_REG_OMB3   0x08

Definition at line 24 of file amcc_s5933.h.

#define AMCC_OP_REG_OMB4   0x0c

Definition at line 25 of file amcc_s5933.h.

#define AMCC_OP_REG_SIZE   64 /* in bytes */

Definition at line 73 of file amcc_s5933.h.

#define ANY_S593X_INT   0x00800000L

Definition at line 164 of file amcc_s5933.h.

#define BUS_MASTER_INT   0x00200000L

Definition at line 170 of file amcc_s5933.h.

#define EN_A2P_TRANSFERS   0x00000400

Definition at line 158 of file amcc_s5933.h.

#define IN_MB_INT   0x00020000L

Definition at line 167 of file amcc_s5933.h.

#define INTCSR_INBOX_BYTE (   x)    (((x) & 0x3) << 8)

Definition at line 52 of file amcc_s5933.h.

#define INTCSR_INBOX_FULL_INT   0x1000 /* enable inbox full interrupt */

Definition at line 54 of file amcc_s5933.h.

#define INTCSR_INBOX_INTR_STATUS   0x20000 /* read, or write clear inbox full interrupt */

Definition at line 55 of file amcc_s5933.h.

#define INTCSR_INBOX_SELECT (   x)    (((x) & 0x3) << 10)

Definition at line 53 of file amcc_s5933.h.

#define INTCSR_INTR_ASSERTED   0x800000 /* read only, interrupt asserted */

Definition at line 56 of file amcc_s5933.h.

#define INTCSR_OUTBOX_BYTE (   x)    ((x) & 0x3)

Definition at line 49 of file amcc_s5933.h.

#define INTCSR_OUTBOX_EMPTY_INT   0x10 /* enable outbox empty interrupt */

Definition at line 51 of file amcc_s5933.h.

#define INTCSR_OUTBOX_SELECT (   x)    (((x) & 0x3) << 2)

Definition at line 50 of file amcc_s5933.h.

#define MASTER_ABORT_INT   0x00100000L

Definition at line 168 of file amcc_s5933.h.

#define MCSR_NV_BUSY   MCSR_NV_ENABLE

Definition at line 67 of file amcc_s5933.h.

#define MCSR_NV_ENABLE   0x80

Definition at line 66 of file amcc_s5933.h.

#define MCSR_NV_LOAD_HIGH_ADDR   0x20

Definition at line 62 of file amcc_s5933.h.

#define MCSR_NV_LOAD_LOW_ADDR   0x0

Definition at line 61 of file amcc_s5933.h.

#define MCSR_NV_MASK   0x60

Definition at line 65 of file amcc_s5933.h.

#define MCSR_NV_READ   0x60

Definition at line 64 of file amcc_s5933.h.

#define MCSR_NV_WRITE   0x40

Definition at line 63 of file amcc_s5933.h.

#define READ_TC_INT   0x00080000L

Definition at line 165 of file amcc_s5933.h.

#define RESET_A2P_FLAGS   0x04000000L

Definition at line 160 of file amcc_s5933.h.

#define TARGET_ABORT_INT   0x00200000L

Definition at line 169 of file amcc_s5933.h.

#define WRITE_TC_INT   0x00040000L

Definition at line 166 of file amcc_s5933.h.