Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ip22.h File Reference
#include <irq.h>
#include <asm/sgi/ioc.h>

Go to the source code of this file.

Macros

#define SGINT_EISA   0 /* 16 EISA irq levels (Indigo2) */
 
#define SGINT_CPU   MIPS_CPU_IRQ_BASE /* MIPS CPU define 8 interrupt sources */
 
#define SGINT_LOCAL0   (SGINT_CPU+8) /* 8 local0 irq levels */
 
#define SGINT_LOCAL1   (SGINT_CPU+16) /* 8 local1 irq levels */
 
#define SGINT_LOCAL2   (SGINT_CPU+24) /* 8 local2 vectored irq levels */
 
#define SGINT_LOCAL3   (SGINT_CPU+32) /* 8 local3 vectored irq levels */
 
#define SGINT_END   (SGINT_CPU+40) /* End of 'spaces' */
 
#define SGI_SOFT_0_IRQ   SGINT_CPU + 0
 
#define SGI_SOFT_1_IRQ   SGINT_CPU + 1
 
#define SGI_LOCAL_0_IRQ   SGINT_CPU + 2
 
#define SGI_LOCAL_1_IRQ   SGINT_CPU + 3
 
#define SGI_8254_0_IRQ   SGINT_CPU + 4
 
#define SGI_8254_1_IRQ   SGINT_CPU + 5
 
#define SGI_BUSERR_IRQ   SGINT_CPU + 6
 
#define SGI_TIMER_IRQ   SGINT_CPU + 7
 
#define SGI_FIFO_IRQ   SGINT_LOCAL0 + 0 /* FIFO full */
 
#define SGI_GIO_0_IRQ   SGI_FIFO_IRQ /* GIO-0 */
 
#define SGI_WD93_0_IRQ   SGINT_LOCAL0 + 1 /* 1st onboard WD93 */
 
#define SGI_WD93_1_IRQ   SGINT_LOCAL0 + 2 /* 2nd onboard WD93 */
 
#define SGI_ENET_IRQ   SGINT_LOCAL0 + 3 /* onboard ethernet */
 
#define SGI_MCDMA_IRQ   SGINT_LOCAL0 + 4 /* MC DMA done */
 
#define SGI_PARPORT_IRQ   SGINT_LOCAL0 + 5 /* Parallel port */
 
#define SGI_GIO_1_IRQ   SGINT_LOCAL0 + 6 /* GE / GIO-1 / 2nd-HPC */
 
#define SGI_MAP_0_IRQ   SGINT_LOCAL0 + 7 /* Mappable interrupt 0 */
 
#define SGI_GPL0_IRQ   SGINT_LOCAL1 + 0 /* General Purpose LOCAL1_N<0> */
 
#define SGI_PANEL_IRQ   SGINT_LOCAL1 + 1 /* front panel */
 
#define SGI_GPL2_IRQ   SGINT_LOCAL1 + 2 /* General Purpose LOCAL1_N<2> */
 
#define SGI_MAP_1_IRQ   SGINT_LOCAL1 + 3 /* Mappable interrupt 1 */
 
#define SGI_HPCDMA_IRQ   SGINT_LOCAL1 + 4 /* HPC DMA done */
 
#define SGI_ACFAIL_IRQ   SGINT_LOCAL1 + 5 /* AC fail */
 
#define SGI_VINO_IRQ   SGINT_LOCAL1 + 6 /* Indy VINO */
 
#define SGI_GIO_2_IRQ   SGINT_LOCAL1 + 7 /* Vert retrace / GIO-2 */
 
#define SGI_VERT_IRQ   SGINT_LOCAL2 + 0 /* INT3: newport vertical status */
 
#define SGI_EISA_IRQ   SGINT_LOCAL2 + 3 /* EISA interrupts */
 
#define SGI_KEYBD_IRQ   SGINT_LOCAL2 + 4 /* keyboard */
 
#define SGI_SERIAL_IRQ   SGINT_LOCAL2 + 5 /* onboard serial */
 
#define ip22_is_fullhouse()   (sgioc->sysid & SGIOC_SYSID_FULLHOUSE)
 

Functions

unsigned short ip22_eeprom_read (unsigned int *ctrl, int reg)
 
unsigned short ip22_nvram_read (int reg)
 

Macro Definition Documentation

#define ip22_is_fullhouse ( )    (sgioc->sysid & SGIOC_SYSID_FULLHOUSE)

Definition at line 73 of file ip22.h.

#define SGI_8254_0_IRQ   SGINT_CPU + 4

Definition at line 43 of file ip22.h.

#define SGI_8254_1_IRQ   SGINT_CPU + 5

Definition at line 44 of file ip22.h.

#define SGI_ACFAIL_IRQ   SGINT_LOCAL1 + 5 /* AC fail */

Definition at line 63 of file ip22.h.

#define SGI_BUSERR_IRQ   SGINT_CPU + 6

Definition at line 45 of file ip22.h.

