Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
aha152x.h File Reference

Go to the source code of this file.

Data Structures

union  aha152x_config
 
struct  aha152x_setup
 

Macros

#define AHA152X_MAXQUEUE   7
 
#define AHA152X_REVID   "Adaptec 152x SCSI driver; $Revision: 2.7 $"
 
#define SCSISEQ   (HOSTIOPORT0+0x00) /* SCSI sequence control */
 
#define SXFRCTL0   (HOSTIOPORT0+0x01) /* SCSI transfer control 0 */
 
#define SXFRCTL1   (HOSTIOPORT0+0x02) /* SCSI transfer control 1 */
 
#define SCSISIG   (HOSTIOPORT0+0x03) /* SCSI signal in/out */
 
#define SCSIRATE   (HOSTIOPORT0+0x04) /* SCSI rate control */
 
#define SELID   (HOSTIOPORT0+0x05) /* selection/reselection ID */
 
#define SCSIID   SELID /* SCSI ID */
 
#define SCSIDAT   (HOSTIOPORT0+0x06) /* SCSI latched data */
 
#define SCSIBUS   (HOSTIOPORT0+0x07) /* SCSI data bus */
 
#define STCNT0   (HOSTIOPORT0+0x08) /* SCSI transfer count 0 */
 
#define STCNT1   (HOSTIOPORT0+0x09) /* SCSI transfer count 1 */
 
#define STCNT2   (HOSTIOPORT0+0x0a) /* SCSI transfer count 2 */
 
#define SSTAT0   (HOSTIOPORT0+0x0b) /* SCSI interrupt status 0 */
 
#define SSTAT1   (HOSTIOPORT0+0x0c) /* SCSI interrupt status 1 */
 
#define SSTAT2   (HOSTIOPORT0+0x0d) /* SCSI interrupt status 2 */
 
#define SCSITEST   (HOSTIOPORT0+0x0e) /* SCSI test control */
 
#define SSTAT3   SCSITEST /* SCSI interrupt status 3 */
 
#define SSTAT4   (HOSTIOPORT0+0x0f) /* SCSI status 4 */
 
#define SIMODE0   (HOSTIOPORT1+0x10) /* SCSI interrupt mode 0 */
 
#define SIMODE1   (HOSTIOPORT1+0x11) /* SCSI interrupt mode 1 */
 
#define DMACNTRL0   (HOSTIOPORT1+0x12) /* DMA control 0 */
 
#define DMACNTRL1   (HOSTIOPORT1+0x13) /* DMA control 1 */
 
#define DMASTAT   (HOSTIOPORT1+0x14) /* DMA status */
 
#define FIFOSTAT   (HOSTIOPORT1+0x15) /* FIFO status */
 
#define DATAPORT   (HOSTIOPORT1+0x16) /* DATA port */
 
#define BRSTCNTRL   (HOSTIOPORT1+0x18) /* burst control */
 
#define PORTA   (HOSTIOPORT1+0x1a) /* PORT A */
 
#define PORTB   (HOSTIOPORT1+0x1b) /* PORT B */
 
#define REV   (HOSTIOPORT1+0x1c) /* revision */
 
#define STACK   (HOSTIOPORT1+0x1d) /* stack */
 
#define TEST   (HOSTIOPORT1+0x1e) /* test register */
 
#define IO_RANGE   0x20
 
#define O_PORTA   0x1a /* PORT A */
 
#define O_PORTB   0x1b /* PORT B */
 
#define O_DMACNTRL1   0x13 /* DMA control 1 */
 
#define O_STACK   0x1d /* stack */
 
#define O_TC_PORTA   0x0a /* PORT A */
 
#define O_TC_PORTB   0x0b /* PORT B */
 
#define O_TC_DMACNTRL1   0x03 /* DMA control 1 */
 
#define O_TC_STACK   0x0d /* stack */
 
#define TEMODEO   0x80
 
#define ENSELO   0x40
 
#define ENSELI   0x20
 
#define ENRESELI   0x10
 
#define ENAUTOATNO   0x08
 
#define ENAUTOATNI   0x04
 
#define ENAUTOATNP   0x02
 
#define SCSIRSTO   0x01
 
#define SCSIEN   0x80
 
#define DMAEN   0x40
 
#define CH1   0x20
 
