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

Go to the source code of this file.

Macros

#define SNI_BRD_10   2
 
#define SNI_BRD_10NEW   3
 
#define SNI_BRD_TOWER_OASIC   4
 
#define SNI_BRD_MINITOWER   5
 
#define SNI_BRD_PCI_TOWER   6
 
#define SNI_BRD_RM200   7
 
#define SNI_BRD_PCI_MTOWER   8
 
#define SNI_BRD_PCI_DESKTOP   9
 
#define SNI_BRD_PCI_TOWER_CPLUS   10
 
#define SNI_BRD_PCI_MTOWER_CPLUS   11
 
#define SNI_CPU_M8021   0x01
 
#define SNI_CPU_M8030   0x04
 
#define SNI_CPU_M8031   0x06
 
#define SNI_CPU_M8034   0x0f
 
#define SNI_CPU_M8037   0x07
 
#define SNI_CPU_M8040   0x05
 
#define SNI_CPU_M8043   0x09
 
#define SNI_CPU_M8050   0x0b
 
#define SNI_CPU_M8053   0x0d
 
#define SNI_PORT_BASE   CKSEG1ADDR(0xb4000000)
 
#define PCIMT_UCONF   CKSEG1ADDR(0xbfff0004)
 
#define PCIMT_IOADTIMEOUT2   CKSEG1ADDR(0xbfff000c)
 
#define PCIMT_IOMEMCONF   CKSEG1ADDR(0xbfff0014)
 
#define PCIMT_IOMMU   CKSEG1ADDR(0xbfff001c)
 
#define PCIMT_IOADTIMEOUT1   CKSEG1ADDR(0xbfff0024)
 
#define PCIMT_DMAACCESS   CKSEG1ADDR(0xbfff002c)
 
#define PCIMT_DMAHIT   CKSEG1ADDR(0xbfff0034)
 
#define PCIMT_ERRSTATUS   CKSEG1ADDR(0xbfff003c)
 
#define PCIMT_ERRADDR   CKSEG1ADDR(0xbfff0044)
 
#define PCIMT_SYNDROME   CKSEG1ADDR(0xbfff004c)
 
#define PCIMT_ITPEND   CKSEG1ADDR(0xbfff0054)
 
#define IT_INT2   0x01
 
#define IT_INTD   0x02
 
#define IT_INTC   0x04
 
#define IT_INTB   0x08
 
#define IT_INTA   0x10
 
#define IT_EISA   0x20
 
#define IT_SCSI   0x40
 
#define IT_ETH   0x80
 
#define PCIMT_IRQSEL   CKSEG1ADDR(0xbfff005c)
 
#define PCIMT_TESTMEM   CKSEG1ADDR(0xbfff0064)
 
#define PCIMT_ECCREG   CKSEG1ADDR(0xbfff006c)
 
#define PCIMT_CONFIG_ADDRESS   CKSEG1ADDR(0xbfff0074)
 
#define PCIMT_ASIC_ID   CKSEG1ADDR(0xbfff007c) /* read */
 
#define PCIMT_SOFT_RESET   CKSEG1ADDR(0xbfff007c) /* write */
 
#define PCIMT_PIA_OE   CKSEG1ADDR(0xbfff0084)
 
#define PCIMT_PIA_DATAOUT   CKSEG1ADDR(0xbfff008c)
 
#define PCIMT_PIA_DATAIN   CKSEG1ADDR(0xbfff0094)
 
#define PCIMT_CACHECONF   CKSEG1ADDR(0xbfff009c)
 
#define PCIMT_INVSPACE   CKSEG1ADDR(0xbfff00a4)
 
#define PCIMT_PCI_CONF   CKSEG1ADDR(0xbfff0100)
 
#define PCIMT_CONFIG_DATA   0x0cfc
 
#define PCIMT_CSMSR   CKSEG1ADDR(0xbfd00000)
 
#define PCIMT_CSSWITCH   CKSEG1ADDR(0xbfd10000)
 
#define PCIMT_CSITPEND   CKSEG1ADDR(0xbfd20000)
 
#define PCIMT_AUTO_PO_EN   CKSEG1ADDR(0xbfd30000)
 
#define PCIMT_CLR_TEMP   CKSEG1ADDR(0xbfd40000)
 
