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

Go to the source code of this file.

Data Structures

struct  sgioc_uart_regs
 
struct  sgioc_keyb_regs
 
struct  sgint_regs
 
struct  sgioc_regs
 

Macros

#define SGINT_ISTAT0_FFULL   0x01
 
#define SGINT_ISTAT0_SCSI0   0x02
 
#define SGINT_ISTAT0_SCSI1   0x04
 
#define SGINT_ISTAT0_ENET   0x08
 
#define SGINT_ISTAT0_GFXDMA   0x10
 
#define SGINT_ISTAT0_PPORT   0x20
 
#define SGINT_ISTAT0_HPC2   0x40
 
#define SGINT_ISTAT0_LIO2   0x80
 
#define SGINT_ISTAT1_ISDNI   0x01
 
#define SGINT_ISTAT1_PWR   0x02
 
#define SGINT_ISTAT1_ISDNH   0x04
 
#define SGINT_ISTAT1_LIO3   0x08
 
#define SGINT_ISTAT1_HPC3   0x10
 
#define SGINT_ISTAT1_AFAIL   0x20
 
#define SGINT_ISTAT1_VIDEO   0x40
 
#define SGINT_ISTAT1_GIO2   0x80
 
#define SGINT_TCWORD_BCD   0x01 /* Use BCD mode for counters */
 
#define SGINT_TCWORD_MMASK   0x0e /* Mode bitmask. */
 
#define SGINT_TCWORD_MITC   0x00 /* IRQ on terminal count (doesn't work) */
 
#define SGINT_TCWORD_MOS   0x02 /* One-shot IRQ mode. */
 
#define SGINT_TCWORD_MRGEN   0x04 /* Normal rate generation */
 
#define SGINT_TCWORD_MSWGEN   0x06 /* Square wave generator mode */
 
#define SGINT_TCWORD_MSWST   0x08 /* Software strobe */
 
#define SGINT_TCWORD_MHWST   0x0a /* Hardware strobe */
 
#define SGINT_TCWORD_CMASK   0x30 /* Command mask */
 
#define SGINT_TCWORD_CLAT   0x00 /* Latch command */
 
#define SGINT_TCWORD_CLSB   0x10 /* LSB read/write */
 
#define SGINT_TCWORD_CMSB   0x20 /* MSB read/write */
 
#define SGINT_TCWORD_CALL   0x30 /* Full counter read/write */
 
#define SGINT_TCWORD_CNT0   0x00 /* Select counter zero */
 
#define SGINT_TCWORD_CNT1   0x40 /* Select counter one */
 
#define SGINT_TCWORD_CNT2   0x80 /* Select counter two */
 
#define SGINT_TCWORD_CRBCK   0xc0 /* Readback command */
 
#define SGINT_TIMER_CLOCK   1000000
 
#define SGINT_TCSAMP_COUNTER   ((SGINT_TIMER_CLOCK / HZ) + 255)
 
#define SGIOC_PANEL_POWERON   0x01
 
#define SGIOC_PANEL_POWERINTR   0x02
 
#define SGIOC_PANEL_VOLDNINTR   0x10
 
#define SGIOC_PANEL_VOLDNHOLD   0x20
 
#define SGIOC_PANEL_VOLUPINTR   0x40
 
#define SGIOC_PANEL_VOLUPHOLD   0x80
 
#define SGIOC_SYSID_FULLHOUSE   0x01
 
#define SGIOC_SYSID_BOARDREV(x)   (((x) & 0x1e) >> 1)
 
#define SGIOC_SYSID_CHIPREV(x)   (((x) & 0xe0) >> 5)
 
#define SGIOC_DMASEL_SCLK10MHZ   0x00 /* use 10MHZ serial clock */
 
#define SGIOC_DMASEL_ISDNB   0x01 /* enable isdn B */
 
#define SGIOC_DMASEL_ISDNA   0x02 /* enable isdn A */
 
#define SGIOC_DMASEL_PPORT   0x04 /* use parallel DMA */
 
#define SGIOC_DMASEL_SCLK667MHZ   0x10 /* use 6.67MHZ serial clock */
 
#define SGIOC_DMASEL_SCLKEXT   0x20 /* use external serial clock */
 
#define SGIOC_RESET_PPORT   0x01 /* 0=parport reset, 1=nornal */
 