#define CLRSTCNT   0x10
 
#define SPIOEN   0x08
 
#define CLRCH1   0x02
 
#define BITBUCKET   0x80
 
#define SWRAPEN   0x40
 
#define ENSPCHK   0x20
 
#define STIMESEL   0x18 /* mask */
 
#define STIMESEL_   3
 
#define ENSTIMER   0x04
 
#define BYTEALIGN   0x02
 
#define SIG_CDI   0x80
 
#define SIG_IOI   0x40
 
#define SIG_MSGI   0x20
 
#define SIG_ATNI   0x10
 
#define SIG_SELI   0x08
 
#define SIG_BSYI   0x04
 
#define SIG_REQI   0x02
 
#define SIG_ACKI   0x01
 
#define P_MASK   (SIG_MSGI|SIG_CDI|SIG_IOI)
 
#define P_DATAO   (0)
 
#define P_DATAI   (SIG_IOI)
 
#define P_CMD   (SIG_CDI)
 
#define P_STATUS   (SIG_CDI|SIG_IOI)
 
#define P_MSGO   (SIG_MSGI|SIG_CDI)
 
#define P_MSGI   (SIG_MSGI|SIG_CDI|SIG_IOI)
 
#define SIG_CDO   0x80
 
#define SIG_IOO   0x40
 
#define SIG_MSGO   0x20
 
#define SIG_ATNO   0x10
 
#define SIG_SELO   0x08
 
#define SIG_BSYO   0x04
 
#define SIG_REQO   0x02
 
#define SIG_ACKO   0x01
 
#define SXFR   0x70 /* mask */
 
#define SXFR_   4
 
#define SOFS   0x0f /* mask */
 
#define OID   0x70
 
#define OID_   4
 
#define TID   0x07
 
#define GETSTCNT()
 
#define SETSTCNT(X)
 
#define TARGET   0x80
 
#define SELDO   0x40
 
#define SELDI   0x20
 
#define SELINGO   0x10
 
#define SWRAP   0x08
 
#define SDONE   0x04
 
#define SPIORDY   0x02
 
#define DMADONE   0x01
 
#define SETSDONE   0x80
 
#define CLRSELDO   0x40
 
#define CLRSELDI   0x20
 
#define CLRSELINGO   0x10
 
#define CLRSWRAP   0x08
 
#define CLRSDONE   0x04
 
#define CLRSPIORDY   0x02
 
#define CLRDMADONE   0x01
 
#define SELTO   0x80
 
#define ATNTARG   0x40
 
#define SCSIRSTI   0x20
 
#define PHASEMIS   0x10
 
#define BUSFREE   0x08
 
#define SCSIPERR   0x04
 
#define PHASECHG   0x02
 
#define REQINIT   0x01
 
#define CLRSELTIMO   0x80
 
#define CLRATNO   0x40
 
#define CLRSCSIRSTI   0x20
 
#define CLRBUSFREE   0x08
 
#define CLRSCSIPERR   0x04
 
#define CLRPHASECHG   0x02
 
#define CLRREQINIT   0x01
 
#define SOFFSET   0x20
 
#define SEMPTY   0x10
 
#define SFULL   0x08
 
#define SFCNT   0x07 /* mask */
 
#define SCSICNT   0xf0 /* mask */
 
#define SCSICNT_   4
 
#define OFFCNT   0x0f /* mask */
 
#define SCTESTU   0x08
 
#define SCTESTD   0x04
 
#define STCTEST   0x01
 
#define SYNCERR   0x04
 
#define FWERR   0x02
 
#define FRERR   0x01
 
#define CLRSYNCERR   0x04
 
#define CLRFWERR   0x02
 
#define CLRFRERR   0x01
 
#define ENSELDO   0x40
 
#define ENSELDI   0x20
 
#define ENSELINGO   0x10
 
#define ENSWRAP   0x08
 
#define ENSDONE   0x04
 
#define ENSPIORDY   0x02
 
#define ENDMADONE   0x01
 
#define ENSELTIMO   0x80
 
#define ENATNTARG   0x40
 
#define ENSCSIRST   0x20
 
#define ENPHASEMIS   0x10
 
#define ENBUSFREE   0x08
 
#define ENSCSIPERR   0x04
 
#define ENPHASECHG   0x02
 
