Deleted Added
full compact
aic7xxx.seq (7700) aic7xxx.seq (7857)
1# @(#)aic7xxx.seq 1.32 94/11/29 jda
2#
1##+M#########################################################################
3# Adaptec 274x/284x/294x device driver for Linux and FreeBSD.
2# 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
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
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#
3#
20
4# Copyright (c) 1994 John Aycock
5# The University of Calgary Department of Computer Science.
6# All rights reserved.
7#
8# Modifications/enhancements:
9# Copyright (c) 1994, 1995 Justin Gibbs. All rights reserved.
10#
11# Redistribution and use in source and binary forms, with or without
12# modification, are permitted provided that the following conditions
13# are met:
14# 1. Redistributions of source code must retain the above copyright
15# notice, this list of conditions, and the following disclaimer.
16# 2. Redistributions in binary form must reproduce the above copyright
17# notice, this list of conditions and the following disclaimer in the
18# documentation and/or other materials provided with the distribution.
19# 3. All advertising materials mentioning features or use of this software
20# must display the following acknowledgement:
21# This product includes software developed by the University of Calgary
22# Department of Computer Science and its contributors.
23# 4. Neither the name of the University nor the names of its contributors
24# may be used to endorse or promote products derived from this software
25# without specific prior written permission.
26#
27# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
28# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
31# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
32# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37# SUCH DAMAGE.
38#
21# FreeBSD, Twin, Wide, 2 command per target support, tagged queuing and other
22# optimizations provided by Justin T. Gibbs (gibbs@FreeBSD.org)
23#
39# FreeBSD, Twin, Wide, 2 command per target support, tagged queuing and other
40# optimizations provided by Justin T. Gibbs (gibbs@FreeBSD.org)
41#
42##-M#########################################################################
24
43
25VERSION AIC7XXX_SEQ_VER "$Id: aic7xxx.seq,v 1.12 1995/04/01 19:51:40 gibbs Exp $"
44VERSION AIC7XXX_SEQ_VER "$Id: aic7xxx.seq,v 1.13 1995/04/09 06:40:16 gibbs Exp $"
26
27SCBMASK = 0x1f
28
29SCSISEQ = 0x00
30SXFRCTL0 = 0x01
31SXFRCTL1 = 0x02
32SCSISIGI = 0x03
33SCSISIGO = 0x03

--- 663 unchanged lines hidden (view full) ---

697 jmp p_mesgin_done
698
699p_mesginSDTR:
700 cmp ARG_1,3 jne p_mesginN # extended mesg length = 3
701 mvi ARG_1 call inb_next # xfer period
702 mvi A call inb_next # REQ/ACK offset
703 mvi INTSTAT,MSG_SDTR # call driver to convert
704
45
46SCBMASK = 0x1f
47
48SCSISEQ = 0x00
49SXFRCTL0 = 0x01
50SXFRCTL1 = 0x02
51SCSISIGI = 0x03
52SCSISIGO = 0x03

--- 663 unchanged lines hidden (view full) ---

716 jmp p_mesgin_done
717
718p_mesginSDTR:
719 cmp ARG_1,3 jne p_mesginN # extended mesg length = 3
720 mvi ARG_1 call inb_next # xfer period
721 mvi A call inb_next # REQ/ACK offset
722 mvi INTSTAT,MSG_SDTR # call driver to convert
723
705 test RETURN_1,0x80 jz p_mesgin_done# Do we need to mk_sdtr?
706
724 test RETURN_1,0xc0 jz p_mesgin_done# Do we need to mk_sdtr or rej?
725 test RETURN_1,0x40 jnz p_mesginN # Requested SDTR too small - rej
707 or FLAGS,ACTIVE_MSG
708 mvi DINDEX, MSG_START+0
709 mvi MSG_START+0 call mk_sdtr
710 or SINDEX,0x10,SIGSTATE # turn on ATNO
711 call scsisig
712 jmp p_mesgin_done
713
714# Is it a disconnect message? Set a flag in the SCB to remind us

--- 520 unchanged lines hidden ---
726 or FLAGS,ACTIVE_MSG
727 mvi DINDEX, MSG_START+0
728 mvi MSG_START+0 call mk_sdtr
729 or SINDEX,0x10,SIGSTATE # turn on ATNO
730 call scsisig
731 jmp p_mesgin_done
732
733# Is it a disconnect message? Set a flag in the SCB to remind us

--- 520 unchanged lines hidden ---