#define SGIOC_RESET_KBDMOUSE   0x02 /* 0=kbdmouse reset, 1=normal */
 
#define SGIOC_RESET_EISA   0x04 /* 0=eisa reset, 1=normal */
 
#define SGIOC_RESET_ISDN   0x08 /* 0=isdn reset, 1=normal */
 
#define SGIOC_RESET_LC0OFF   0x10 /* guiness: turn led off (red, else green) */
 
#define SGIOC_RESET_LC1OFF   0x20 /* guiness: turn led off (green, else amber) */
 
#define SGIOC_WRITE_NTHRESH   0x01 /* use 4.5db threshold */
 
#define SGIOC_WRITE_TPSPEED   0x02 /* use 100ohm TP speed */
 
#define SGIOC_WRITE_EPSEL   0x04 /* force cable mode: 1=AUI 0=TP */
 
#define SGIOC_WRITE_EASEL   0x08 /* 1=autoselect 0=manual cable selection */
 
#define SGIOC_WRITE_U1AMODE   0x10 /* 1=PC 0=MAC UART mode */
 
#define SGIOC_WRITE_U0AMODE   0x20 /* 1=PC 0=MAC UART mode */
 
#define SGIOC_WRITE_MLO   0x40 /* 1=4.75V 0=+5V */
 
#define SGIOC_WRITE_MHI   0x80 /* 1=5.25V 0=+5V */
 
#define EXTIO_S0_IRQ_3   0x8000 /* S0: vid.vsync */
 
#define EXTIO_S0_IRQ_2   0x4000 /* S0: gfx.fifofull */
 
#define EXTIO_S0_IRQ_1   0x2000 /* S0: gfx.int */
 
#define EXTIO_S0_RETRACE   0x1000
 
#define EXTIO_SG_IRQ_3   0x0800 /* SG: vid.vsync */
 
#define EXTIO_SG_IRQ_2   0x0400 /* SG: gfx.fifofull */
 
#define EXTIO_SG_IRQ_1   0x0200 /* SG: gfx.int */
 
#define EXTIO_SG_RETRACE   0x0100
 
#define EXTIO_GIO_33MHZ   0x0080
 
#define EXTIO_EISA_BUSERR   0x0040
 
#define EXTIO_MC_BUSERR   0x0020
 
#define EXTIO_HPC3_BUSERR   0x0010
 
#define EXTIO_S0_STAT_1   0x0008
 
#define EXTIO_S0_STAT_0   0x0004
 
#define EXTIO_SG_STAT_1   0x0002
 
#define EXTIO_SG_STAT_0   0x0001
 

Variables

u8 sgi_ioc_reset
 
u8 sgi_ioc_write
 
struct sgioc_regssgioc
 
struct sgint_regssgint
 

Macro Definition Documentation

#define EXTIO_EISA_BUSERR   0x0040

Definition at line 188 of file ioc.h.

#define EXTIO_GIO_33MHZ   0x0080

Definition at line 187 of file ioc.h.

#define EXTIO_HPC3_BUSERR   0x0010

Definition at line 190 of file ioc.h.

#define EXTIO_MC_BUSERR   0x0020

Definition at line 189 of file ioc.h.

#define EXTIO_S0_IRQ_1   0x2000 /* S0: gfx.int */

Definition at line 181 of file ioc.h.

#define EXTIO_S0_IRQ_2   0x4000 /* S0: gfx.fifofull */

Definition at line 180 of file ioc.h.

#define EXTIO_S0_IRQ_3   0x8000 /* S0: vid.vsync */

Definition at line 179 of file ioc.h.

#define EXTIO_S0_RETRACE   0x1000

Definition at line 182 of file ioc.h.

#define EXTIO_S0_STAT_0   0x0004

Definition at line 192 of file ioc.h.

#define EXTIO_S0_STAT_1   0x0008

Definition at line 191 of file ioc.h.

#define EXTIO_SG_IRQ_1   0x0200 /* SG: gfx.int */

Definition at line 185 of file ioc.h.

#define EXTIO_SG_IRQ_2   0x0400 /* SG: gfx.fifofull */

Definition at line 184 of file ioc.h.

#define EXTIO_SG_IRQ_3   0x0800 /* SG: vid.vsync */