#define ENREQINIT   0x01
 
#define ENDMA   0x80
 
#define _8BIT   0x40
 
#define DMA   0x20
 
#define WRITE_READ   0x08
 
#define INTEN   0x04
 
#define RSTFIFO   0x02
 
#define SWINT   0x01
 
#define PWRDWN   0x80
 
#define STK   0x07 /* mask */
 
#define ATDONE   0x80
 
#define WORDRDY   0x40
 
#define INTSTAT   0x20
 
#define DFIFOFULL   0x10
 
#define DFIFOEMP   0x08
 
#define BON   0xf0
 
#define BOFF   0x0f
 
#define BOFFTMR   0x40
 
#define BONTMR   0x20
 
#define STCNTH   0x10
 
#define STCNTM   0x08
 
#define STCNTL   0x04
 
#define SCSIBLK   0x02
 
#define DMABLK   0x01
 
#define cf_parity   fields.parity
 
#define cf_dmachan   fields.dmachan
 
#define cf_irq   fields.irq
 
#define cf_id   fields.id
 
#define cf_dma   fields.dma
 
#define cf_boot   fields.boot
 
#define cf_msgclasses   fields.msgclasses
 
#define cf_syncneg   fields.syncneg
 
#define cf_tardisc   fields.tardisc
 
#define cf_port   port
 
#define SETPORT(PORT, VAL)   outb( (VAL), (PORT) )
 
#define GETPORT(PORT)   inb( PORT )
 
#define SETBITS(PORT, BITS)   outb( (inb(PORT) | (BITS)), (PORT) )
 
#define CLRBITS(PORT, BITS)   outb( (inb(PORT) & ~(BITS)), (PORT) )
 
#define TESTHI(PORT, BITS)   ((inb(PORT) & (BITS)) == (BITS))
 
#define TESTLO(PORT, BITS)   ((inb(PORT) & (BITS)) == 0)
 
#define SETRATE(RATE)   SETPORT(SCSIRATE,(RATE) & 0x7f)
 

Functions

struct Scsi_Hostaha152x_probe_one (struct aha152x_setup *)
 
void aha152x_release (struct Scsi_Host *)
 
int aha152x_host_reset_host (struct Scsi_Host *)
 

Macro Definition Documentation

#define _8BIT   0x40

Definition at line 221 of file aha152x.h.

#define AHA152X_MAXQUEUE   7

Definition at line 10 of file aha152x.h.

#define AHA152X_REVID   "Adaptec 152x SCSI driver; $Revision: 2.7 $"

Definition at line 12 of file aha152x.h.

#define ATDONE   0x80

Definition at line 233 of file aha152x.h.

#define ATNTARG   0x40

Definition at line 159 of file aha152x.h.

#define BITBUCKET   0x80

Definition at line 82 of file aha152x.h.

#define BOFF   0x0f

Definition at line 241 of file aha152x.h.

#define BOFFTMR   0x40

Definition at line 244 of file aha152x.h.

#define BON   0xf0

Definition at line 240 of file aha152x.h.

#define BONTMR   0x20

Definition at line 245 of file aha152x.h.

#define BRSTCNTRL   (HOSTIOPORT1+0x18) /* burst control */

Definition at line 40 of file aha152x.h.

#define BUSFREE   0x08

Definition at line 162 of file aha152x.h.

#define BYTEALIGN   0x02

Definition at line 88 of file aha152x.h.

#define cf_boot   fields.boot

Definition at line 280 of file aha152x.h.

#define cf_dma   fields.dma

Definition at line 279 of file aha152x.h.

#define cf_dmachan   fields.dmachan

Definition at line 276 of file aha152x.h.

#define cf_id   fields.id

Definition at line 278 of file aha152x.h.

#define cf_irq   fields.irq

Definition at line 277 of file aha152x.h.

#define cf_msgclasses   fields.msgclasses

Definition at line 281 of file aha152x.h.

#define cf_parity   fields.parity

Definition at line 275 of file aha152x.h.

#define cf_port   port

Definition at line 284 of file aha152x.h.

#define cf_syncneg   fields.syncneg

Definition at line 282 of file aha152x.h.

#define cf_tardisc   fields.tardisc

Definition at line 283 of file aha152x.h.

#define CH1   0x20

