Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
emma2rh.h File Reference
#include <irq.h>

Go to the source code of this file.

Macros

#define REGBASE   0x10000000
 
#define EMMA2RH_BHIF_STRAP_0   (0x000010+REGBASE)
 
#define EMMA2RH_BHIF_INT_ST_0   (0x000030+REGBASE)
 
#define EMMA2RH_BHIF_INT_ST_1   (0x000034+REGBASE)
 
#define EMMA2RH_BHIF_INT_ST_2   (0x000038+REGBASE)
 
#define EMMA2RH_BHIF_INT_EN_0   (0x000040+REGBASE)
 
#define EMMA2RH_BHIF_INT_EN_1   (0x000044+REGBASE)
 
#define EMMA2RH_BHIF_INT_EN_2   (0x000048+REGBASE)
 
#define EMMA2RH_BHIF_INT1_EN_0   (0x000050+REGBASE)
 
#define EMMA2RH_BHIF_INT1_EN_1   (0x000054+REGBASE)
 
#define EMMA2RH_BHIF_INT1_EN_2   (0x000058+REGBASE)
 
#define EMMA2RH_BHIF_SW_INT   (0x000070+REGBASE)
 
#define EMMA2RH_BHIF_SW_INT_EN   (0x000080+REGBASE)
 
#define EMMA2RH_BHIF_SW_INT_CLR   (0x000090+REGBASE)
 
#define EMMA2RH_BHIF_MAIN_CTRL   (0x0000b4+REGBASE)
 
#define EMMA2RH_BHIF_EXCEPT_VECT_BASE_ADDRESS   (0x0000c0+REGBASE)
 
#define EMMA2RH_GPIO_DIR   (0x110d20+REGBASE)
 
#define EMMA2RH_GPIO_INT_ST   (0x110d30+REGBASE)
 
#define EMMA2RH_GPIO_INT_MASK   (0x110d3c+REGBASE)
 
#define EMMA2RH_GPIO_INT_MODE   (0x110d48+REGBASE)
 
#define EMMA2RH_GPIO_INT_CND_A   (0x110d54+REGBASE)
 
#define EMMA2RH_GPIO_INT_CND_B   (0x110d60+REGBASE)
 
#define EMMA2RH_PBRD_INT_EN   (0x100010+REGBASE)
 
#define EMMA2RH_PBRD_CLKSEL   (0x100028+REGBASE)
 
#define EMMA2RH_PFUR0_BASE   (0x101000+REGBASE)
 
#define EMMA2RH_PFUR1_BASE   (0x102000+REGBASE)
 
#define EMMA2RH_PFUR2_BASE   (0x103000+REGBASE)
 
#define EMMA2RH_PIIC0_BASE   (0x107000+REGBASE)
 
#define EMMA2RH_PIIC1_BASE   (0x108000+REGBASE)
 
#define EMMA2RH_PIIC2_BASE   (0x109000+REGBASE)
 
#define EMMA2RH_PCI_CONTROL   (0x200000+REGBASE)
 
#define EMMA2RH_PCI_ARBIT_CTR   (0x200004+REGBASE)
 
#define EMMA2RH_PCI_IWIN0_CTR   (0x200010+REGBASE)
 
#define EMMA2RH_PCI_IWIN1_CTR   (0x200014+REGBASE)
 
#define EMMA2RH_PCI_INIT_ESWP   (0x200018+REGBASE)
 
#define EMMA2RH_PCI_INT   (0x200020+REGBASE)
 
#define EMMA2RH_PCI_INT_EN   (0x200024+REGBASE)
 
#define EMMA2RH_PCI_TWIN_CTR   (0x200030+REGBASE)
 
#define EMMA2RH_PCI_TWIN_BADR   (0x200034+REGBASE)
 
#define EMMA2RH_PCI_TWIN0_DADR   (0x200038+REGBASE)
 
#define EMMA2RH_PCI_TWIN1_DADR   (0x20003c+REGBASE)
 
#define EMMA2RH_RAM_BASE   0x00000000
 
#define EMMA2RH_RAM_SIZE   0x10000000 /* less than 256MB */
 
#define EMMA2RH_IO_BASE   0x10000000
 
#define EMMA2RH_IO_SIZE   0x01000000 /* 16 MB */
 
