1384740dcSRalf Baechle /* 2384740dcSRalf Baechle * This file is subject to the terms and conditions of the GNU General Public 3384740dcSRalf Baechle * License. See the file "COPYING" in the main directory of this archive 4384740dcSRalf Baechle * for more details. 5384740dcSRalf Baechle * 6384740dcSRalf Baechle * gio.h: Definitions for SGI GIO bus 7384740dcSRalf Baechle * 8384740dcSRalf Baechle * Copyright (C) 2002 Ladislav Michl 9384740dcSRalf Baechle */ 10384740dcSRalf Baechle 11384740dcSRalf Baechle #ifndef _SGI_GIO_H 12384740dcSRalf Baechle #define _SGI_GIO_H 13384740dcSRalf Baechle 14384740dcSRalf Baechle /* 15384740dcSRalf Baechle * GIO bus addresses 16384740dcSRalf Baechle * 17384740dcSRalf Baechle * The Indigo and Indy have two GIO bus connectors. Indigo2 (all models) have 18384740dcSRalf Baechle * three physical connectors, but only two slots, GFX and EXP0. 19384740dcSRalf Baechle * 20384740dcSRalf Baechle * There is 10MB of GIO address space for GIO64 slot devices 21384740dcSRalf Baechle * slot# slot type address range size 22384740dcSRalf Baechle * ----- --------- ----------------------- ----- 23384740dcSRalf Baechle * 0 GFX 0x1f000000 - 0x1f3fffff 4MB 24384740dcSRalf Baechle * 1 EXP0 0x1f400000 - 0x1f5fffff 2MB 25384740dcSRalf Baechle * 2 EXP1 0x1f600000 - 0x1f9fffff 4MB 26384740dcSRalf Baechle * 27384740dcSRalf Baechle * There are un-slotted devices, HPC, I/O and misc devices, which are grouped 28384740dcSRalf Baechle * into the HPC address space. 29384740dcSRalf Baechle * - MISC 0x1fb00000 - 0x1fbfffff 1MB 30384740dcSRalf Baechle * 31384740dcSRalf Baechle * Following space is reserved and unused 32384740dcSRalf Baechle * - RESERVED 0x18000000 - 0x1effffff 112MB 33384740dcSRalf Baechle * 34384740dcSRalf Baechle * GIO bus IDs 35384740dcSRalf Baechle * 36384740dcSRalf Baechle * Each GIO bus device identifies itself to the system by answering a 37384740dcSRalf Baechle * read with an "ID" value. IDs are either 8 or 32 bits long. IDs less 38384740dcSRalf Baechle * than 128 are 8 bits long, with the most significant 24 bits read from 39384740dcSRalf Baechle * the slot undefined. 40384740dcSRalf Baechle * 41384740dcSRalf Baechle * 32-bit IDs are divided into 42384740dcSRalf Baechle * bits 0:6 the product ID; ranges from 0x00 to 0x7F. 43384740dcSRalf Baechle * bit 7 0=GIO Product ID is 8 bits wide 44384740dcSRalf Baechle * 1=GIO Product ID is 32 bits wide. 45384740dcSRalf Baechle * bits 8:15 manufacturer version for the product. 46384740dcSRalf Baechle * bit 16 0=GIO32 and GIO32-bis, 1=GIO64. 47384740dcSRalf Baechle * bit 17 0=no ROM present 48384740dcSRalf Baechle * 1=ROM present on this board AND next three words 49384740dcSRalf Baechle * space define the ROM. 50384740dcSRalf Baechle * bits 18:31 up to manufacturer. 51384740dcSRalf Baechle * 52384740dcSRalf Baechle * IDs above 0x50/0xd0 are of 3rd party boards. 53384740dcSRalf Baechle * 54384740dcSRalf Baechle * 8-bit IDs 55384740dcSRalf Baechle * 0x01 XPI low cost FDDI 56384740dcSRalf Baechle * 0x02 GTR TokenRing 57384740dcSRalf Baechle * 0x04 Synchronous ISDN 58384740dcSRalf Baechle * 0x05 ATM board [*] 59384740dcSRalf Baechle * 0x06 Canon Interface 60384740dcSRalf Baechle * 0x07 16 bit SCSI Card [*] 61384740dcSRalf Baechle * 0x08 JPEG (Double Wide) 62384740dcSRalf Baechle * 0x09 JPEG (Single Wide) 63384740dcSRalf Baechle * 0x0a XPI mez. FDDI device 0 64384740dcSRalf Baechle * 0x0b XPI mez. FDDI device 1 65384740dcSRalf Baechle * 0x0c SMPTE 259M Video [*] 66384740dcSRalf Baechle * 0x0d Babblefish Compression [*] 67384740dcSRalf Baechle * 0x0e E-Plex 8-port Ethernet 68384740dcSRalf Baechle * 0x30 Lyon Lamb IVAS 69384740dcSRalf Baechle * 0xb8 GIO 100BaseTX Fast Ethernet (gfe) 70384740dcSRalf Baechle * 71384740dcSRalf Baechle * [*] Device provide 32-bit ID. 72384740dcSRalf Baechle * 73384740dcSRalf Baechle */ 74384740dcSRalf Baechle 75384740dcSRalf Baechle #define GIO_ID(x) (x & 0x7f) 76384740dcSRalf Baechle #define GIO_32BIT_ID 0x80 77384740dcSRalf Baechle #define GIO_REV(x) ((x >> 8) & 0xff) 78384740dcSRalf Baechle #define GIO_64BIT_IFACE 0x10000 79384740dcSRalf Baechle #define GIO_ROM_PRESENT 0x20000 80384740dcSRalf Baechle #define GIO_VENDOR_CODE(x) ((x >> 18) & 0x3fff) 81384740dcSRalf Baechle 82384740dcSRalf Baechle #define GIO_SLOT_GFX_BASE 0x1f000000 83384740dcSRalf Baechle #define GIO_SLOT_EXP0_BASE 0x1f400000 84384740dcSRalf Baechle #define GIO_SLOT_EXP1_BASE 0x1f600000 85384740dcSRalf Baechle 86384740dcSRalf Baechle #endif /* _SGI_GIO_H */ 87