Definition at line 76 of file aha152x.h.

#define CLRATNO   0x40

Definition at line 168 of file aha152x.h.

#define CLRBITS (   PORT,
  BITS 
)    outb( (inb(PORT) & ~(BITS)), (PORT) )

Definition at line 291 of file aha152x.h.

#define CLRBUSFREE   0x08

Definition at line 170 of file aha152x.h.

#define CLRCH1   0x02

Definition at line 79 of file aha152x.h.

#define CLRDMADONE   0x01

Definition at line 155 of file aha152x.h.

#define CLRFRERR   0x01

Definition at line 198 of file aha152x.h.

#define CLRFWERR   0x02

Definition at line 197 of file aha152x.h.

#define CLRPHASECHG   0x02

Definition at line 172 of file aha152x.h.

#define CLRREQINIT   0x01

Definition at line 173 of file aha152x.h.

#define CLRSCSIPERR   0x04

Definition at line 171 of file aha152x.h.

#define CLRSCSIRSTI   0x20

Definition at line 169 of file aha152x.h.

#define CLRSDONE   0x04

Definition at line 153 of file aha152x.h.

#define CLRSELDI   0x20

Definition at line 150 of file aha152x.h.

#define CLRSELDO   0x40

Definition at line 149 of file aha152x.h.

#define CLRSELINGO   0x10

Definition at line 151 of file aha152x.h.

#define CLRSELTIMO   0x80

Definition at line 167 of file aha152x.h.

#define CLRSPIORDY   0x02

Definition at line 154 of file aha152x.h.

#define CLRSTCNT   0x10

Definition at line 77 of file aha152x.h.

#define CLRSWRAP   0x08

Definition at line 152 of file aha152x.h.

#define CLRSYNCERR   0x04

Definition at line 196 of file aha152x.h.

#define DATAPORT   (HOSTIOPORT1+0x16) /* DATA port */

Definition at line 39 of file aha152x.h.

#define DFIFOEMP   0x08

Definition at line 237 of file aha152x.h.

#define DFIFOFULL   0x10

Definition at line 236 of file aha152x.h.

#define DMA   0x20

Definition at line 222 of file aha152x.h.

#define DMABLK   0x01

Definition at line 250 of file aha152x.h.

#define DMACNTRL0   (HOSTIOPORT1+0x12) /* DMA control 0 */

Definition at line 35 of file aha152x.h.

#define DMACNTRL1   (HOSTIOPORT1+0x13) /* DMA control 1 */

Definition at line 36 of file aha152x.h.

#define DMADONE   0x01

Definition at line 146 of file aha152x.h.

#define DMAEN   0x40

Definition at line 75 of file aha152x.h.

#define DMASTAT   (HOSTIOPORT1+0x14) /* DMA status */

Definition at line 37 of file aha152x.h.

#define ENATNTARG   0x40

Definition at line 211 of file aha152x.h.

#define ENAUTOATNI   0x04

Definition at line 69 of file aha152x.h.

#define ENAUTOATNO   0x08

Definition at line 68 of file aha152x.h.

#define ENAUTOATNP   0x02

Definition at line 70 of file aha152x.h.

#define ENBUSFREE   0x08

Definition at line 214 of file aha152x.h.

#define ENDMA   0x80

Definition at line 220 of file aha152x.h.

#define ENDMADONE   0x01

Definition at line 207 of file aha152x.h.

#define ENPHASECHG   0x02

Definition at line 216 of file aha152x.h.

#define ENPHASEMIS   0x10

Definition at line 213 of file aha152x.h.

#define ENREQINIT   0x01

Definition at line 217 of file aha152x.h.

#define ENRESELI   0x10

Definition at line 67 of file aha152x.h.

#define ENSCSIPERR   0x04

Definition at line 215 of file aha152x.h.

#define ENSCSIRST   0x20

Definition at line 212 of file aha152x.h.

#define ENSDONE   0x04

Definition at line 205 of file aha152x.h.

#define ENSELDI   0x20

Definition at line 202 of file aha152x.h.

#define ENSELDO   0x40

Definition at line 201 of file aha152x.h.

#define ENSELI   0x20

Definition at line 66 of file aha152x.h.

#define ENSELINGO   0x10

Definition at line 203 of file aha152x.h.

