aic7xxx.seq (107420) | aic7xxx.seq (109590) |
---|---|
1/* 2 * Adaptec 274x/284x/294x device driver firmware for Linux and FreeBSD. 3 * 4 * Copyright (c) 1994-2001 Justin T. Gibbs. 5 * Copyright (c) 2000-2001 Adaptec Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 23 unchanged lines hidden (view full) --- 32 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 37 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 * POSSIBILITY OF SUCH DAMAGES. 39 * | 1/* 2 * Adaptec 274x/284x/294x device driver firmware for Linux and FreeBSD. 3 * 4 * Copyright (c) 1994-2001 Justin T. Gibbs. 5 * Copyright (c) 2000-2001 Adaptec Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 23 unchanged lines hidden (view full) --- 32 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 37 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 * POSSIBILITY OF SUCH DAMAGES. 39 * |
40 * $FreeBSD: head/sys/dev/aic7xxx/aic7xxx.seq 107420 2002-11-30 19:30:09Z scottl $ | 40 * $FreeBSD: head/sys/dev/aic7xxx/aic7xxx.seq 109590 2003-01-20 20:44:55Z gibbs $ |
41 */ 42 | 41 */ 42 |
43VERSION = "$Id: //depot/aic7xxx/aic7xxx/aic7xxx.seq#52 $" | 43VERSION = "$Id: //depot/aic7xxx/aic7xxx/aic7xxx.seq#54 $" |
44PATCH_ARG_LIST = "struct ahc_softc *ahc" 45PREFIX = "ahc_" 46 47#include "aic7xxx.reg" 48#include "scsi_message.h" 49 50/* 51 * A few words on the waiting SCB list: --- 13 unchanged lines hidden (view full) --- 65 * automatically consume the entries. 66 */ 67 68bus_free_sel: 69 /* 70 * Turn off the selection hardware. We need to reset the 71 * selection request in order to perform a new selection. 72 */ | 44PATCH_ARG_LIST = "struct ahc_softc *ahc" 45PREFIX = "ahc_" 46 47#include "aic7xxx.reg" 48#include "scsi_message.h" 49 50/* 51 * A few words on the waiting SCB list: --- 13 unchanged lines hidden (view full) --- 65 * automatically consume the entries. 66 */ 67 68bus_free_sel: 69 /* 70 * Turn off the selection hardware. We need to reset the 71 * selection request in order to perform a new selection. 72 */ |
73 and SCSISEQ, TEMODE|ENSELI|ENRSELI|ENAUTOATNP, SCSISEQ; | 73 and SCSISEQ, TEMODE|ENSELI|ENRSELI|ENAUTOATNP; |
74 and SIMODE1, ~ENBUSFREE; 75poll_for_work: 76 call clear_target_state; 77 and SXFRCTL0, ~SPIOEN; 78 if ((ahc->features & AHC_ULTRA2) != 0) { 79 clr SCSIBUSL; 80 } 81 test SCSISEQ, ENSELO jnz poll_for_selection; --- 106 unchanged lines hidden (view full) --- 188 * from the target. 189 */ 190 mvi SCSISIGO, P_MESGOUT|BSYO; 191 192 /* 193 * Setup the DMA for sending the identify and 194 * command information. 195 */ | 74 and SIMODE1, ~ENBUSFREE; 75poll_for_work: 76 call clear_target_state; 77 and SXFRCTL0, ~SPIOEN; 78 if ((ahc->features & AHC_ULTRA2) != 0) { 79 clr SCSIBUSL; 80 } 81 test SCSISEQ, ENSELO jnz poll_for_selection; --- 106 unchanged lines hidden (view full) --- 188 * from the target. 189 */ 190 mvi SCSISIGO, P_MESGOUT|BSYO; 191 192 /* 193 * Setup the DMA for sending the identify and 194 * command information. 195 */ |
196 or SEQ_FLAGS, CMDPHASE_PENDING; | 196 mvi SEQ_FLAGS, CMDPHASE_PENDING; |
197 198 mov A, TQINPOS; 199 if ((ahc->features & AHC_CMD_CHAN) != 0) { 200 mvi DINDEX, CCHADDR; 201 mvi SHARED_DATA_ADDR call set_32byte_addr; 202 mvi CCSCBCTL, CCSCBRESET; 203 } else { 204 mvi DINDEX, HADDR; --- 96 unchanged lines hidden (view full) --- 301 302ident_messages_done: 303 /* Terminate the ident list */ 304 if ((ahc->features & AHC_CMD_CHAN) != 0) { 305 mvi CCSCBRAM, SCB_LIST_NULL; 306 } else { 307 mvi DFDAT, SCB_LIST_NULL; 308 } | 197 198 mov A, TQINPOS; 199 if ((ahc->features & AHC_CMD_CHAN) != 0) { 200 mvi DINDEX, CCHADDR; 201 mvi SHARED_DATA_ADDR call set_32byte_addr; 202 mvi CCSCBCTL, CCSCBRESET; 203 } else { 204 mvi DINDEX, HADDR; --- 96 unchanged lines hidden (view full) --- 301 302ident_messages_done: 303 /* Terminate the ident list */ 304 if ((ahc->features & AHC_CMD_CHAN) != 0) { 305 mvi CCSCBRAM, SCB_LIST_NULL; 306 } else { 307 mvi DFDAT, SCB_LIST_NULL; 308 } |
309 mvi SEQ_FLAGS, TARG_CMD_PENDING; | 309 or SEQ_FLAGS, TARG_CMD_PENDING; |
310 test SEQ_FLAGS2, TARGET_MSG_PENDING 311 jnz target_mesgout_pending; 312 test SCSISIGI, ATNI jnz target_mesgout_continue; 313 jmp target_ITloop; 314 315 316ident_messages_done_msg_pending: 317 or SEQ_FLAGS2, TARGET_MSG_PENDING; --- 189 unchanged lines hidden (view full) --- 507 or SXFRCTL0, CLRSTCNT|CLRCHN; 508 jmp target_synccmd; 509 510target_mesgout: 511 mvi SCSISIGO, P_MESGOUT|BSYO; 512target_mesgout_continue: 513 call target_inb; 514target_mesgout_pending: | 310 test SEQ_FLAGS2, TARGET_MSG_PENDING 311 jnz target_mesgout_pending; 312 test SCSISIGI, ATNI jnz target_mesgout_continue; 313 jmp target_ITloop; 314 315 316ident_messages_done_msg_pending: 317 or SEQ_FLAGS2, TARGET_MSG_PENDING; --- 189 unchanged lines hidden (view full) --- 507 or SXFRCTL0, CLRSTCNT|CLRCHN; 508 jmp target_synccmd; 509 510target_mesgout: 511 mvi SCSISIGO, P_MESGOUT|BSYO; 512target_mesgout_continue: 513 call target_inb; 514target_mesgout_pending: |
515 and SEQ_FLAGS2, ~TARGET_MSG_PENDING; |
|
515 /* Local Processing goes here... */ 516 jmp host_target_message_loop; 517 518target_disconnect: 519 mvi P_MESGIN|BSYO call change_phase; 520 test SEQ_FLAGS, DPHASE jz . + 2; 521 mvi MSG_SAVEDATAPOINTER call target_outb; 522 mvi MSG_DISCONNECT call target_outb; --- 1879 unchanged lines hidden --- | 516 /* Local Processing goes here... */ 517 jmp host_target_message_loop; 518 519target_disconnect: 520 mvi P_MESGIN|BSYO call change_phase; 521 test SEQ_FLAGS, DPHASE jz . + 2; 522 mvi MSG_SAVEDATAPOINTER call target_outb; 523 mvi MSG_DISCONNECT call target_outb; --- 1879 unchanged lines hidden --- |