1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * This file is subject to the terms and conditions of the GNU General Public 3*4882a593Smuzhiyun * License. See the file "COPYING" in the main directory of this archive 4*4882a593Smuzhiyun * for more details. 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * gio.h: Definitions for SGI GIO bus 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * Copyright (C) 2002 Ladislav Michl 9*4882a593Smuzhiyun */ 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun #ifndef _SGI_GIO_H 12*4882a593Smuzhiyun #define _SGI_GIO_H 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun /* 15*4882a593Smuzhiyun * GIO bus addresses 16*4882a593Smuzhiyun * 17*4882a593Smuzhiyun * The Indigo and Indy have two GIO bus connectors. Indigo2 (all models) have 18*4882a593Smuzhiyun * three physical connectors, but only two slots, GFX and EXP0. 19*4882a593Smuzhiyun * 20*4882a593Smuzhiyun * There is 10MB of GIO address space for GIO64 slot devices 21*4882a593Smuzhiyun * slot# slot type address range size 22*4882a593Smuzhiyun * ----- --------- ----------------------- ----- 23*4882a593Smuzhiyun * 0 GFX 0x1f000000 - 0x1f3fffff 4MB 24*4882a593Smuzhiyun * 1 EXP0 0x1f400000 - 0x1f5fffff 2MB 25*4882a593Smuzhiyun * 2 EXP1 0x1f600000 - 0x1f9fffff 4MB 26*4882a593Smuzhiyun * 27*4882a593Smuzhiyun * There are un-slotted devices, HPC, I/O and misc devices, which are grouped 28*4882a593Smuzhiyun * into the HPC address space. 29*4882a593Smuzhiyun * - MISC 0x1fb00000 - 0x1fbfffff 1MB 30*4882a593Smuzhiyun * 31*4882a593Smuzhiyun * Following space is reserved and unused 32*4882a593Smuzhiyun * - RESERVED 0x18000000 - 0x1effffff 112MB 33*4882a593Smuzhiyun * 34*4882a593Smuzhiyun * GIO bus IDs 35*4882a593Smuzhiyun * 36*4882a593Smuzhiyun * Each GIO bus device identifies itself to the system by answering a 37*4882a593Smuzhiyun * read with an "ID" value. IDs are either 8 or 32 bits long. IDs less 38*4882a593Smuzhiyun * than 128 are 8 bits long, with the most significant 24 bits read from 39*4882a593Smuzhiyun * the slot undefined. 40*4882a593Smuzhiyun * 41*4882a593Smuzhiyun * 32-bit IDs are divided into 42*4882a593Smuzhiyun * bits 0:6 the product ID; ranges from 0x00 to 0x7F. 43*4882a593Smuzhiyun * bit 7 0=GIO Product ID is 8 bits wide 44*4882a593Smuzhiyun * 1=GIO Product ID is 32 bits wide. 45*4882a593Smuzhiyun * bits 8:15 manufacturer version for the product. 46*4882a593Smuzhiyun * bit 16 0=GIO32 and GIO32-bis, 1=GIO64. 47*4882a593Smuzhiyun * bit 17 0=no ROM present 48*4882a593Smuzhiyun * 1=ROM present on this board AND next three words 49*4882a593Smuzhiyun * space define the ROM. 50*4882a593Smuzhiyun * bits 18:31 up to manufacturer. 51*4882a593Smuzhiyun * 52*4882a593Smuzhiyun * IDs above 0x50/0xd0 are of 3rd party boards. 53*4882a593Smuzhiyun * 54*4882a593Smuzhiyun * 8-bit IDs 55*4882a593Smuzhiyun * 0x01 XPI low cost FDDI 56*4882a593Smuzhiyun * 0x02 GTR TokenRing 57*4882a593Smuzhiyun * 0x04 Synchronous ISDN 58*4882a593Smuzhiyun * 0x05 ATM board [*] 59*4882a593Smuzhiyun * 0x06 Canon Interface 60*4882a593Smuzhiyun * 0x07 16 bit SCSI Card [*] 61*4882a593Smuzhiyun * 0x08 JPEG (Double Wide) 62*4882a593Smuzhiyun * 0x09 JPEG (Single Wide) 63*4882a593Smuzhiyun * 0x0a XPI mez. FDDI device 0 64*4882a593Smuzhiyun * 0x0b XPI mez. FDDI device 1 65*4882a593Smuzhiyun * 0x0c SMPTE 259M Video [*] 66*4882a593Smuzhiyun * 0x0d Babblefish Compression [*] 67*4882a593Smuzhiyun * 0x0e E-Plex 8-port Ethernet 68*4882a593Smuzhiyun * 0x30 Lyon Lamb IVAS 69*4882a593Smuzhiyun * 0xb8 GIO 100BaseTX Fast Ethernet (gfe) 70*4882a593Smuzhiyun * 71*4882a593Smuzhiyun * [*] Device provide 32-bit ID. 72*4882a593Smuzhiyun * 73*4882a593Smuzhiyun */ 74*4882a593Smuzhiyun 75*4882a593Smuzhiyun #define GIO_ID(x) (x & 0x7f) 76*4882a593Smuzhiyun #define GIO_32BIT_ID 0x80 77*4882a593Smuzhiyun #define GIO_REV(x) ((x >> 8) & 0xff) 78*4882a593Smuzhiyun #define GIO_64BIT_IFACE 0x10000 79*4882a593Smuzhiyun #define GIO_ROM_PRESENT 0x20000 80*4882a593Smuzhiyun #define GIO_VENDOR_CODE(x) ((x >> 18) & 0x3fff) 81*4882a593Smuzhiyun 82*4882a593Smuzhiyun #define GIO_SLOT_GFX_BASE 0x1f000000 83*4882a593Smuzhiyun #define GIO_SLOT_EXP0_BASE 0x1f400000 84*4882a593Smuzhiyun #define GIO_SLOT_EXP1_BASE 0x1f600000 85*4882a593Smuzhiyun 86*4882a593Smuzhiyun #endif /* _SGI_GIO_H */ 87