···1-/*2-** -----------------------------------------------------------------------------3-**4-** Perle Specialix driver for Linux5-** Ported from existing RIO Driver for SCO sources.6-7- *8- * (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.9- *10- * This program is free software; you can redistribute it and/or modify11- * it under the terms of the GNU General Public License as published by12- * the Free Software Foundation; either version 2 of the License, or13- * (at your option) any later version.14- *15- * This program is distributed in the hope that it will be useful,16- * but WITHOUT ANY WARRANTY; without even the implied warranty of17- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the18- * GNU General Public License for more details.19- *20- * You should have received a copy of the GNU General Public License21- * along with this program; if not, write to the Free Software22- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.23-**24-** Module : eisa.h25-** SID : 1.226-** Last Modified : 11/6/98 11:34:1027-** Retrieved : 11/6/98 11:34:2128-**29-** ident @(#)eisa.h 1.230-**31-** -----------------------------------------------------------------------------32-*/33-34-#ifndef __rio_eisa_h__35-#define __rio_eisa_h__36-37-#ifdef SCCS_LABELS38-#ifndef lint39-static char *_eisa_h_sccs_ = "@(#)eisa.h 1.2";40-#endif41-#endif42-43-/*44-** things to do with the EISA bus45-*/46-47-#define RIO_EISA_STRING_ADDRESS 0xfffd9 /* where EISA is stored */48-49-#define RIO_MAX_EISA_SLOTS 16 /* how many EISA slots? */50-51-#define RIO_EISA_IDENT 0x984D /* Specialix */52-#define RIO_EISA_PRODUCT_CODE 0x14 /* Code 14 */53-#define RIO_EISA_ENABLE_BIT 0x01 /* To enable card */54-55-#define EISA_MEMORY_BASE_LO 0xC00 /* A16-A23 */56-#define EISA_MEMORY_BASE_HI 0xC01 /* A24-A31 */57-#define EISA_INTERRUPT_VEC 0xC02 /* see below */58-#define EISA_CONTROL_PORT 0xC02 /* see below */59-#define EISA_INTERRUPT_RESET 0xC03 /* read to clear IRQ */60-61-#define EISA_PRODUCT_IDENT_LO 0xC80 /* where RIO_EISA_IDENT is */62-#define EISA_PRODUCT_IDENT_HI 0xC8163-#define EISA_PRODUCT_NUMBER 0xC82 /* where PROD_CODE is */64-#define EISA_REVISION_NUMBER 0xC83 /* revision (1dp) */65-#define EISA_ENABLE 0xC84 /* set LSB to enable card */66-#define EISA_UNIQUE_NUM_0 0xC88 /* vomit */67-#define EISA_UNIQUE_NUM_1 0xC8A68-#define EISA_UNIQUE_NUM_2 0xC90 /* bit strangely arranged */69-#define EISA_UNIQUE_NUM_3 0xC9270-#define EISA_MANUF_YEAR 0xC98 /* when */71-#define EISA_MANUF_WEEK 0xC9A /* more when */72-73-#define EISA_TP_BOOT_FROM_RAM 0x0174-#define EISA_TP_BOOT_FROM_LINK 0x0075-#define EISA_TP_FAST_LINKS 0x0276-#define EISA_TP_SLOW_LINKS 0x0077-#define EISA_TP_BUS_ENABLE 0x0478-#define EISA_TP_BUS_DISABLE 0x0079-#define EISA_TP_RUN 0x0880-#define EISA_TP_RESET 0x0081-#define EISA_POLLED 0x0082-#define EISA_IRQ_3 0x3083-#define EISA_IRQ_4 0x4084-#define EISA_IRQ_5 0x5085-#define EISA_IRQ_6 0x6086-#define EISA_IRQ_7 0x7087-#define EISA_IRQ_9 0x9088-#define EISA_IRQ_10 0xA089-#define EISA_IRQ_11 0xB090-#define EISA_IRQ_12 0xC091-#define EISA_IRQ_14 0xE092-#define EISA_IRQ_15 0xF093-94-#define EISA_INTERRUPT_MASK 0xF095-#define EISA_CONTROL_MASK 0x0F96-97-#define RIO_EISA_DEFAULT_MODE EISA_TP_SLOW_LINKS98-99-#define RIOEisaToIvec(X) (uchar )((uchar)((X) & EISA_INTERRUPT_MASK)>>4)100-101-#define INBZ(z,x) inb(((z)<<12) | (x))102-#define OUTBZ(z,x,y) outb((((z)<<12) | (x)), y)103-104-#endif /* __rio_eisa_h__ */