#define EMMA2RH_GENERALIO_BASE   0x11000000
 
#define EMMA2RH_GENERALIO_SIZE   0x01000000 /* 16 MB */
 
#define EMMA2RH_PCI_IO_BASE   0x12000000
 
#define EMMA2RH_PCI_IO_SIZE   0x02000000 /* 32 MB */
 
#define EMMA2RH_PCI_MEM_BASE   0x14000000
 
#define EMMA2RH_PCI_MEM_SIZE   0x08000000 /* 128 MB */
 
#define EMMA2RH_ROM_BASE   0x1c000000
 
#define EMMA2RH_ROM_SIZE   0x04000000 /* 64 MB */
 
#define EMMA2RH_PCI_CONFIG_BASE   EMMA2RH_PCI_IO_BASE
 
#define EMMA2RH_PCI_CONFIG_SIZE   EMMA2RH_PCI_IO_SIZE
 
#define NUM_EMMA2RH_IRQ   96
 
#define EMMA2RH_IRQ_BASE   (MIPS_CPU_IRQ_BASE + 8)
 
#define EMMA2RH_IRQ_INT(n)   (EMMA2RH_IRQ_BASE + (n))
 
#define EMMA2RH_IRQ_PFUR0   EMMA2RH_IRQ_INT(49)
 
#define EMMA2RH_IRQ_PFUR1   EMMA2RH_IRQ_INT(50)
 
#define EMMA2RH_IRQ_PFUR2   EMMA2RH_IRQ_INT(51)
 
#define EMMA2RH_IRQ_PIIC0   EMMA2RH_IRQ_INT(56)
 
#define EMMA2RH_IRQ_PIIC1   EMMA2RH_IRQ_INT(57)
 
#define EMMA2RH_IRQ_PIIC2   EMMA2RH_IRQ_INT(58)
 
#define EMMA2RH_BASE   (0xa0000000)
 
#define SPT   0x00000001
 
#define STT   0x00000002
 
#define ACKE   0x00000004
 
#define WTIM   0x00000008
 
#define SPIE   0x00000010
 
#define WREL   0x00000020
 
#define LREL   0x00000040
 
#define IICE   0x00000080
 
#define CNT_RESERVED   0x000000ff /* reserved bit 0 */
 
#define I2C_EMMA_START   (IICE | STT)
 
#define I2C_EMMA_STOP   (IICE | SPT)
 
#define I2C_EMMA_REPSTART   I2C_EMMA_START
 
#define MSTS   0x00000080
 
#define ALD   0x00000040
 
#define EXC   0x00000020
 
#define COI   0x00000010
 
#define TRC   0x00000008
 
#define ACKD   0x00000004
 
#define STD   0x00000002
 
#define SPD   0x00000001
 
#define FCL   0x00000080
 
#define ND50   0x00000040
 
#define CLD   0x00000020
 
#define DAD   0x00000010
 
#define SMC   0x00000008
 
#define DFC   0x00000004
 
#define CL   0x00000003
 
#define CSEL_RESERVED   0x000000ff /* reserved bit 0 */
 
#define FAST397   0x0000008b
 
#define FAST297   0x0000008a
 
#define FAST347   0x0000000b
 
#define FAST260   0x0000000a
 
#define FAST130   0x00000008
 
#define STANDARD108   0x00000083
 
#define STANDARD83   0x00000082
 
#define STANDARD95   0x00000003
 
#define STANDARD73   0x00000002
 
#define STANDARD36   0x00000001
 
#define STANDARD71   0x00000000
 
#define SVA   0x000000fe
 
#define SR   0x000000ff
 
#define INTE0   0x00000001
 
#define I2C_EMMA_CNT   0x00
 
#define I2C_EMMA_STA   0x10
 
#define I2C_EMMA_CSEL   0x20
 
#define I2C_EMMA_SVA   0x30
 
#define I2C_EMMA_SHR   0x40
 
#define I2C_EMMA_INT   0x50
 
#define I2C_EMMA_INTM   0x60
 

Macro Definition Documentation

#define ACKD   0x00000004

Definition at line 196 of file emma2rh.h.

#define ACKE   0x00000004

Definition at line 176 of file emma2rh.h.

#define ALD   0x00000040

Definition at line 192 of file emma2rh.h.