#define ENSELO   0x40

Definition at line 65 of file aha152x.h.

#define ENSELTIMO   0x80

Definition at line 210 of file aha152x.h.

#define ENSPCHK   0x20

Definition at line 84 of file aha152x.h.

#define ENSPIORDY   0x02

Definition at line 206 of file aha152x.h.

#define ENSTIMER   0x04

Definition at line 87 of file aha152x.h.

#define ENSWRAP   0x08

Definition at line 204 of file aha152x.h.

#define FIFOSTAT   (HOSTIOPORT1+0x15) /* FIFO status */

Definition at line 38 of file aha152x.h.

#define FRERR   0x01

Definition at line 194 of file aha152x.h.

#define FWERR   0x02

Definition at line 193 of file aha152x.h.

#define GETPORT (   PORT)    inb( PORT )

Definition at line 289 of file aha152x.h.

#define GETSTCNT ( )
Value:
( (GETPORT(STCNT2)<<16) \
+ (GETPORT(STCNT1)<< 8) \

Definition at line 130 of file aha152x.h.

#define INTEN   0x04

Definition at line 224 of file aha152x.h.

#define INTSTAT   0x20

Definition at line 235 of file aha152x.h.

#define IO_RANGE   0x20

Definition at line 47 of file aha152x.h.

#define O_DMACNTRL1   0x13 /* DMA control 1 */

Definition at line 52 of file aha152x.h.

#define O_PORTA   0x1a /* PORT A */

Definition at line 50 of file aha152x.h.

#define O_PORTB   0x1b /* PORT B */

Definition at line 51 of file aha152x.h.

#define O_STACK   0x1d /* stack */

Definition at line 53 of file aha152x.h.

#define O_TC_DMACNTRL1   0x03 /* DMA control 1 */

Definition at line 58 of file aha152x.h.

#define O_TC_PORTA   0x0a /* PORT A */

Definition at line 56 of file aha152x.h.

#define O_TC_PORTB   0x0b /* PORT B */

Definition at line 57 of file aha152x.h.

#define O_TC_STACK   0x0d /* stack */

Definition at line 59 of file aha152x.h.

#define OFFCNT   0x0f /* mask */

Definition at line 184 of file aha152x.h.

#define OID   0x70

Definition at line 125 of file aha152x.h.

#define OID_   4

Definition at line 126 of file aha152x.h.

#define P_CMD   (SIG_CDI)

Definition at line 104 of file aha152x.h.

#define P_DATAI   (SIG_IOI)

Definition at line 103 of file aha152x.h.

#define P_DATAO   (0)

Definition at line 102 of file aha152x.h.

#define P_MASK   (SIG_MSGI|SIG_CDI|SIG_IOI)

Definition at line 101 of file aha152x.h.

#define P_MSGI   (SIG_MSGI|SIG_CDI|SIG_IOI)

Definition at line 107 of file aha152x.h.

#define P_MSGO   (SIG_MSGI|SIG_CDI)

Definition at line 106 of file aha152x.h.

#define P_STATUS   (SIG_CDI|SIG_IOI)

Definition at line 105 of file aha152x.h.

#define PHASECHG   0x02

Definition at line 164 of file aha152x.h.

#define PHASEMIS   0x10

Definition at line 161 of file aha152x.h.

#define PORTA   (HOSTIOPORT1+0x1a) /* PORT A */

Definition at line 41 of file aha152x.h.

#define PORTB   (HOSTIOPORT1+0x1b) /* PORT B */

Definition at line 42 of file aha152x.h.

#define PWRDWN   0x80

Definition at line 229 of file aha152x.h.

#define REQINIT   0x01

Definition at line 165 of file aha152x.h.

#define REV   (HOSTIOPORT1+0x1c) /* revision */

Definition at line 43 of file aha152x.h.

#define RSTFIFO   0x02

Definition at line 225 of file aha152x.h.

#define SCSIBLK   0x02

Definition at line 249 of file aha152x.h.

#define SCSIBUS   (HOSTIOPORT0+0x07) /* SCSI data bus */

Definition at line 23 of file aha152x.h.

#define SCSICNT   0xf0 /* mask */

Definition at line 182 of file aha152x.h.

#define SCSICNT_   4

Definition at line 183 of file aha152x.h.

#define SCSIDAT   (HOSTIOPORT0+0x06) /* SCSI latched data */

Definition at line 22 of file aha152x.h.

#define SCSIEN   0x80

Definition at line 74 of file aha152x.h.

#define SCSIID   SELID /* SCSI ID */

Definition at line 21 of file aha152x.h.

#define SCSIPERR   0x04

Definition at line 163 of file aha152x.h.

#define SCSIRATE   (HOSTIOPORT0+0x04) /* SCSI rate control */

Definition at line 19 of file aha152x.h.

#define SCSIRSTI   0x20

Definition at line 160 of file aha152x.h.

#define SCSIRSTO   0x01

Definition at line 71 of file aha152x.h.

#define SCSISEQ   (HOSTIOPORT0+0x00) /* SCSI sequence control */

Definition at line 15 of file aha152x.h.

#define SCSISIG   (HOSTIOPORT0+0x03) /* SCSI signal in/out */

Definition at line 18 of file aha152x.h.

#define SCSITEST   (HOSTIOPORT0+0x0e) /* SCSI test control */

Definition at line 30 of file aha152x.h.

#define SCTESTD   0x04

Definition at line 188 of file aha152x.h.

#define SCTESTU   0x08

Definition at line 187 of file aha152x.h.

#define SDONE   0x04

Definition at line 144 of file aha152x.h.

#define SELDI   0x20

Definition at line 141 of file aha152x.h.

#define SELDO   0x40

Definition at line 140 of file aha152x.h.

#define SELID   (HOSTIOPORT0+0x05) /* selection/reselection ID */

Definition at line 20 of file aha152x.h.

#define SELINGO   0x10

Definition at line 142 of file aha152x.h.

#define SELTO   0x80

Definition at line 158 of file aha152x.h.

#define SEMPTY   0x10

Definition at line 177 of file aha152x.h.

#define SETBITS (   PORT,
  BITS 
)    outb( (inb(PORT) | (BITS)), (PORT) )

