aic7xxx.seq (6608) | aic7xxx.seq (6940) |
---|---|
1# @(#)aic7xxx.seq 1.32 94/11/29 jda 2# 3# Adaptec 274x/284x/294x device driver for Linux and FreeBSD. 4# Copyright (c) 1994 The University of Calgary Department of Computer Science. 5# 6# This program is free software; you can redistribute it and/or modify 7# it under the terms of the GNU General Public License as published by 8# the Free Software Foundation; either version 2 of the License, or --- 7 unchanged lines hidden (view full) --- 16# You should have received a copy of the GNU General Public License 17# along with this program; if not, write to the Free Software 18# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19# 20 21# FreeBSD, Twin, Wide, 2 command per target support, tagged queuing and other 22# optimizations provided by Justin T. Gibbs (gibbs@FreeBSD.org) 23# | 1# @(#)aic7xxx.seq 1.32 94/11/29 jda 2# 3# Adaptec 274x/284x/294x device driver for Linux and FreeBSD. 4# Copyright (c) 1994 The University of Calgary Department of Computer Science. 5# 6# This program is free software; you can redistribute it and/or modify 7# it under the terms of the GNU General Public License as published by 8# the Free Software Foundation; either version 2 of the License, or --- 7 unchanged lines hidden (view full) --- 16# You should have received a copy of the GNU General Public License 17# along with this program; if not, write to the Free Software 18# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19# 20 21# FreeBSD, Twin, Wide, 2 command per target support, tagged queuing and other 22# optimizations provided by Justin T. Gibbs (gibbs@FreeBSD.org) 23# |
24# $Id: aic7xxx.seq,v 1.7 1995/02/03 17:18:44 gibbs Exp $ | 24# $Id: aic7xxx.seq,v 1.8 1995/02/22 01:37:52 gibbs Exp $ |
25 26VERSION AIC7XXX_SEQ_VERSION 1.8 27 28SCBMASK = 0x1f 29 30SCSISEQ = 0x00 31SXFRCTL0 = 0x01 32SXFRCTL1 = 0x02 --- 152 unchanged lines hidden (view full) --- 185SG_NEXT+1 = 0x4f 186SG_NEXT+2 = 0x50 187SG_NEXT+3 = 0x51 188 189SCBCOUNT = 0x52 # the actual number of SCBs 190FLAGS = 0x53 # Device configuration flags 191TWIN_BUS = 0x01 192WIDE_BUS = 0x02 | 25 26VERSION AIC7XXX_SEQ_VERSION 1.8 27 28SCBMASK = 0x1f 29 30SCSISEQ = 0x00 31SXFRCTL0 = 0x01 32SXFRCTL1 = 0x02 --- 152 unchanged lines hidden (view full) --- 185SG_NEXT+1 = 0x4f 186SG_NEXT+2 = 0x50 187SG_NEXT+3 = 0x51 188 189SCBCOUNT = 0x52 # the actual number of SCBs 190FLAGS = 0x53 # Device configuration flags 191TWIN_BUS = 0x01 192WIDE_BUS = 0x02 |
193SELECTED_SCB = 0x08 | |
194SENSE = 0x10 195ACTIVE_MSG = 0x20 196IDENTIFY_SEEN = 0x40 197RESELECTED = 0x80 198 199ACTIVE_A = 0x54 200ACTIVE_B = 0x55 201SAVED_TCL = 0x56 --- 95 unchanged lines hidden (view full) --- 297 jmp start_nosense 298 299test_a: 300 test ACTIVE_A,A jnz requeue 301 or ACTIVE_A,A # Mark the current target as busy 302 303start_scb: 304 or SCBARRAY+0,NEEDDMA | 193SENSE = 0x10 194ACTIVE_MSG = 0x20 195IDENTIFY_SEEN = 0x40 196RESELECTED = 0x80 197 198ACTIVE_A = 0x54 199ACTIVE_B = 0x55 200SAVED_TCL = 0x56 --- 95 unchanged lines hidden (view full) --- 296 jmp start_nosense 297 298test_a: 299 test ACTIVE_A,A jnz requeue 300 or ACTIVE_A,A # Mark the current target as busy 301 302start_scb: 303 or SCBARRAY+0,NEEDDMA |
305 and SINDEX,0x08,SCBARRAY+1 306 and A,WIDE_BUS,FLAGS # Wide bus? 307 or SINDEX,A 308 mov SBLKCTL,SINDEX # select channel, bus width | 304 and SINDEX,0xf7,SBLKCTL #Clear the channel select bit 305 and A,0x08,SCBARRAY+1 #Get new channel bit 306 or SINDEX,A 307 mov SBLKCTL,SINDEX # select channel |
309 mov SCBARRAY+1 call initialize 310 clr SG_NOLOAD 311 and FLAGS,0x3f # !RESELECTING 312 313# As soon as we get a successful selection, the target should go 314# into the message out phase since we have ATN asserted. Prepare 315# the message to send, locking out the device driver. If the device 316# driver hasn't beaten us with an ABORT or RESET message, then tack --- 942 unchanged lines hidden --- | 308 mov SCBARRAY+1 call initialize 309 clr SG_NOLOAD 310 and FLAGS,0x3f # !RESELECTING 311 312# As soon as we get a successful selection, the target should go 313# into the message out phase since we have ATN asserted. Prepare 314# the message to send, locking out the device driver. If the device 315# driver hasn't beaten us with an ABORT or RESET message, then tack --- 942 unchanged lines hidden --- |