Definition at line 183 of file ioc.h.

#define EXTIO_SG_RETRACE   0x0100

Definition at line 186 of file ioc.h.

#define EXTIO_SG_STAT_0   0x0001

Definition at line 194 of file ioc.h.

#define EXTIO_SG_STAT_1   0x0002

Definition at line 193 of file ioc.h.

#define SGINT_ISTAT0_ENET   0x08

Definition at line 48 of file ioc.h.

#define SGINT_ISTAT0_FFULL   0x01

Definition at line 45 of file ioc.h.

#define SGINT_ISTAT0_GFXDMA   0x10

Definition at line 49 of file ioc.h.

#define SGINT_ISTAT0_HPC2   0x40

Definition at line 51 of file ioc.h.

#define SGINT_ISTAT0_LIO2   0x80

Definition at line 52 of file ioc.h.

#define SGINT_ISTAT0_PPORT   0x20

Definition at line 50 of file ioc.h.

#define SGINT_ISTAT0_SCSI0   0x02

Definition at line 46 of file ioc.h.

#define SGINT_ISTAT0_SCSI1   0x04

Definition at line 47 of file ioc.h.

#define SGINT_ISTAT1_AFAIL   0x20

Definition at line 62 of file ioc.h.

#define SGINT_ISTAT1_GIO2   0x80

Definition at line 64 of file ioc.h.

#define SGINT_ISTAT1_HPC3   0x10

Definition at line 61 of file ioc.h.

#define SGINT_ISTAT1_ISDNH   0x04

Definition at line 59 of file ioc.h.

#define SGINT_ISTAT1_ISDNI   0x01

Definition at line 57 of file ioc.h.

#define SGINT_ISTAT1_LIO3   0x08

Definition at line 60 of file ioc.h.

#define SGINT_ISTAT1_PWR   0x02

Definition at line 58 of file ioc.h.

#define SGINT_ISTAT1_VIDEO   0x40

Definition at line 63 of file ioc.h.

#define SGINT_TCSAMP_COUNTER   ((SGINT_TIMER_CLOCK / HZ) + 255)

Definition at line 115 of file ioc.h.

#define SGINT_TCWORD_BCD   0x01 /* Use BCD mode for counters */

Definition at line 88 of file ioc.h.

#define SGINT_TCWORD_CALL   0x30 /* Full counter read/write */

Definition at line 100 of file ioc.h.

#define SGINT_TCWORD_CLAT   0x00 /* Latch command */

Definition at line 97 of file ioc.h.

#define SGINT_TCWORD_CLSB   0x10 /* LSB read/write */

Definition at line 98 of file ioc.h.

#define SGINT_TCWORD_CMASK   0x30 /* Command mask */

Definition at line 96 of file ioc.h.

#define SGINT_TCWORD_CMSB   0x20 /* MSB read/write */

Definition at line 99 of file ioc.h.

#define SGINT_TCWORD_CNT0   0x00 /* Select counter zero */

Definition at line 101 of file ioc.h.

#define SGINT_TCWORD_CNT1   0x40 /* Select counter one */

Definition at line 102 of file ioc.h.

#define SGINT_TCWORD_CNT2   0x80 /* Select counter two */

Definition at line 103 of file ioc.h.

#define SGINT_TCWORD_CRBCK   0xc0 /* Readback command */

Definition at line 104 of file ioc.h.

#define SGINT_TCWORD_MHWST   0x0a /* Hardware strobe */

Definition at line 95 of file ioc.h.

#define SGINT_TCWORD_MITC   0x00 /* IRQ on terminal count (doesn't work) */

Definition at line 90 of file ioc.h.

#define SGINT_TCWORD_MMASK   0x0e /* Mode bitmask. */

Definition at line 89 of file ioc.h.

#define SGINT_TCWORD_MOS   0x02 /* One-shot IRQ mode. */

Definition at line 91 of file ioc.h.

#define SGINT_TCWORD_MRGEN   0x04 /* Normal rate generation */

Definition at line 92 of file ioc.h.

#define SGINT_TCWORD_MSWGEN   0x06 /* Square wave generator mode */

Definition at line 93 of file ioc.h.

#define SGINT_TCWORD_MSWST   0x08 /* Software strobe */

Definition at line 94 of file ioc.h.