#define PCIMT_AUTO_PO_DIS   CKSEG1ADDR(0xbfd50000)
 
#define PCIMT_EXMSR   CKSEG1ADDR(0xbfd60000)
 
#define PCIMT_UNUSED1   CKSEG1ADDR(0xbfd70000)
 
#define PCIMT_CSWCSM   CKSEG1ADDR(0xbfd80000)
 
#define PCIMT_UNUSED2   CKSEG1ADDR(0xbfd90000)
 
#define PCIMT_CSLED   CKSEG1ADDR(0xbfda0000)
 
#define PCIMT_CSMAPISA   CKSEG1ADDR(0xbfdb0000)
 
#define PCIMT_CSRSTBP   CKSEG1ADDR(0xbfdc0000)
 
#define PCIMT_CLRPOFF   CKSEG1ADDR(0xbfdd0000)
 
#define PCIMT_CSTIMER   CKSEG1ADDR(0xbfde0000)
 
#define PCIMT_PWDN   CKSEG1ADDR(0xbfdf0000)
 
#define A20R_PT_CLOCK_BASE   CKSEG1ADDR(0xbc040000)
 
#define A20R_PT_TIM0_ACK   CKSEG1ADDR(0xbc050000)
 
#define A20R_PT_TIM1_ACK   CKSEG1ADDR(0xbc060000)
 
#define SNI_A20R_IRQ_BASE   MIPS_CPU_IRQ_BASE
 
#define SNI_A20R_IRQ_TIMER   (SNI_A20R_IRQ_BASE+5)
 
#define SNI_PCIT_INT_REG   CKSEG1ADDR(0xbfff000c)
 
#define SNI_PCIT_INT_START   24
 
#define SNI_PCIT_INT_END   30
 
#define PCIT_IRQ_ETHERNET   (MIPS_CPU_IRQ_BASE + 5)
 
#define PCIT_IRQ_INTA   (SNI_PCIT_INT_START + 0)
 
#define PCIT_IRQ_INTB   (SNI_PCIT_INT_START + 1)
 
#define PCIT_IRQ_INTC   (SNI_PCIT_INT_START + 2)
 
#define PCIT_IRQ_INTD   (SNI_PCIT_INT_START + 3)
 
#define PCIT_IRQ_SCSI0   (SNI_PCIT_INT_START + 4)
 
#define PCIT_IRQ_SCSI1   (SNI_PCIT_INT_START + 5)
 
#define PCIMT_KEYBOARD_IRQ   1
 
#define PCIMT_IRQ_INT2   24
 
#define PCIMT_IRQ_INTD   25
 
#define PCIMT_IRQ_INTC   26
 
#define PCIMT_IRQ_INTB   27
 
#define PCIMT_IRQ_INTA   28
 
#define PCIMT_IRQ_EISA   29
 
#define PCIMT_IRQ_SCSI   30
 
#define PCIMT_IRQ_ETHERNET   (MIPS_CPU_IRQ_BASE+6)
 
#define PCIMT_EISA_BASE   CKSEG1ADDR(0xb0000000)
 
#define PCIMT_INT_ACKNOWLEDGE   CKSEG1ADDR(0xba000000)
 
#define SNI_IDPROM_BASE   CKSEG1ADDR(0x1ff00000)
 
#define SNI_IDPROM_MEMSIZE   (SNI_IDPROM_BASE + (0x28 ^ __SNI_END))
 
#define SNI_IDPROM_BRDTYPE   (SNI_IDPROM_BASE + (0x29 ^ __SNI_END))
 
#define SNI_IDPROM_CPUTYPE   (SNI_IDPROM_BASE + (0x30 ^ __SNI_END))
 
#define SNI_IDPROM_SIZE   0x1000
 

Functions

void sni_a20r_init (void)
 
void sni_pcit_init (void)
 
void sni_rm200_init (void)
 
void sni_pcimt_init (void)
 
void sni_a20r_irq_init (void)
 
void sni_pcit_irq_init (void)
 
void sni_pcit_cplus_irq_init (void)
 
void sni_rm200_irq_init (void)
 
void sni_pcimt_irq_init (void)
 
void sni_cpu_time_init (void)
 

Variables

