/************************************************************************** * Initio 9100 device driver for Linux. * * Copyright (c) 1994-1998 Initio Corporation * All rights reserved. * * Cleanups (c) Copyright 2007 Red Hat <alan@lxorguk.ukuu.org.uk> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``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 AUTHOR OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. *
**************************************************************************/
#define TUL_GINTS 0x50 /* Global Interrupt Status Register */ #define TUL_GIMSK 0x52 /* Global Interrupt MASK Register */ #define TUL_GCTRL 0x54 /* Global Control Register */ #define TUL_GCTRL_EEPROM_BIT 0x04 #define TUL_GCTRL1 0x55 /* Global Control Register */ #define TUL_DMACFG 0x5B /* DMA configuration */ #define TUL_NVRAM 0x5D /* Non-volatile RAM port */
#define TUL_SCnt0 0x80 /* 00 R/W Transfer Counter Low */ #define TUL_SCnt1 0x81 /* 01 R/W Transfer Counter Mid */ #define TUL_SCnt2 0x82 /* 02 R/W Transfer Count High */ #define TUL_SFifoCnt 0x83 /* 03 R FIFO counter */ #define TUL_SIntEnable 0x84 /* 03 W Interrupt enble */ #define TUL_SInt 0x84 /* 04 R Interrupt Register */ #define TUL_SCtrl0 0x85 /* 05 W Control 0 */ #define TUL_SStatus0 0x85 /* 05 R Status 0 */ #define TUL_SCtrl1 0x86 /* 06 W Control 1 */ #define TUL_SStatus1 0x86 /* 06 R Status 1 */ #define TUL_SConfig 0x87 /* 07 W Configuration */ #define TUL_SStatus2 0x87 /* 07 R Status 2 */ #define TUL_SPeriod 0x88 /* 08 W Sync. Transfer Period & Offset */ #define TUL_SOffset 0x88 /* 08 R Offset */ #define TUL_SScsiId 0x89 /* 09 W SCSI ID */ #define TUL_SBusId 0x89 /* 09 R SCSI BUS ID */ #define TUL_STimeOut 0x8A /* 0A W Sel/Resel Time Out Register */ #define TUL_SIdent 0x8A /* 0A R Identify Message Register */ #define TUL_SAvail 0x8A /* 0A R Available Counter Register */ #define TUL_SData 0x8B /* 0B R/W SCSI data in/out */ #define TUL_SFifo 0x8C /* 0C R/W FIFO */ #define TUL_SSignal 0x90 /* 10 R/W SCSI signal in/out */ #define TUL_SCmd 0x91 /* 11 R/W Command */ #define TUL_STest0 0x92 /* 12 R/W Test0 */ #define TUL_STest1 0x93 /* 13 R/W Test1 */ #define TUL_SCFG1 0x94 /* 14 R/W Configuration */
#define TUL_XAddH 0xC0 /*DMA Transfer Physical Address */ #define TUL_XAddW 0xC8 /*DMA Current Transfer Physical Address */ #define TUL_XCntH 0xD0 /*DMA Transfer Counter */ #define TUL_XCntW 0xD4 /*DMA Current Transfer Counter */ #define TUL_XCmd 0xD8 /*DMA Command Register */ #define TUL_Int 0xDC /*Interrupt Register */ #define TUL_XStatus 0xDD /*DMA status Register */ #define TUL_Mask 0xE0 /*Interrupt Mask Register */ #define TUL_XCtrl 0xE4 /*DMA Control Register */ #define TUL_XCtrl1 0xE5 /*DMA Control Register 1 */ #define TUL_XFifo 0xE8 /*DMA FIFO */
#define TUL_WCtrl 0xF7 /*Bus master wait state control */ #define TUL_DCtrl 0xFB /*DMA delay control */
/*----------------------------------------------------------------------*/ /* bit definition for Command register of Configuration Space Header */ /*----------------------------------------------------------------------*/ #define BUSMS 0x04 /* BUS MASTER Enable */ #define IOSPA 0x01 /* IO Space Enable */
/*----------------------------------------------------------------------*/ /* Command Codes of Tulip SCSI Command register */ /*----------------------------------------------------------------------*/ #define TSC_EN_RESEL 0x80 /* Enable Reselection */ #define TSC_CMD_COMP 0x84 /* Command Complete Sequence */ #define TSC_SEL 0x01 /* Select Without ATN Sequence */ #define TSC_SEL_ATN 0x11 /* Select With ATN Sequence */ #define TSC_SEL_ATN_DMA 0x51 /* Select With ATN Sequence with DMA */ #define TSC_SEL_ATN3 0x31 /* Select With ATN3 Sequence */ #define TSC_SEL_ATNSTOP 0x12 /* Select With ATN and Stop Sequence */ #define TSC_SELATNSTOP 0x1E /* Select With ATN and Stop Sequence */
#define TSC_SEL_ATN_DIRECT_IN 0x95 /* Select With ATN Sequence */ #define TSC_SEL_ATN_DIRECT_OUT 0x15 /* Select With ATN Sequence */ #define TSC_SEL_ATN3_DIRECT_IN 0xB5 /* Select With ATN3 Sequence */ #define TSC_SEL_ATN3_DIRECT_OUT 0x35 /* Select With ATN3 Sequence */ #define TSC_XF_DMA_OUT_DIRECT 0x06 /* DMA Xfer Information out */ #define TSC_XF_DMA_IN_DIRECT 0x86 /* DMA Xfer Information in */
#define TSC_XF_DMA_OUT 0x43 /* DMA Xfer Information out */ #define TSC_XF_DMA_IN 0xC3 /* DMA Xfer Information in */ #define TSC_XF_FIFO_OUT 0x03 /* FIFO Xfer Information out */ #define TSC_XF_FIFO_IN 0x83 /* FIFO Xfer Information in */
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.13Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.