#define CL   0x00000003

Definition at line 209 of file emma2rh.h.

#define CLD   0x00000020

Definition at line 205 of file emma2rh.h.

#define CNT_RESERVED   0x000000ff /* reserved bit 0 */

Definition at line 182 of file emma2rh.h.

#define COI   0x00000010

Definition at line 194 of file emma2rh.h.

#define CSEL_RESERVED   0x000000ff /* reserved bit 0 */

Definition at line 210 of file emma2rh.h.

#define DAD   0x00000010

Definition at line 206 of file emma2rh.h.

#define DFC   0x00000004

Definition at line 208 of file emma2rh.h.

#define EMMA2RH_BASE   (0xa0000000)

Definition at line 123 of file emma2rh.h.

#define EMMA2RH_BHIF_EXCEPT_VECT_BASE_ADDRESS   (0x0000c0+REGBASE)

Definition at line 45 of file emma2rh.h.

#define EMMA2RH_BHIF_INT1_EN_0   (0x000050+REGBASE)

Definition at line 38 of file emma2rh.h.

#define EMMA2RH_BHIF_INT1_EN_1   (0x000054+REGBASE)

Definition at line 39 of file emma2rh.h.

#define EMMA2RH_BHIF_INT1_EN_2   (0x000058+REGBASE)

Definition at line 40 of file emma2rh.h.

#define EMMA2RH_BHIF_INT_EN_0   (0x000040+REGBASE)

Definition at line 35 of file emma2rh.h.

#define EMMA2RH_BHIF_INT_EN_1   (0x000044+REGBASE)

Definition at line 36 of file emma2rh.h.

#define EMMA2RH_BHIF_INT_EN_2   (0x000048+REGBASE)

Definition at line 37 of file emma2rh.h.

#define EMMA2RH_BHIF_INT_ST_0   (0x000030+REGBASE)

Definition at line 32 of file emma2rh.h.

#define EMMA2RH_BHIF_INT_ST_1   (0x000034+REGBASE)

Definition at line 33 of file emma2rh.h.

#define EMMA2RH_BHIF_INT_ST_2   (0x000038+REGBASE)

Definition at line 34 of file emma2rh.h.

#define EMMA2RH_BHIF_MAIN_CTRL   (0x0000b4+REGBASE)

Definition at line 44 of file emma2rh.h.

#define EMMA2RH_BHIF_STRAP_0   (0x000010+REGBASE)

Definition at line 31 of file emma2rh.h.

#define EMMA2RH_BHIF_SW_INT   (0x000070+REGBASE)

Definition at line 41 of file emma2rh.h.

#define EMMA2RH_BHIF_SW_INT_CLR   (0x000090+REGBASE)

Definition at line 43 of file emma2rh.h.

#define EMMA2RH_BHIF_SW_INT_EN   (0x000080+REGBASE)

Definition at line 42 of file emma2rh.h.

#define EMMA2RH_GENERALIO_BASE   0x11000000

Definition at line 87 of file emma2rh.h.

#define EMMA2RH_GENERALIO_SIZE   0x01000000 /* 16 MB */

Definition at line 88 of file emma2rh.h.

#define EMMA2RH_GPIO_DIR   (0x110d20+REGBASE)

Definition at line 46 of file emma2rh.h.

#define EMMA2RH_GPIO_INT_CND_A   (0x110d54+REGBASE)

Definition at line 50 of file emma2rh.h.

#define EMMA2RH_GPIO_INT_CND_B   (0x110d60+REGBASE)

Definition at line 51 of file emma2rh.h.

#define EMMA2RH_GPIO_INT_MASK   (0x110d3c+REGBASE)

Definition at line 48 of file emma2rh.h.

#define EMMA2RH_GPIO_INT_MODE   (0x110d48+REGBASE)

Definition at line 49 of file emma2rh.h.

#define EMMA2RH_GPIO_INT_ST   (0x110d30+REGBASE)

Definition at line 47 of file emma2rh.h.

#define EMMA2RH_IO_BASE   0x10000000

Definition at line 84 of file emma2rh.h.

#define EMMA2RH_IO_SIZE   0x01000000 /* 16 MB */

Definition at line 85 of file emma2rh.h.

#define EMMA2RH_IRQ_BASE   (MIPS_CPU_IRQ_BASE + 8)

