taglinefilesource code
SETPORT512drivers/scsi/aha152x.cSETPORT(SXFRCTL0, CH1|SPIOEN);
SETPORT514drivers/scsi/aha152x.cSETPORT(SXFRCTL0, CH1);
SETPORT545drivers/scsi/aha152x.cSETPORT(SSTAT1, SCSIRSTI);
SETPORT550drivers/scsi/aha152x.cSETPORT(SSTAT1, CLRSCSIPERR);
SETPORT607drivers/scsi/aha152x.cSETPORT(io_port+O_DMACNTRL1, 0);          /* reset stack pointer */
SETPORT609drivers/scsi/aha152x.cSETPORT(io_port+O_STACK, i);
SETPORT611drivers/scsi/aha152x.cSETPORT(io_port+O_DMACNTRL1, 0);          /* reset stack pointer */
SETPORT805drivers/scsi/aha152x.cSETPORT(SCSIID, setup[i].scsiid << 4);
SETPORT833drivers/scsi/aha152x.cSETPORT(SIMODE0, 0);
SETPORT834drivers/scsi/aha152x.cSETPORT(SIMODE1, 0);
SETPORT929drivers/scsi/aha152x.cSETPORT(PORTA, 1);
SETPORT940drivers/scsi/aha152x.cSETPORT(SIMODE0, DISCONNECTED_SC ? ENSELDI : 0);
SETPORT941drivers/scsi/aha152x.cSETPORT(SIMODE1, ISSUE_SC ? ENBUSFREE : 0);
SETPORT1047drivers/scsi/aha152x.cSETPORT(SCSIID, (shpnt->this_id << OID_) | CURRENT_SC->target);
SETPORT1052drivers/scsi/aha152x.cSETPORT(SIMODE0, ENSELDO | (DISCONNECTED_SC ? ENSELDI : 0));
SETPORT1053drivers/scsi/aha152x.cSETPORT(SIMODE1, ENSELTIMO);
SETPORT1090drivers/scsi/aha152x.cSETPORT(DMACNTRL0, RSTFIFO);
SETPORT1092drivers/scsi/aha152x.cSETPORT(SCSISEQ, 0);
SETPORT1094drivers/scsi/aha152x.cSETPORT(SXFRCTL1, 0);
SETPORT1095drivers/scsi/aha152x.cSETPORT(SCSISIG, 0);
SETPORT1096drivers/scsi/aha152x.cSETPORT(SCSIRATE, 0);
SETPORT1099drivers/scsi/aha152x.cSETPORT(SSTAT0, 0x7f);
SETPORT1100drivers/scsi/aha152x.cSETPORT(SSTAT1, 0xef);
SETPORT1102drivers/scsi/aha152x.cSETPORT(SSTAT4, SYNCERR|FWERR|FRERR);
SETPORT1104drivers/scsi/aha152x.cSETPORT(DMACNTRL0, 0);
SETPORT1105drivers/scsi/aha152x.cSETPORT(DMACNTRL1, 0);
SETPORT1107drivers/scsi/aha152x.cSETPORT(BRSTCNTRL, 0xf1);
SETPORT1110drivers/scsi/aha152x.cSETPORT(SXFRCTL0, CH1|CLRCH1|CLRSTCNT);
SETPORT1111drivers/scsi/aha152x.cSETPORT(SXFRCTL0, CH1);
SETPORT1114drivers/scsi/aha152x.cSETPORT(SIMODE0, DISCONNECTED_SC ? ENSELDI : 0);
SETPORT1115drivers/scsi/aha152x.cSETPORT(SIMODE1, ISSUE_SC ? ENBUSFREE : 0);
SETPORT1189drivers/scsi/aha152x.cSETPORT(SCSISEQ, SCSIRSTO);
SETPORT1191drivers/scsi/aha152x.cSETPORT(SCSISEQ, 0);
SETPORT1194drivers/scsi/aha152x.cSETPORT(SIMODE0, DISCONNECTED_SC ? ENSELDI : 0);
SETPORT1195drivers/scsi/aha152x.cSETPORT(SIMODE1, ISSUE_SC ? ENBUSFREE : 0);
SETPORT1197drivers/scsi/aha152x.cSETPORT(DMACNTRL0, INTEN);
SETPORT1265drivers/scsi/aha152x.cSETPORT(PORTA, 0);                                  /* turn led off */
SETPORT1273drivers/scsi/aha152x.cSETPORT(SIMODE0, DISCONNECTED_SC ? ENSELDI : 0);
SETPORT1274drivers/scsi/aha152x.cSETPORT(SIMODE1, ISSUE_SC ? ENBUSFREE : 0);
SETPORT1358drivers/scsi/aha152x.cSETPORT(SCSISEQ, 0);
SETPORT1359drivers/scsi/aha152x.cSETPORT(SSTAT0, CLRSELDI);
SETPORT1360drivers/scsi/aha152x.cSETPORT(SSTAT1, CLRBUSFREE);
SETPORT1379drivers/scsi/aha152x.cSETPORT(SCSIID, (shpnt->this_id << OID_) | target);
SETPORT1380drivers/scsi/aha152x.cSETPORT(SCSISEQ, ENRESELI);
SETPORT1385drivers/scsi/aha152x.cSETPORT(SCSIRATE, HOSTDATA(shpnt)->syncrate[target]&0x7f);
SETPORT1387drivers/scsi/aha152x.cSETPORT(SCSISIG, P_MSGI);
SETPORT1395drivers/scsi/aha152x.cSETPORT(SCSISEQ, 0);
SETPORT1397drivers/scsi/aha152x.cSETPORT(SXFRCTL0, CH1);
SETPORT1436drivers/scsi/aha152x.cSETPORT(SIMODE0, 0);
SETPORT1437drivers/scsi/aha152x.cSETPORT(SIMODE1, ENPHASEMIS|ENBUSFREE);
SETPORT1471drivers/scsi/aha152x.cSETPORT(SCSIID, (shpnt->this_id << OID_) | CURRENT_SC->target);
SETPORT1474drivers/scsi/aha152x.cSETPORT(SXFRCTL1, HOSTDATA(shpnt)->parity ? (ENSPCHK|ENSTIMER) : ENSTIMER);
SETPORT1477drivers/scsi/aha152x.cSETPORT(SIMODE0, ENSELDO | (DISCONNECTED_SC ? ENSELDI : 0));
SETPORT1478drivers/scsi/aha152x.cSETPORT(SIMODE1, ENSELTIMO);
SETPORT1517drivers/scsi/aha152x.cSETPORT(SSTAT1, CLRBUSFREE);
SETPORT1550drivers/scsi/aha152x.cSETPORT(SSTAT0, CLRSELDO);
SETPORT1580drivers/scsi/aha152x.cSETPORT(SCSIRATE, SYNCRATE&0x7f);
SETPORT1582drivers/scsi/aha152x.cSETPORT(SCSISIG, P_MSGO);
SETPORT1584drivers/scsi/aha152x.cSETPORT(SIMODE0, 0);
SETPORT1585drivers/scsi/aha152x.cSETPORT(SIMODE1, ENREQINIT|ENBUSFREE);
SETPORT1601drivers/scsi/aha152x.cSETPORT(SSTAT1, CLRSELTIMO);
SETPORT1603drivers/scsi/aha152x.cSETPORT(SIMODE0, DISCONNECTED_SC ? ENSELDI : 0);
SETPORT1604drivers/scsi/aha152x.cSETPORT(SIMODE1, ISSUE_SC ? ENBUSFREE : 0);
SETPORT1634drivers/scsi/aha152x.cSETPORT(SCSISIG, phase);
SETPORT1635drivers/scsi/aha152x.cSETPORT(SSTAT1, CLRPHASECHG);
SETPORT1662drivers/scsi/aha152x.cSETPORT(SIMODE0, 0);
SETPORT1663drivers/scsi/aha152x.cSETPORT(SIMODE1, ENPHASEMIS|ENREQINIT|ENBUSFREE);
SETPORT1690drivers/scsi/aha152x.cSETPORT(SSTAT1, CLRATNO);
SETPORT1693drivers/scsi/aha152x.cSETPORT(SCSIDAT, MSG(i));
SETPORT1741drivers/scsi/aha152x.cSETPORT(SIMODE0, 0);
SETPORT1742drivers/scsi/aha152x.cSETPORT(SIMODE1, ENPHASEMIS|ENREQINIT|ENBUSFREE);
SETPORT1750drivers/scsi/aha152x.cSETPORT(SCSIDAT, CURRENT_SC->cmnd[i]);
SETPORT1773drivers/scsi/aha152x.cSETPORT(SXFRCTL0, CH1);
SETPORT1775drivers/scsi/aha152x.cSETPORT(SIMODE0, 0);
SETPORT1776drivers/scsi/aha152x.cSETPORT(SIMODE1, ENBUSFREE);
SETPORT1907drivers/scsi/aha152x.cSETPORT(SCSIRATE, SYNCRATE&0x7f);
SETPORT1938drivers/scsi/aha152x.cSETPORT(SCSISIG, P_MSGI|ATNO);
SETPORT1942drivers/scsi/aha152x.cSETPORT(SXFRCTL0, CH1|CLRCH1);
SETPORT1959drivers/scsi/aha152x.cSETPORT(SIMODE0, DISCONNECTED_SC ? ENSELDI : 0);
SETPORT1960drivers/scsi/aha152x.cSETPORT(SIMODE1, ISSUE_SC ? ENBUSFREE : 0);
SETPORT1973drivers/scsi/aha152x.cSETPORT(SXFRCTL0, CH1);
SETPORT1975drivers/scsi/aha152x.cSETPORT(SIMODE0, 0);
SETPORT1976drivers/scsi/aha152x.cSETPORT(SIMODE1, ENREQINIT|ENBUSFREE);
SETPORT2011drivers/scsi/aha152x.cSETPORT(DMACNTRL0, RSTFIFO);
SETPORT2012drivers/scsi/aha152x.cSETPORT(DMACNTRL0, RSTFIFO|ENDMA);
SETPORT2014drivers/scsi/aha152x.cSETPORT(SXFRCTL0, CH1|SCSIEN|DMAEN);
SETPORT2016drivers/scsi/aha152x.cSETPORT(SIMODE0, 0);
SETPORT2017drivers/scsi/aha152x.cSETPORT(SIMODE1, ENPHASEMIS|ENBUSFREE);
SETPORT2195drivers/scsi/aha152x.cSETPORT(SXFRCTL0, CH1|CLRSTCNT|CLRCH1);
SETPORT2196drivers/scsi/aha152x.cSETPORT(SXFRCTL0, SCSIEN|DMAEN|CH1);
SETPORT2198drivers/scsi/aha152x.cSETPORT(DMACNTRL0, WRITE_READ|RSTFIFO);
SETPORT2199drivers/scsi/aha152x.cSETPORT(DMACNTRL0, ENDMA|WRITE_READ);
SETPORT2201drivers/scsi/aha152x.cSETPORT(SIMODE0, 0);
SETPORT2202drivers/scsi/aha152x.cSETPORT(SIMODE1, ENPHASEMIS|ENBUSFREE);
SETPORT2230drivers/scsi/aha152x.cSETPORT(DATAPORT, *CURRENT_SC->SCp.ptr++);
SETPORT2286drivers/scsi/aha152x.cSETPORT(DMACNTRL0, WRITE_READ|RSTFIFO);
SETPORT2363drivers/scsi/aha152x.cSETPORT(SIMODE0, DISCONNECTED_SC ? ENSELDI : 0);
SETPORT2364drivers/scsi/aha152x.cSETPORT(SIMODE1, ISSUE_SC ? ENBUSFREE : 0);
SETPORT2365drivers/scsi/aha152x.cSETPORT(SCSISEQ, DISCONNECTED_SC ? ENRESELI : 0);
SETPORT2384drivers/scsi/aha152x.cSETPORT(SIMODE0, 0);
SETPORT2385drivers/scsi/aha152x.cSETPORT(SIMODE1, ENPHASEMIS|ENBUSFREE);
SETPORT168drivers/scsi/aha152x.h#define SETSTCNT(X)  { SETPORT(STCNT2, ((X) & 0xFF0000) >> 16); \
SETPORT169drivers/scsi/aha152x.hSETPORT(STCNT1, ((X) & 0x00FF00) >>  8); \
SETPORT170drivers/scsi/aha152x.hSETPORT(STCNT0, ((X) & 0x0000FF) ); }