Definition at line 290 of file aha152x.h.

#define SETPORT (   PORT,
  VAL 
)    outb( (VAL), (PORT) )

Definition at line 288 of file aha152x.h.

#define SETRATE (   RATE)    SETPORT(SCSIRATE,(RATE) & 0x7f)

Definition at line 295 of file aha152x.h.

#define SETSDONE   0x80

Definition at line 148 of file aha152x.h.

#define SETSTCNT (   X)
Value:
{ SETPORT(STCNT2, ((X) & 0xFF0000) >> 16); \
SETPORT(STCNT1, ((X) & 0x00FF00) >> 8); \
SETPORT(STCNT0, ((X) & 0x0000FF) ); }

Definition at line 134 of file aha152x.h.

#define SFCNT   0x07 /* mask */

Definition at line 179 of file aha152x.h.

#define SFULL   0x08

Definition at line 178 of file aha152x.h.

#define SIG_ACKI   0x01

Definition at line 98 of file aha152x.h.

#define SIG_ACKO   0x01

Definition at line 117 of file aha152x.h.

#define SIG_ATNI   0x10

Definition at line 94 of file aha152x.h.

#define SIG_ATNO   0x10

Definition at line 113 of file aha152x.h.

#define SIG_BSYI   0x04

Definition at line 96 of file aha152x.h.

#define SIG_BSYO   0x04

Definition at line 115 of file aha152x.h.

#define SIG_CDI   0x80

Definition at line 91 of file aha152x.h.

#define SIG_CDO   0x80

Definition at line 110 of file aha152x.h.

#define SIG_IOI   0x40

Definition at line 92 of file aha152x.h.

#define SIG_IOO   0x40

Definition at line 111 of file aha152x.h.

#define SIG_MSGI   0x20

Definition at line 93 of file aha152x.h.

#define SIG_MSGO   0x20

Definition at line 112 of file aha152x.h.

#define SIG_REQI   0x02

Definition at line 97 of file aha152x.h.

#define SIG_REQO   0x02

Definition at line 116 of file aha152x.h.

#define SIG_SELI   0x08

Definition at line 95 of file aha152x.h.

#define SIG_SELO   0x08

Definition at line 114 of file aha152x.h.

#define SIMODE0   (HOSTIOPORT1+0x10) /* SCSI interrupt mode 0 */