unsigned int sni_brd_type
 
void(* sni_hwint )(void)
 
struct irqaction sni_isa_irq
 

Macro Definition Documentation

#define A20R_PT_CLOCK_BASE   CKSEG1ADDR(0xbc040000)

Definition at line 140 of file sni.h.

#define A20R_PT_TIM0_ACK   CKSEG1ADDR(0xbc050000)

Definition at line 141 of file sni.h.

#define A20R_PT_TIM1_ACK   CKSEG1ADDR(0xbc060000)

Definition at line 142 of file sni.h.

#define IT_EISA   0x20

Definition at line 60 of file sni.h.

#define IT_ETH   0x80

Definition at line 62 of file sni.h.

#define IT_INT2   0x01

Definition at line 55 of file sni.h.

#define IT_INTA   0x10

Definition at line 59 of file sni.h.

#define IT_INTB   0x08

Definition at line 58 of file sni.h.

#define IT_INTC   0x04

Definition at line 57 of file sni.h.

#define IT_INTD   0x02

Definition at line 56 of file sni.h.

#define IT_SCSI   0x40

Definition at line 61 of file sni.h.

#define PCIMT_ASIC_ID   CKSEG1ADDR(0xbfff007c) /* read */

Definition at line 67 of file sni.h.

#define PCIMT_AUTO_PO_DIS   CKSEG1ADDR(0xbfd50000)

Definition at line 125 of file sni.h.

#define PCIMT_AUTO_PO_EN   CKSEG1ADDR(0xbfd30000)

Definition at line 123 of file sni.h.

#define PCIMT_CACHECONF   CKSEG1ADDR(0xbfff009c)

Definition at line 72 of file sni.h.

#define PCIMT_CLR_TEMP   CKSEG1ADDR(0xbfd40000)

Definition at line 124 of file sni.h.

#define PCIMT_CLRPOFF   CKSEG1ADDR(0xbfdd0000)

Definition at line 133 of file sni.h.

#define PCIMT_CONFIG_ADDRESS   CKSEG1ADDR(0xbfff0074)

Definition at line 66 of file sni.h.

#define PCIMT_CONFIG_DATA   0x0cfc

Definition at line 115 of file sni.h.

#define PCIMT_CSITPEND   CKSEG1ADDR(0xbfd20000)

Definition at line 122 of file sni.h.

#define PCIMT_CSLED   CKSEG1ADDR(0xbfda0000)

Definition at line 130 of file sni.h.

#define PCIMT_CSMAPISA   CKSEG1ADDR(0xbfdb0000)

Definition at line 131 of file sni.h.

#define PCIMT_CSMSR   CKSEG1ADDR(0xbfd00000)

Definition at line 120 of file sni.h.

#define PCIMT_CSRSTBP   CKSEG1ADDR(0xbfdc0000)

Definition at line 132 of file sni.h.

#define PCIMT_CSSWITCH   CKSEG1ADDR(0xbfd10000)

Definition at line 121 of file sni.h.

#define PCIMT_CSTIMER   CKSEG1ADDR(0xbfde0000)

Definition at line 134 of file sni.h.

#define PCIMT_CSWCSM   CKSEG1ADDR(0xbfd80000)

Definition at line 128 of file sni.h.

#define PCIMT_DMAACCESS   CKSEG1ADDR(0xbfff002c)

Definition at line 49 of file sni.h.

#define PCIMT_DMAHIT   CKSEG1ADDR(0xbfff0034)

Definition at line 50 of file sni.h.

#define PCIMT_ECCREG   CKSEG1ADDR(0xbfff006c)

Definition at line 65 of file sni.h.

#define PCIMT_EISA_BASE   CKSEG1ADDR(0xb0000000)

Definition at line 189 of file sni.h.

#define PCIMT_ERRADDR   CKSEG1ADDR(0xbfff0044)

Definition at line 52 of file sni.h.

#define PCIMT_ERRSTATUS   CKSEG1ADDR(0xbfff003c)

Definition at line 51 of file sni.h.

#define PCIMT_EXMSR   CKSEG1ADDR(0xbfd60000)

Definition at line 126 of file sni.h.

#define PCIMT_INT_ACKNOWLEDGE   CKSEG1ADDR(0xba000000)

