Deleted Added
full compact
aic7xxx.seq (72325) aic7xxx.seq (72640)
1/*
2 * Adaptec 274x/284x/294x device driver firmware for Linux and FreeBSD.
3 *
4 * Copyright (c) 1994-2001 Justin Gibbs.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * $Id: //depot/src/aic7xxx/aic7xxx.seq#19 $
32 *
1/*
2 * Adaptec 274x/284x/294x device driver firmware for Linux and FreeBSD.
3 *
4 * Copyright (c) 1994-2001 Justin Gibbs.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * $Id: //depot/src/aic7xxx/aic7xxx.seq#19 $
32 *
33 * $FreeBSD: head/sys/dev/aic7xxx/aic7xxx.seq 72325 2001-02-10 18:04:27Z gibbs $
33 * $FreeBSD: head/sys/dev/aic7xxx/aic7xxx.seq 72640 2001-02-18 10:25:42Z asmodai $
34 */
35
36#include "aic7xxx.reg"
37#include "scsi_message.h"
38
39/*
40 * A few words on the waiting SCB list:
41 * After starting the selection hardware, we check for reconnecting targets

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

506
507target_disconnect:
508 mvi P_MESGIN|BSYO call change_phase;
509 test SEQ_FLAGS, DPHASE jz . + 2;
510 mvi MSG_SAVEDATAPOINTER call target_outb;
511 mvi MSG_DISCONNECT call target_outb;
512
513target_busfree_wait:
34 */
35
36#include "aic7xxx.reg"
37#include "scsi_message.h"
38
39/*
40 * A few words on the waiting SCB list:
41 * After starting the selection hardware, we check for reconnecting targets

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

506
507target_disconnect:
508 mvi P_MESGIN|BSYO call change_phase;
509 test SEQ_FLAGS, DPHASE jz . + 2;
510 mvi MSG_SAVEDATAPOINTER call target_outb;
511 mvi MSG_DISCONNECT call target_outb;
512
513target_busfree_wait:
514 /* Wait for preceeding I/O session to complete. */
514 /* Wait for preceding I/O session to complete. */
515 test SCSISIGI, ACKI jnz .;
516target_busfree:
517 and SIMODE1, ~ENBUSFREE;
518 if ((ahc->features & AHC_ULTRA2) != 0) {
519 clr SCSIBUSL;
520 }
521 clr SCSISIGO;
522 mvi LASTPHASE, P_BUSFREE;

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

1767}
1768
1769if ((ahc->flags & AHC_TARGETROLE) != 0) {
1770/*
1771 * Change to a new phase. If we are changing the state of the I/O signal,
1772 * from out to in, wait an additional data release delay before continuing.
1773 */
1774change_phase:
515 test SCSISIGI, ACKI jnz .;
516target_busfree:
517 and SIMODE1, ~ENBUSFREE;
518 if ((ahc->features & AHC_ULTRA2) != 0) {
519 clr SCSIBUSL;
520 }
521 clr SCSISIGO;
522 mvi LASTPHASE, P_BUSFREE;

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

1767}
1768
1769if ((ahc->flags & AHC_TARGETROLE) != 0) {
1770/*
1771 * Change to a new phase. If we are changing the state of the I/O signal,
1772 * from out to in, wait an additional data release delay before continuing.
1773 */
1774change_phase:
1775 /* Wait for preceeding I/O session to complete. */
1775 /* Wait for preceding I/O session to complete. */
1776 test SCSISIGI, ACKI jnz .;
1777
1778 /* Change the phase */
1779 and DINDEX, IOI, SCSISIGI;
1780 mov SCSISIGO, SINDEX;
1781 and A, IOI, SINDEX;
1782
1783 /*

--- 391 unchanged lines hidden ---
1776 test SCSISIGI, ACKI jnz .;
1777
1778 /* Change the phase */
1779 and DINDEX, IOI, SCSISIGI;
1780 mov SCSISIGO, SINDEX;
1781 and A, IOI, SINDEX;
1782
1783 /*

--- 391 unchanged lines hidden ---