Definition at line 33 of file aha152x.h.

#define SIMODE1   (HOSTIOPORT1+0x11) /* SCSI interrupt mode 1 */

Definition at line 34 of file aha152x.h.

#define SOFFSET   0x20

Definition at line 176 of file aha152x.h.

#define SOFS   0x0f /* mask */

Definition at line 122 of file aha152x.h.

#define SPIOEN   0x08

Definition at line 78 of file aha152x.h.

#define SPIORDY   0x02

Definition at line 145 of file aha152x.h.

#define SSTAT0   (HOSTIOPORT0+0x0b) /* SCSI interrupt status 0 */

Definition at line 27 of file aha152x.h.

#define SSTAT1   (HOSTIOPORT0+0x0c) /* SCSI interrupt status 1 */

Definition at line 28 of file aha152x.h.

#define SSTAT2   (HOSTIOPORT0+0x0d) /* SCSI interrupt status 2 */

Definition at line 29 of file aha152x.h.

#define SSTAT3   SCSITEST /* SCSI interrupt status 3 */

Definition at line 31 of file aha152x.h.

#define SSTAT4   (HOSTIOPORT0+0x0f) /* SCSI status 4 */

Definition at line 32 of file aha152x.h.

#define STACK   (HOSTIOPORT1+0x1d) /* stack */

Definition at line 44 of file aha152x.h.

#define STCNT0   (HOSTIOPORT0+0x08) /* SCSI transfer count 0 */

Definition at line 24 of file aha152x.h.

#define STCNT1   (HOSTIOPORT0+0x09) /* SCSI transfer count 1 */

Definition at line 25 of file aha152x.h.

#define STCNT2   (HOSTIOPORT0+0x0a) /* SCSI transfer count 2 */

Definition at line 26 of file aha152x.h.

#define STCNTH   0x10

Definition at line 246 of file aha152x.h.

#define STCNTL   0x04

Definition at line 248 of file aha152x.h.

#define STCNTM   0x08

Definition at line 247 of file aha152x.h.

#define STCTEST   0x01

Definition at line 189 of file aha152x.h.

#define STIMESEL   0x18 /* mask */

Definition at line 85 of file aha152x.h.

#define STIMESEL_   3

Definition at line 86 of file aha152x.h.

#define STK   0x07 /* mask */

Definition at line 230 of file aha152x.h.

#define SWINT   0x01

Definition at line 226 of file aha152x.h.

#define SWRAP   0x08

Definition at line 143 of file aha152x.h.

#define SWRAPEN   0x40

Definition at line 83 of file aha152x.h.

#define SXFR   0x70 /* mask */

Definition at line 120 of file aha152x.h.

#define SXFR_   4

Definition at line 121 of file aha152x.h.

#define SXFRCTL0   (HOSTIOPORT0+0x01) /* SCSI transfer control 0 */

Definition at line 16 of file aha152x.h.

#define SXFRCTL1   (HOSTIOPORT0+0x02) /* SCSI transfer control 1 */

Definition at line 17 of file aha152x.h.

#define SYNCERR   0x04

Definition at line 192 of file aha152x.h.

#define TARGET   0x80

Definition at line 139 of file aha152x.h.

#define TEMODEO   0x80

Definition at line 64 of file aha152x.h.

#define TEST   (HOSTIOPORT1+0x1e) /* test register */

Definition at line 45 of file aha152x.h.

#define TESTHI (   PORT,
  BITS 
)    ((inb(PORT) & (BITS)) == (BITS))

Definition at line 292 of file aha152x.h.

#define TESTLO (   PORT,
  BITS 
)    ((inb(PORT) & (BITS)) == 0)

Definition at line 293 of file aha152x.h.

#define TID   0x07

Definition at line 127 of file aha152x.h.

#define WORDRDY   0x40

Definition at line 234 of file aha152x.h.

#define WRITE_READ   0x08

Definition at line 223 of file aha152x.h.

Function Documentation

int aha152x_host_reset_host ( struct Scsi_Host )

Definition at line 1334 of file aha152x.c.

struct Scsi_Host* aha152x_probe_one ( struct aha152x_setup )
read

Definition at line 780 of file aha152x.c.

void aha152x_release ( struct Scsi_Host )

Definition at line 916 of file aha152x.c.