Definition at line 192 of file sni.h.

#define PCIMT_INVSPACE   CKSEG1ADDR(0xbfff00a4)

Definition at line 73 of file sni.h.

#define PCIMT_IOADTIMEOUT1   CKSEG1ADDR(0xbfff0024)

Definition at line 48 of file sni.h.

#define PCIMT_IOADTIMEOUT2   CKSEG1ADDR(0xbfff000c)

Definition at line 45 of file sni.h.

#define PCIMT_IOMEMCONF   CKSEG1ADDR(0xbfff0014)

Definition at line 46 of file sni.h.

#define PCIMT_IOMMU   CKSEG1ADDR(0xbfff001c)

Definition at line 47 of file sni.h.

#define PCIMT_IRQ_EISA   29

Definition at line 174 of file sni.h.

#define PCIMT_IRQ_ETHERNET   (MIPS_CPU_IRQ_BASE+6)

Definition at line 177 of file sni.h.

#define PCIMT_IRQ_INT2   24

Definition at line 169 of file sni.h.

#define PCIMT_IRQ_INTA   28

Definition at line 173 of file sni.h.

#define PCIMT_IRQ_INTB   27

Definition at line 172 of file sni.h.

#define PCIMT_IRQ_INTC   26

Definition at line 171 of file sni.h.

#define PCIMT_IRQ_INTD   25

Definition at line 170 of file sni.h.

#define PCIMT_IRQ_SCSI   30

Definition at line 175 of file sni.h.

#define PCIMT_IRQSEL   CKSEG1ADDR(0xbfff005c)

Definition at line 63 of file sni.h.

#define PCIMT_ITPEND   CKSEG1ADDR(0xbfff0054)

Definition at line 54 of file sni.h.

#define PCIMT_KEYBOARD_IRQ   1

Definition at line 168 of file sni.h.

#define PCIMT_PCI_CONF   CKSEG1ADDR(0xbfff0100)

Definition at line 110 of file sni.h.

#define PCIMT_PIA_DATAIN   CKSEG1ADDR(0xbfff0094)

Definition at line 71 of file sni.h.

#define PCIMT_PIA_DATAOUT   CKSEG1ADDR(0xbfff008c)

Definition at line 70 of file sni.h.

#define PCIMT_PIA_OE   CKSEG1ADDR(0xbfff0084)

Definition at line 69 of file sni.h.

#define PCIMT_PWDN   CKSEG1ADDR(0xbfdf0000)

Definition at line 135 of file sni.h.

#define PCIMT_SOFT_RESET   CKSEG1ADDR(0xbfff007c) /* write */

Definition at line 68 of file sni.h.

#define PCIMT_SYNDROME   CKSEG1ADDR(0xbfff004c)

Definition at line 53 of file sni.h.

#define PCIMT_TESTMEM   CKSEG1ADDR(0xbfff0064)

Definition at line 64 of file sni.h.

#define PCIMT_UCONF   CKSEG1ADDR(0xbfff0004)

Definition at line 44 of file sni.h.

#define PCIMT_UNUSED1   CKSEG1ADDR(0xbfd70000)

Definition at line 127 of file sni.h.

#define PCIMT_UNUSED2   CKSEG1ADDR(0xbfd90000)

Definition at line 129 of file sni.h.

#define PCIT_IRQ_ETHERNET   (MIPS_CPU_IRQ_BASE + 5)

Definition at line 152 of file sni.h.

#define PCIT_IRQ_INTA   (SNI_PCIT_INT_START + 0)

Definition at line 153 of file sni.h.

#define PCIT_IRQ_INTB   (SNI_PCIT_INT_START + 1)

Definition at line 154 of file sni.h.

#define PCIT_IRQ_INTC   (SNI_PCIT_INT_START + 2)

Definition at line 155 of file sni.h.

#define PCIT_IRQ_INTD   (SNI_PCIT_INT_START + 3)

Definition at line 156 of file sni.h.

#define PCIT_IRQ_SCSI0   (SNI_PCIT_INT_START + 4)

Definition at line 157 of file sni.h.

#define PCIT_IRQ_SCSI1   (SNI_PCIT_INT_START + 5)

Definition at line 158 of file sni.h.