#define SGI_EISA_IRQ   SGINT_LOCAL2 + 3 /* EISA interrupts */

Definition at line 69 of file ip22.h.

#define SGI_ENET_IRQ   SGINT_LOCAL0 + 3 /* onboard ethernet */

Definition at line 52 of file ip22.h.

#define SGI_FIFO_IRQ   SGINT_LOCAL0 + 0 /* FIFO full */

Definition at line 48 of file ip22.h.

#define SGI_GIO_0_IRQ   SGI_FIFO_IRQ /* GIO-0 */

Definition at line 49 of file ip22.h.

#define SGI_GIO_1_IRQ   SGINT_LOCAL0 + 6 /* GE / GIO-1 / 2nd-HPC */

Definition at line 55 of file ip22.h.

#define SGI_GIO_2_IRQ   SGINT_LOCAL1 + 7 /* Vert retrace / GIO-2 */

Definition at line 65 of file ip22.h.

#define SGI_GPL0_IRQ   SGINT_LOCAL1 + 0 /* General Purpose LOCAL1_N<0> */

Definition at line 58 of file ip22.h.

#define SGI_GPL2_IRQ   SGINT_LOCAL1 + 2 /* General Purpose LOCAL1_N<2> */

Definition at line 60 of file ip22.h.

#define SGI_HPCDMA_IRQ   SGINT_LOCAL1 + 4 /* HPC DMA done */

Definition at line 62 of file ip22.h.

#define SGI_KEYBD_IRQ   SGINT_LOCAL2 + 4 /* keyboard */

Definition at line 70 of file ip22.h.

#define SGI_LOCAL_0_IRQ   SGINT_CPU + 2

Definition at line 41 of file ip22.h.

#define SGI_LOCAL_1_IRQ   SGINT_CPU + 3

Definition at line 42 of file ip22.h.

#define SGI_MAP_0_IRQ   SGINT_LOCAL0 + 7 /* Mappable interrupt 0 */

Definition at line 56 of file ip22.h.

#define SGI_MAP_1_IRQ   SGINT_LOCAL1 + 3 /* Mappable interrupt 1 */

Definition at line 61 of file ip22.h.

#define SGI_MCDMA_IRQ   SGINT_LOCAL0 + 4 /* MC DMA done */

Definition at line 53 of file ip22.h.

#define SGI_PANEL_IRQ   SGINT_LOCAL1 + 1 /* front panel */

Definition at line 59 of file ip22.h.

#define SGI_PARPORT_IRQ   SGINT_LOCAL0 + 5 /* Parallel port */

Definition at line 54 of file ip22.h.

#define SGI_SERIAL_IRQ   SGINT_LOCAL2 + 5 /* onboard serial */

Definition at line 71 of file ip22.h.

#define SGI_SOFT_0_IRQ   SGINT_CPU + 0

Definition at line 39 of file ip22.h.

#define SGI_SOFT_1_IRQ   SGINT_CPU + 1

Definition at line 40 of file ip22.h.

#define SGI_TIMER_IRQ   SGINT_CPU + 7

Definition at line 46 of file ip22.h.

#define SGI_VERT_IRQ   SGINT_LOCAL2 + 0 /* INT3: newport vertical status */

Definition at line 68 of file ip22.h.

#define SGI_VINO_IRQ   SGINT_LOCAL1 + 6 /* Indy VINO */

Definition at line 64 of file ip22.h.

#define SGI_WD93_0_IRQ   SGINT_LOCAL0 + 1 /* 1st onboard WD93 */

Definition at line 50 of file ip22.h.

#define SGI_WD93_1_IRQ   SGINT_LOCAL0 + 2 /* 2nd onboard WD93 */

Definition at line 51 of file ip22.h.

#define SGINT_CPU   MIPS_CPU_IRQ_BASE /* MIPS CPU define 8 interrupt sources */

Definition at line 28 of file ip22.h.

#define SGINT_EISA   0 /* 16 EISA irq levels (Indigo2) */

Definition at line 27 of file ip22.h.

#define SGINT_END   (SGINT_CPU+40) /* End of 'spaces' */

Definition at line 33 of file ip22.h.

#define SGINT_LOCAL0   (SGINT_CPU+8) /* 8 local0 irq levels */

Definition at line 29 of file ip22.h.

#define SGINT_LOCAL1   (SGINT_CPU+16) /* 8 local1 irq levels */

Definition at line 30 of file ip22.h.

#define SGINT_LOCAL2   (SGINT_CPU+24) /* 8 local2 vectored irq levels */

Definition at line 31 of file ip22.h.

#define SGINT_LOCAL3   (SGINT_CPU+32) /* 8 local3 vectored irq levels */

Definition at line 32 of file ip22.h.

Function Documentation

unsigned short ip22_eeprom_read ( unsigned int ctrl,
int  reg 
)

Definition at line 76 of file ip22-nvram.c.

unsigned short ip22_nvram_read ( int  reg)

Definition at line 106 of file ip22-nvram.c.