Definition at line 104 of file emma2rh.h.

#define EMMA2RH_IRQ_INT (   n)    (EMMA2RH_IRQ_BASE + (n))

Definition at line 110 of file emma2rh.h.

#define EMMA2RH_IRQ_PFUR0   EMMA2RH_IRQ_INT(49)

Definition at line 112 of file emma2rh.h.

#define EMMA2RH_IRQ_PFUR1   EMMA2RH_IRQ_INT(50)

Definition at line 113 of file emma2rh.h.

#define EMMA2RH_IRQ_PFUR2   EMMA2RH_IRQ_INT(51)

Definition at line 114 of file emma2rh.h.

#define EMMA2RH_IRQ_PIIC0   EMMA2RH_IRQ_INT(56)

Definition at line 115 of file emma2rh.h.

#define EMMA2RH_IRQ_PIIC1   EMMA2RH_IRQ_INT(57)

Definition at line 116 of file emma2rh.h.

#define EMMA2RH_IRQ_PIIC2   EMMA2RH_IRQ_INT(58)

Definition at line 117 of file emma2rh.h.

#define EMMA2RH_PBRD_CLKSEL   (0x100028+REGBASE)

Definition at line 53 of file emma2rh.h.

#define EMMA2RH_PBRD_INT_EN   (0x100010+REGBASE)

Definition at line 52 of file emma2rh.h.

#define EMMA2RH_PCI_ARBIT_CTR   (0x200004+REGBASE)

Definition at line 61 of file emma2rh.h.

#define EMMA2RH_PCI_CONFIG_BASE   EMMA2RH_PCI_IO_BASE

Definition at line 99 of file emma2rh.h.

#define EMMA2RH_PCI_CONFIG_SIZE   EMMA2RH_PCI_IO_SIZE

Definition at line 100 of file emma2rh.h.

#define EMMA2RH_PCI_CONTROL   (0x200000+REGBASE)

Definition at line 60 of file emma2rh.h.

#define EMMA2RH_PCI_INIT_ESWP   (0x200018+REGBASE)

Definition at line 64 of file emma2rh.h.

#define EMMA2RH_PCI_INT   (0x200020+REGBASE)

Definition at line 65 of file emma2rh.h.

#define EMMA2RH_PCI_INT_EN   (0x200024+REGBASE)

Definition at line 66 of file emma2rh.h.

#define EMMA2RH_PCI_IO_BASE   0x12000000

Definition at line 90 of file emma2rh.h.

#define EMMA2RH_PCI_IO_SIZE   0x02000000 /* 32 MB */

Definition at line 91 of file emma2rh.h.

#define EMMA2RH_PCI_IWIN0_CTR   (0x200010+REGBASE)

Definition at line 62 of file emma2rh.h.

#define EMMA2RH_PCI_IWIN1_CTR   (0x200014+REGBASE)

Definition at line 63 of file emma2rh.h.

#define EMMA2RH_PCI_MEM_BASE   0x14000000

Definition at line 93 of file emma2rh.h.

#define EMMA2RH_PCI_MEM_SIZE   0x08000000 /* 128 MB */

Definition at line 94 of file emma2rh.h.

#define EMMA2RH_PCI_TWIN0_DADR   (0x200038+REGBASE)

Definition at line 69 of file emma2rh.h.

#define EMMA2RH_PCI_TWIN1_DADR   (0x20003c+REGBASE)

Definition at line 70 of file emma2rh.h.

#define EMMA2RH_PCI_TWIN_BADR   (0x200034+REGBASE)

Definition at line 68 of file emma2rh.h.

#define EMMA2RH_PCI_TWIN_CTR   (0x200030+REGBASE)

Definition at line 67 of file emma2rh.h.

#define EMMA2RH_PFUR0_BASE   (0x101000+REGBASE)

Definition at line 54 of file emma2rh.h.

#define EMMA2RH_PFUR1_BASE   (0x102000+REGBASE)

Definition at line 55 of file emma2rh.h.

#define EMMA2RH_PFUR2_BASE   (0x103000+REGBASE)

Definition at line 56 of file emma2rh.h.

#define EMMA2RH_PIIC0_BASE   (0x107000+REGBASE)

Definition at line 57 of file emma2rh.h.