#define SGINT_TIMER_CLOCK   1000000

Definition at line 110 of file ioc.h.

#define SGIOC_DMASEL_ISDNA   0x02 /* enable isdn A */

Definition at line 151 of file ioc.h.

#define SGIOC_DMASEL_ISDNB   0x01 /* enable isdn B */

Definition at line 150 of file ioc.h.

#define SGIOC_DMASEL_PPORT   0x04 /* use parallel DMA */

Definition at line 152 of file ioc.h.

#define SGIOC_DMASEL_SCLK10MHZ   0x00 /* use 10MHZ serial clock */

Definition at line 149 of file ioc.h.

#define SGIOC_DMASEL_SCLK667MHZ   0x10 /* use 6.67MHZ serial clock */

Definition at line 153 of file ioc.h.

#define SGIOC_DMASEL_SCLKEXT   0x20 /* use external serial clock */

Definition at line 154 of file ioc.h.

#define SGIOC_PANEL_POWERINTR   0x02

Definition at line 132 of file ioc.h.

#define SGIOC_PANEL_POWERON   0x01

Definition at line 131 of file ioc.h.

#define SGIOC_PANEL_VOLDNHOLD   0x20

Definition at line 134 of file ioc.h.

#define SGIOC_PANEL_VOLDNINTR   0x10

Definition at line 133 of file ioc.h.

#define SGIOC_PANEL_VOLUPHOLD   0x80

Definition at line 136 of file ioc.h.

#define SGIOC_PANEL_VOLUPINTR   0x40

Definition at line 135 of file ioc.h.

#define SGIOC_RESET_EISA   0x04 /* 0=eisa reset, 1=normal */

Definition at line 160 of file ioc.h.

#define SGIOC_RESET_ISDN   0x08 /* 0=isdn reset, 1=normal */

Definition at line 161 of file ioc.h.

#define SGIOC_RESET_KBDMOUSE   0x02 /* 0=kbdmouse reset, 1=normal */

Definition at line 159 of file ioc.h.

#define SGIOC_RESET_LC0OFF   0x10 /* guiness: turn led off (red, else green) */

Definition at line 162 of file ioc.h.

#define SGIOC_RESET_LC1OFF   0x20 /* guiness: turn led off (green, else amber) */

Definition at line 163 of file ioc.h.

#define SGIOC_RESET_PPORT   0x01 /* 0=parport reset, 1=nornal */

Definition at line 158 of file ioc.h.

#define SGIOC_SYSID_BOARDREV (   x)    (((x) & 0x1e) >> 1)

Definition at line 141 of file ioc.h.

#define SGIOC_SYSID_CHIPREV (   x)    (((x) & 0xe0) >> 5)

Definition at line 142 of file ioc.h.

#define SGIOC_SYSID_FULLHOUSE   0x01

Definition at line 140 of file ioc.h.

#define SGIOC_WRITE_EASEL   0x08 /* 1=autoselect 0=manual cable selection */

Definition at line 170 of file ioc.h.

#define SGIOC_WRITE_EPSEL   0x04 /* force cable mode: 1=AUI 0=TP */

Definition at line 169 of file ioc.h.

#define SGIOC_WRITE_MHI   0x80 /* 1=5.25V 0=+5V */

Definition at line 174 of file ioc.h.

#define SGIOC_WRITE_MLO   0x40 /* 1=4.75V 0=+5V */

Definition at line 173 of file ioc.h.

#define SGIOC_WRITE_NTHRESH   0x01 /* use 4.5db threshold */

Definition at line 167 of file ioc.h.

#define SGIOC_WRITE_TPSPEED   0x02 /* use 100ohm TP speed */

Definition at line 168 of file ioc.h.

#define SGIOC_WRITE_U0AMODE   0x20 /* 1=PC 0=MAC UART mode */

Definition at line 172 of file ioc.h.

#define SGIOC_WRITE_U1AMODE   0x10 /* 1=PC 0=MAC UART mode */

Definition at line 171 of file ioc.h.

Variable Documentation

u8 sgi_ioc_reset

Definition at line 27 of file ip22-hpc.c.

u8 sgi_ioc_write

Definition at line 27 of file ip22-hpc.c.

Definition at line 25 of file ip22-int.c.

Definition at line 22 of file ip22-hpc.c.