Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
kn02.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Macros

#define KN02_SLOT_BASE   0x1fc00000
 
#define KN02_SLOT_SIZE   0x00080000
 
#define KN02_SYS_ROM   (0*KN02_SLOT_SIZE) /* system board ROM */
 
#define KN02_RES_1   (1*KN02_SLOT_SIZE) /* unused */
 
#define KN02_CHKSYN   (2*KN02_SLOT_SIZE) /* ECC syndrome */
 
#define KN02_ERRADDR   (3*KN02_SLOT_SIZE) /* bus error address */
 
#define KN02_DZ11   (4*KN02_SLOT_SIZE) /* DZ11 (DC7085) serial */
 
#define KN02_RTC   (5*KN02_SLOT_SIZE) /* DS1287 RTC */
 
#define KN02_CSR   (6*KN02_SLOT_SIZE) /* system ctrl & status reg */
 
#define KN02_SYS_ROM_7   (7*KN02_SLOT_SIZE) /* system board ROM (alias) */
 
#define KN02_CSR_RES_28   (0xf<<28) /* unused */
 
#define KN02_CSR_PSU   (1<<27) /* power supply unit warning */
 
#define KN02_CSR_NVRAM   (1<<26) /* ~NVRAM clear jumper */
 
#define KN02_CSR_REFEVEN   (1<<25) /* mem refresh bank toggle */
 
#define KN02_CSR_NRMOD   (1<<24) /* ~NRMOD manufact. jumper */
 
#define KN02_CSR_IOINTEN   (0xff<<16) /* IRQ mask bits */
 
#define KN02_CSR_DIAGCHK   (1<<15) /* diagn/norml ECC reads */
 
#define KN02_CSR_DIAGGEN   (1<<14) /* diagn/norml ECC writes */
 
#define KN02_CSR_CORRECT   (1<<13) /* ECC correct/check */
 
#define KN02_CSR_LEDIAG   (1<<12) /* ECC diagn. latch strobe */
 
#define KN02_CSR_TXDIS   (1<<11) /* DZ11 transmit disable */
 
#define KN02_CSR_BNK32M   (1<<10) /* 32M/8M stride */
 
#define KN02_CSR_DIAGDN   (1<<9) /* DIAGDN manufact. jumper */
 
#define KN02_CSR_BAUD38   (1<<8) /* DZ11 38/19kbps ext. rate */
 
#define KN02_CSR_IOINT   (0xff<<0) /* IRQ status bits (r/o) */
 
#define KN02_CSR_LEDS   (0xff<<0) /* ~diagnostic LEDs (w/o) */
 
#define KN02_CPU_INR_RES_6   6 /* unused */
 
#define KN02_CPU_INR_BUS   5 /* memory, I/O bus read/write errors */
 
#define KN02_CPU_INR_RES_4   4 /* unused */
 
#define KN02_CPU_INR_RTC   3 /* DS1287 RTC */
 
#define KN02_CPU_INR_CASCADE   2 /* CSR cascade */
 
#define KN02_CSR_INR_DZ11   7 /* DZ11 (DC7085) serial */
 
#define KN02_CSR_INR_LANCE   6 /* LANCE (Am7990) Ethernet */
 
#define KN02_CSR_INR_ASC   5 /* ASC (NCR53C94) SCSI */
 
#define KN02_CSR_INR_RES_4   4 /* unused */
 
#define KN02_CSR_INR_RES_3   3 /* unused */
 
#define KN02_CSR_INR_TC2   2 /* TURBOchannel slot #2 */
 
#define KN02_CSR_INR_TC1   1 /* TURBOchannel slot #1 */
 
#define KN02_CSR_INR_TC0   0 /* TURBOchannel slot #0 */
 
#define KN02_IRQ_BASE   8 /* first IRQ assigned to CSR */
 
#define KN02_IRQ_LINES   8 /* number of CSR interrupts */
 
#define KN02_IRQ_NR(n)   ((n) + KN02_IRQ_BASE)
 
#define KN02_IRQ_MASK(n)   (1 << (n))
 
#define KN02_IRQ_ALL   0xff
 

Functions

void init_kn02_irqs (int base)
 

Variables

u32 cached_kn02_csr
 

Macro Definition Documentation

#define KN02_CHKSYN   (2*KN02_SLOT_SIZE) /* ECC syndrome */

Definition at line 24 of file kn02.h.

#define KN02_CPU_INR_BUS   5 /* memory, I/O bus read/write errors */

Definition at line 57 of file kn02.h.

#define KN02_CPU_INR_CASCADE   2 /* CSR cascade */

Definition at line 60 of file kn02.h.

#define KN02_CPU_INR_RES_4   4 /* unused */

Definition at line 58 of file kn02.h.

#define KN02_CPU_INR_RES_6   6 /* unused */

Definition at line 56 of file kn02.h.

#define KN02_CPU_INR_RTC   3 /* DS1287 RTC */

Definition at line 59 of file kn02.h.

#define KN02_CSR   (6*KN02_SLOT_SIZE) /* system ctrl & status reg */

Definition at line 28 of file kn02.h.