#define SNI_A20R_IRQ_BASE   MIPS_CPU_IRQ_BASE

Definition at line 144 of file sni.h.

#define SNI_A20R_IRQ_TIMER   (SNI_A20R_IRQ_BASE+5)

Definition at line 145 of file sni.h.

#define SNI_BRD_10   2

Definition at line 16 of file sni.h.

#define SNI_BRD_10NEW   3

Definition at line 17 of file sni.h.

#define SNI_BRD_MINITOWER   5

Definition at line 19 of file sni.h.

#define SNI_BRD_PCI_DESKTOP   9

Definition at line 23 of file sni.h.

#define SNI_BRD_PCI_MTOWER   8

Definition at line 22 of file sni.h.

#define SNI_BRD_PCI_MTOWER_CPLUS   11

Definition at line 25 of file sni.h.

#define SNI_BRD_PCI_TOWER   6

Definition at line 20 of file sni.h.

#define SNI_BRD_PCI_TOWER_CPLUS   10

Definition at line 24 of file sni.h.

#define SNI_BRD_RM200   7

Definition at line 21 of file sni.h.

#define SNI_BRD_TOWER_OASIC   4

Definition at line 18 of file sni.h.

#define SNI_CPU_M8021   0x01

Definition at line 28 of file sni.h.

#define SNI_CPU_M8030   0x04

Definition at line 29 of file sni.h.

#define SNI_CPU_M8031   0x06

Definition at line 30 of file sni.h.

#define SNI_CPU_M8034   0x0f

Definition at line 31 of file sni.h.

#define SNI_CPU_M8037   0x07

Definition at line 32 of file sni.h.

#define SNI_CPU_M8040   0x05

Definition at line 33 of file sni.h.

#define SNI_CPU_M8043   0x09

Definition at line 34 of file sni.h.

#define SNI_CPU_M8050   0x0b

Definition at line 35 of file sni.h.

#define SNI_CPU_M8053   0x0d

Definition at line 36 of file sni.h.

#define SNI_IDPROM_BASE   CKSEG1ADDR(0x1ff00000)

Definition at line 207 of file sni.h.

#define SNI_IDPROM_BRDTYPE   (SNI_IDPROM_BASE + (0x29 ^ __SNI_END))

Definition at line 209 of file sni.h.

#define SNI_IDPROM_CPUTYPE   (SNI_IDPROM_BASE + (0x30 ^ __SNI_END))

Definition at line 210 of file sni.h.

#define SNI_IDPROM_MEMSIZE   (SNI_IDPROM_BASE + (0x28 ^ __SNI_END))

Definition at line 208 of file sni.h.

#define SNI_IDPROM_SIZE   0x1000

Definition at line 212 of file sni.h.

#define SNI_PCIT_INT_END   30

Definition at line 150 of file sni.h.

#define SNI_PCIT_INT_REG   CKSEG1ADDR(0xbfff000c)

Definition at line 147 of file sni.h.

#define SNI_PCIT_INT_START   24

Definition at line 149 of file sni.h.

#define SNI_PORT_BASE   CKSEG1ADDR(0xb4000000)

Definition at line 38 of file sni.h.

Function Documentation

void sni_a20r_init ( void  )

Definition at line 229 of file a20r.c.

void sni_a20r_irq_init ( void  )

Definition at line 218 of file a20r.c.

void sni_cpu_time_init ( void  )
void sni_pcimt_init ( void  )

Definition at line 304 of file pcimt.c.

void sni_pcimt_irq_init ( void  )

Definition at line 291 of file pcimt.c.

void sni_pcit_cplus_irq_init ( void  )

Definition at line 248 of file pcit.c.

void sni_pcit_init ( void  )

Definition at line 261 of file pcit.c.

void sni_pcit_irq_init ( void  )

Definition at line 235 of file pcit.c.

void sni_rm200_init ( void  )

Definition at line 488 of file rm200.c.

void sni_rm200_irq_init ( void  )

Definition at line 471 of file rm200.c.

Variable Documentation

unsigned int sni_brd_type

Definition at line 32 of file setup.c.

void(* sni_hwint)(void)

Definition at line 22 of file irq.c.

struct irqaction sni_isa_irq

Definition at line 42 of file irq.c.