#define EMMA2RH_PIIC1_BASE   (0x108000+REGBASE)

Definition at line 58 of file emma2rh.h.

#define EMMA2RH_PIIC2_BASE   (0x109000+REGBASE)

Definition at line 59 of file emma2rh.h.

#define EMMA2RH_RAM_BASE   0x00000000

Definition at line 81 of file emma2rh.h.

#define EMMA2RH_RAM_SIZE   0x10000000 /* less than 256MB */

Definition at line 82 of file emma2rh.h.

#define EMMA2RH_ROM_BASE   0x1c000000

Definition at line 96 of file emma2rh.h.

#define EMMA2RH_ROM_SIZE   0x04000000 /* 64 MB */

Definition at line 97 of file emma2rh.h.

#define EXC   0x00000020

Definition at line 193 of file emma2rh.h.

#define FAST130   0x00000008

Definition at line 216 of file emma2rh.h.

#define FAST260   0x0000000a

Definition at line 215 of file emma2rh.h.

#define FAST297   0x0000008a

Definition at line 213 of file emma2rh.h.

#define FAST347   0x0000000b

Definition at line 214 of file emma2rh.h.

#define FAST397   0x0000008b

Definition at line 212 of file emma2rh.h.

#define FCL   0x00000080

Definition at line 203 of file emma2rh.h.

#define I2C_EMMA_CNT   0x00

Definition at line 244 of file emma2rh.h.

#define I2C_EMMA_CSEL   0x20

Definition at line 246 of file emma2rh.h.

#define I2C_EMMA_INT   0x50

Definition at line 249 of file emma2rh.h.

#define I2C_EMMA_INTM   0x60

Definition at line 250 of file emma2rh.h.

#define I2C_EMMA_REPSTART   I2C_EMMA_START

Definition at line 186 of file emma2rh.h.

#define I2C_EMMA_SHR   0x40

Definition at line 248 of file emma2rh.h.

#define I2C_EMMA_STA   0x10

Definition at line 245 of file emma2rh.h.

#define I2C_EMMA_START   (IICE | STT)

Definition at line 184 of file emma2rh.h.

#define I2C_EMMA_STOP   (IICE | SPT)

Definition at line 185 of file emma2rh.h.

#define I2C_EMMA_SVA   0x30

Definition at line 247 of file emma2rh.h.

#define IICE   0x00000080

Definition at line 181 of file emma2rh.h.

#define INTE0   0x00000001

Definition at line 238 of file emma2rh.h.

#define LREL   0x00000040

Definition at line 180 of file emma2rh.h.

#define MSTS   0x00000080

Definition at line 191 of file emma2rh.h.

#define ND50   0x00000040

Definition at line 204 of file emma2rh.h.

#define NUM_EMMA2RH_IRQ   96

Definition at line 102 of file emma2rh.h.

#define REGBASE   0x10000000

Definition at line 29 of file emma2rh.h.

#define SMC   0x00000008

Definition at line 207 of file emma2rh.h.

#define SPD   0x00000001

Definition at line 198 of file emma2rh.h.

#define SPIE   0x00000010

Definition at line 178 of file emma2rh.h.

#define SPT   0x00000001

IIC registers map

Definition at line 174 of file emma2rh.h.

#define SR   0x000000ff

Definition at line 232 of file emma2rh.h.

#define STANDARD108   0x00000083

Definition at line 217 of file emma2rh.h.

#define STANDARD36   0x00000001

Definition at line 221 of file emma2rh.h.

#define STANDARD71   0x00000000

Definition at line 222 of file emma2rh.h.

#define STANDARD73   0x00000002

Definition at line 220 of file emma2rh.h.

#define STANDARD83   0x00000082

Definition at line 218 of file emma2rh.h.

#define STANDARD95   0x00000003

Definition at line 219 of file emma2rh.h.

#define STD   0x00000002

Definition at line 197 of file emma2rh.h.

#define STT   0x00000002

Definition at line 175 of file emma2rh.h.

#define SVA   0x000000fe

Definition at line 227 of file emma2rh.h.

#define TRC   0x00000008

Definition at line 195 of file emma2rh.h.

#define WREL   0x00000020

Definition at line 179 of file emma2rh.h.

#define WTIM   0x00000008

Definition at line 177 of file emma2rh.h.