#define KN02_CSR_BAUD38   (1<<8) /* DZ11 38/19kbps ext. rate */

Definition at line 48 of file kn02.h.

#define KN02_CSR_BNK32M   (1<<10) /* 32M/8M stride */

Definition at line 46 of file kn02.h.

#define KN02_CSR_CORRECT   (1<<13) /* ECC correct/check */

Definition at line 43 of file kn02.h.

#define KN02_CSR_DIAGCHK   (1<<15) /* diagn/norml ECC reads */

Definition at line 41 of file kn02.h.

#define KN02_CSR_DIAGDN   (1<<9) /* DIAGDN manufact. jumper */

Definition at line 47 of file kn02.h.

#define KN02_CSR_DIAGGEN   (1<<14) /* diagn/norml ECC writes */

Definition at line 42 of file kn02.h.

#define KN02_CSR_INR_ASC   5 /* ASC (NCR53C94) SCSI */

Definition at line 67 of file kn02.h.

#define KN02_CSR_INR_DZ11   7 /* DZ11 (DC7085) serial */

Definition at line 65 of file kn02.h.

#define KN02_CSR_INR_LANCE   6 /* LANCE (Am7990) Ethernet */

Definition at line 66 of file kn02.h.

#define KN02_CSR_INR_RES_3   3 /* unused */

Definition at line 69 of file kn02.h.

#define KN02_CSR_INR_RES_4   4 /* unused */

Definition at line 68 of file kn02.h.

#define KN02_CSR_INR_TC0   0 /* TURBOchannel slot #0 */

Definition at line 72 of file kn02.h.

#define KN02_CSR_INR_TC1   1 /* TURBOchannel slot #1 */

Definition at line 71 of file kn02.h.

#define KN02_CSR_INR_TC2   2 /* TURBOchannel slot #2 */

Definition at line 70 of file kn02.h.

#define KN02_CSR_IOINT   (0xff<<0) /* IRQ status bits (r/o) */

Definition at line 49 of file kn02.h.

#define KN02_CSR_IOINTEN   (0xff<<16) /* IRQ mask bits */

Definition at line 40 of file kn02.h.

#define KN02_CSR_LEDIAG   (1<<12) /* ECC diagn. latch strobe */

Definition at line 44 of file kn02.h.

#define KN02_CSR_LEDS   (0xff<<0) /* ~diagnostic LEDs (w/o) */

Definition at line 50 of file kn02.h.

#define KN02_CSR_NRMOD   (1<<24) /* ~NRMOD manufact. jumper */

Definition at line 39 of file kn02.h.

#define KN02_CSR_NVRAM   (1<<26) /* ~NVRAM clear jumper */

Definition at line 37 of file kn02.h.

#define KN02_CSR_PSU   (1<<27) /* power supply unit warning */

Definition at line 36 of file kn02.h.

#define KN02_CSR_REFEVEN   (1<<25) /* mem refresh bank toggle */

Definition at line 38 of file kn02.h.

#define KN02_CSR_RES_28   (0xf<<28) /* unused */

Definition at line 35 of file kn02.h.

#define KN02_CSR_TXDIS   (1<<11) /* DZ11 transmit disable */

Definition at line 45 of file kn02.h.

#define KN02_DZ11   (4*KN02_SLOT_SIZE) /* DZ11 (DC7085) serial */

Definition at line 26 of file kn02.h.

#define KN02_ERRADDR   (3*KN02_SLOT_SIZE) /* bus error address */

Definition at line 25 of file kn02.h.

#define KN02_IRQ_ALL   0xff

Definition at line 80 of file kn02.h.

#define KN02_IRQ_BASE   8 /* first IRQ assigned to CSR */

Definition at line 75 of file kn02.h.

#define KN02_IRQ_LINES   8 /* number of CSR interrupts */

Definition at line 76 of file kn02.h.

#define KN02_IRQ_MASK (   n)    (1 << (n))

Definition at line 79 of file kn02.h.

#define KN02_IRQ_NR (   n)    ((n) + KN02_IRQ_BASE)

Definition at line 78 of file kn02.h.

#define KN02_RES_1   (1*KN02_SLOT_SIZE) /* unused */

Definition at line 23 of file kn02.h.

#define KN02_RTC   (5*KN02_SLOT_SIZE) /* DS1287 RTC */

Definition at line 27 of file kn02.h.

#define KN02_SLOT_BASE   0x1fc00000

Definition at line 16 of file kn02.h.

#define KN02_SLOT_SIZE   0x00080000

Definition at line 17 of file kn02.h.

#define KN02_SYS_ROM   (0*KN02_SLOT_SIZE) /* system board ROM */

Definition at line 22 of file kn02.h.

#define KN02_SYS_ROM_7   (7*KN02_SLOT_SIZE) /* system board ROM (alias) */

Definition at line 29 of file kn02.h.

Function Documentation

void init_kn02_irqs ( int  base)

Definition at line 64 of file kn02-irq.c.

Variable Documentation

u32 cached_kn02_csr

Definition at line 28 of file kn02-irq.c.