1995-08-09 13:13:47 +00:00
|
|
|
/*
|
1995-11-28 02:07:36 +00:00
|
|
|
* Device driver for Specialix range (SI/XIO) of serial line multiplexors.
|
1995-08-09 13:13:47 +00:00
|
|
|
* 'C' definitions for Specialix serial multiplex driver.
|
|
|
|
*
|
1998-03-23 16:27:43 +00:00
|
|
|
* Copyright (C) 1990, 1992, 1998 Specialix International,
|
1995-08-09 13:13:47 +00:00
|
|
|
* Copyright (C) 1993, Andy Rutter <andy@acronym.co.uk>
|
1998-03-23 16:27:43 +00:00
|
|
|
* Copyright (C) 1995, Peter Wemm <peter@netplex.com.au>
|
1995-08-09 13:13:47 +00:00
|
|
|
*
|
|
|
|
* Derived from: SunOS 4.x version
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notices, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notices, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
|
|
* must display the following acknowledgement:
|
|
|
|
* This product includes software developed by Andy Rutter of
|
|
|
|
* Advanced Methods and Tools Ltd. based on original information
|
|
|
|
* from Specialix International.
|
|
|
|
* 4. Neither the name of Advanced Methods and Tools, nor Specialix
|
|
|
|
* International may be used to endorse or promote products derived from
|
|
|
|
* this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
|
|
|
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
|
|
|
* NO EVENT SHALL THE AUTHORS BE LIABLE.
|
|
|
|
*
|
1999-03-30 21:22:39 +00:00
|
|
|
* $Id: sireg.h,v 1.6 1998/03/23 16:27:40 peter Exp $
|
1995-08-09 13:13:47 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Hardware parameters which should be changed at your peril!
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Base and mask for SI Host 2.x (SIHOST2) */
|
|
|
|
#define SIPLSIG 0x7FF8 /* Start of control space */
|
|
|
|
#define SIPLCNTL 0x7FF8 /* Ditto */
|
|
|
|
#define SIPLRESET SIPLCNTL /* 0 = reset */
|
|
|
|
#define SIPLIRQ11 (SIPLCNTL+1) /* 0 = mask irq 11 */
|
|
|
|
#define SIPLIRQ12 (SIPLCNTL+2) /* 0 = mask irq 12 */
|
|
|
|
#define SIPLIRQ15 (SIPLCNTL+3) /* 0 = mask irq 15 */
|
|
|
|
#define SIPLIRQSET (SIPLCNTL+4) /* 0 = interrupt host */
|
|
|
|
#define SIPLIRQCLR (SIPLCNTL+5) /* 0 = clear irq */
|
|
|
|
|
|
|
|
/* SI Host 1.x */
|
|
|
|
#define SIRAM 0x0000 /* Ram Starts here */
|
|
|
|
#define SIRESET 0x8000 /* Set reset */
|
|
|
|
#define SIRESET_CL 0xc000 /* Clear reset */
|
|
|
|
#define SIWAIT 0x9000 /* Set wait */
|
|
|
|
#define SIWAIT_CL 0xd000 /* Set wait */
|
|
|
|
#define SIINTCL 0xA000 /* Clear host int */
|
|
|
|
#define SIINTCL_CL 0xE000 /* Clear host int */
|
|
|
|
|
1998-03-23 16:27:43 +00:00
|
|
|
/* SI EISA */
|
|
|
|
#define SIEISADEVID 0x4d980411 /* EISA Device ID */
|
|
|
|
#define SIEISABASE 0xc00 /* Our ports start here */
|
|
|
|
#define SIEISAIOSIZE 0x100 /* XXX How many ports */
|
|
|
|
|
1998-02-15 14:42:33 +00:00
|
|
|
/* SI old PCI */
|
|
|
|
#define SIPCIBADR 0x10 /* Which BADR to map in RAM */
|
|
|
|
#define SIPCI_MEMSIZE 0x100000 /* Mapping size */
|
|
|
|
#define SIPCIRESET 0xc0001 /* 0 = Reset */
|
|
|
|
#define SIPCIINTCL 0x40001 /* 0 = clear int */
|
|
|
|
|
|
|
|
/* SI Jet PCI */
|
1998-03-23 16:27:43 +00:00
|
|
|
#define SIJETSSIDREG 0x2c /* Is it an SX or RIO? */
|
1998-02-15 14:42:33 +00:00
|
|
|
#define SIJETBADR 0x18 /* Which BADR to map in RAM */
|
|
|
|
/* SI Jet PCI & ISA */
|
|
|
|
#define SIJETIDBASE 0x7c00 /* ID ROM base */
|
|
|
|
#define SISPLXID 0x984d /* Specialix ID */
|
1998-03-23 16:27:43 +00:00
|
|
|
#define SIUNIQID 0x7c0e /* & 0xf0 = 0x20 for SX */
|
|
|
|
#define SIJETIDSTR 0x7c20 /* ID ROM string */
|
1998-02-15 14:42:33 +00:00
|
|
|
#define SIJETRESET 0x7d00
|
|
|
|
#define SIJETINTCL 0x7d80
|
|
|
|
#define SIJETCONFIG 0x7c00 /* for ISA, top nibble = IRQ */
|
|
|
|
#define SIJETBUSEN 0x2
|
|
|
|
#define SIJETIRQEN 0x4
|
|
|
|
|
1995-08-09 13:13:47 +00:00
|
|
|
/*
|
|
|
|
* MEMSIZE is the total shared mem region
|
|
|
|
* RAMSIZE is value to use when probing
|
|
|
|
*/
|
1998-03-23 16:27:43 +00:00
|
|
|
#define SIJETPCI_MEMSIZE 0x10000
|
1999-03-30 21:22:39 +00:00
|
|
|
#define SIJETISA_MEMSIZE 0x8000
|
1998-02-15 14:42:33 +00:00
|
|
|
#define SIJET_RAMSIZE 0x7000
|
1995-08-09 13:13:47 +00:00
|
|
|
#define SIHOST_MEMSIZE 0x10000
|
|
|
|
#define SIHOST_RAMSIZE 0x8000
|
|
|
|
#define SIHOST2_MEMSIZE 0x8000
|
|
|
|
#define SIHOST2_RAMSIZE 0x7ff7
|
|
|
|
#define SIEISA_MEMSIZE 0x10000
|
1998-03-23 16:27:43 +00:00
|
|
|
#define SIEISA_RAMSIZE 0x10000
|
1995-08-09 13:13:47 +00:00
|
|
|
|