brintos

brintos / linux-shallow public Read only

0
0
Text · 22.6 KiB · 473039d Raw
913 lines · plain
1/*2 * DO NOT EDIT - This file is automatically generated3 *		 from the following source files:4 *5 * $Id: //depot/aic7xxx/aic7xxx/aic7xxx.seq#58 $6 * $Id: //depot/aic7xxx/aic7xxx/aic7xxx.reg#40 $7 */8typedef int (ahc_reg_print_t)(u_int, u_int *, u_int);9typedef struct ahc_reg_parse_entry {10	char	*name;11	uint8_t	 value;12	uint8_t	 mask;13} ahc_reg_parse_entry_t;14 15#if AIC_DEBUG_REGISTERS16ahc_reg_print_t ahc_scsiseq_print;17#else18#define ahc_scsiseq_print(regvalue, cur_col, wrap) \19    ahc_print_register(NULL, 0, "SCSISEQ", 0x00, regvalue, cur_col, wrap)20#endif21 22#if AIC_DEBUG_REGISTERS23ahc_reg_print_t ahc_sxfrctl0_print;24#else25#define ahc_sxfrctl0_print(regvalue, cur_col, wrap) \26    ahc_print_register(NULL, 0, "SXFRCTL0", 0x01, regvalue, cur_col, wrap)27#endif28 29#if AIC_DEBUG_REGISTERS30ahc_reg_print_t ahc_scsisigi_print;31#else32#define ahc_scsisigi_print(regvalue, cur_col, wrap) \33    ahc_print_register(NULL, 0, "SCSISIGI", 0x03, regvalue, cur_col, wrap)34#endif35 36#if AIC_DEBUG_REGISTERS37ahc_reg_print_t ahc_scsirate_print;38#else39#define ahc_scsirate_print(regvalue, cur_col, wrap) \40    ahc_print_register(NULL, 0, "SCSIRATE", 0x04, regvalue, cur_col, wrap)41#endif42 43#if AIC_DEBUG_REGISTERS44ahc_reg_print_t ahc_sstat0_print;45#else46#define ahc_sstat0_print(regvalue, cur_col, wrap) \47    ahc_print_register(NULL, 0, "SSTAT0", 0x0b, regvalue, cur_col, wrap)48#endif49 50#if AIC_DEBUG_REGISTERS51ahc_reg_print_t ahc_sstat1_print;52#else53#define ahc_sstat1_print(regvalue, cur_col, wrap) \54    ahc_print_register(NULL, 0, "SSTAT1", 0x0c, regvalue, cur_col, wrap)55#endif56 57#if AIC_DEBUG_REGISTERS58ahc_reg_print_t ahc_sstat2_print;59#else60#define ahc_sstat2_print(regvalue, cur_col, wrap) \61    ahc_print_register(NULL, 0, "SSTAT2", 0x0d, regvalue, cur_col, wrap)62#endif63 64#if AIC_DEBUG_REGISTERS65ahc_reg_print_t ahc_sstat3_print;66#else67#define ahc_sstat3_print(regvalue, cur_col, wrap) \68    ahc_print_register(NULL, 0, "SSTAT3", 0x0e, regvalue, cur_col, wrap)69#endif70 71#if AIC_DEBUG_REGISTERS72ahc_reg_print_t ahc_simode0_print;73#else74#define ahc_simode0_print(regvalue, cur_col, wrap) \75    ahc_print_register(NULL, 0, "SIMODE0", 0x10, regvalue, cur_col, wrap)76#endif77 78#if AIC_DEBUG_REGISTERS79ahc_reg_print_t ahc_simode1_print;80#else81#define ahc_simode1_print(regvalue, cur_col, wrap) \82    ahc_print_register(NULL, 0, "SIMODE1", 0x11, regvalue, cur_col, wrap)83#endif84 85#if AIC_DEBUG_REGISTERS86ahc_reg_print_t ahc_scsibusl_print;87#else88#define ahc_scsibusl_print(regvalue, cur_col, wrap) \89    ahc_print_register(NULL, 0, "SCSIBUSL", 0x12, regvalue, cur_col, wrap)90#endif91 92#if AIC_DEBUG_REGISTERS93ahc_reg_print_t ahc_sblkctl_print;94#else95#define ahc_sblkctl_print(regvalue, cur_col, wrap) \96    ahc_print_register(NULL, 0, "SBLKCTL", 0x1f, regvalue, cur_col, wrap)97#endif98 99#if AIC_DEBUG_REGISTERS100ahc_reg_print_t ahc_seq_flags_print;101#else102#define ahc_seq_flags_print(regvalue, cur_col, wrap) \103    ahc_print_register(NULL, 0, "SEQ_FLAGS", 0x3c, regvalue, cur_col, wrap)104#endif105 106#if AIC_DEBUG_REGISTERS107ahc_reg_print_t ahc_lastphase_print;108#else109#define ahc_lastphase_print(regvalue, cur_col, wrap) \110    ahc_print_register(NULL, 0, "LASTPHASE", 0x3f, regvalue, cur_col, wrap)111#endif112 113#if AIC_DEBUG_REGISTERS114ahc_reg_print_t ahc_seqctl_print;115#else116#define ahc_seqctl_print(regvalue, cur_col, wrap) \117    ahc_print_register(NULL, 0, "SEQCTL", 0x60, regvalue, cur_col, wrap)118#endif119 120#if AIC_DEBUG_REGISTERS121ahc_reg_print_t ahc_sram_base_print;122#else123#define ahc_sram_base_print(regvalue, cur_col, wrap) \124    ahc_print_register(NULL, 0, "SRAM_BASE", 0x70, regvalue, cur_col, wrap)125#endif126 127#if AIC_DEBUG_REGISTERS128ahc_reg_print_t ahc_error_print;129#else130#define ahc_error_print(regvalue, cur_col, wrap) \131    ahc_print_register(NULL, 0, "ERROR", 0x92, regvalue, cur_col, wrap)132#endif133 134#if AIC_DEBUG_REGISTERS135ahc_reg_print_t ahc_dfcntrl_print;136#else137#define ahc_dfcntrl_print(regvalue, cur_col, wrap) \138    ahc_print_register(NULL, 0, "DFCNTRL", 0x93, regvalue, cur_col, wrap)139#endif140 141#if AIC_DEBUG_REGISTERS142ahc_reg_print_t ahc_dfstatus_print;143#else144#define ahc_dfstatus_print(regvalue, cur_col, wrap) \145    ahc_print_register(NULL, 0, "DFSTATUS", 0x94, regvalue, cur_col, wrap)146#endif147 148#if AIC_DEBUG_REGISTERS149ahc_reg_print_t ahc_scsiphase_print;150#else151#define ahc_scsiphase_print(regvalue, cur_col, wrap) \152    ahc_print_register(NULL, 0, "SCSIPHASE", 0x9e, regvalue, cur_col, wrap)153#endif154 155#if AIC_DEBUG_REGISTERS156ahc_reg_print_t ahc_scb_base_print;157#else158#define ahc_scb_base_print(regvalue, cur_col, wrap) \159    ahc_print_register(NULL, 0, "SCB_BASE", 0xa0, regvalue, cur_col, wrap)160#endif161 162#if AIC_DEBUG_REGISTERS163ahc_reg_print_t ahc_scb_control_print;164#else165#define ahc_scb_control_print(regvalue, cur_col, wrap) \166    ahc_print_register(NULL, 0, "SCB_CONTROL", 0xb8, regvalue, cur_col, wrap)167#endif168 169#if AIC_DEBUG_REGISTERS170ahc_reg_print_t ahc_scb_scsiid_print;171#else172#define ahc_scb_scsiid_print(regvalue, cur_col, wrap) \173    ahc_print_register(NULL, 0, "SCB_SCSIID", 0xb9, regvalue, cur_col, wrap)174#endif175 176#if AIC_DEBUG_REGISTERS177ahc_reg_print_t ahc_scb_lun_print;178#else179#define ahc_scb_lun_print(regvalue, cur_col, wrap) \180    ahc_print_register(NULL, 0, "SCB_LUN", 0xba, regvalue, cur_col, wrap)181#endif182 183#if AIC_DEBUG_REGISTERS184ahc_reg_print_t ahc_scb_tag_print;185#else186#define ahc_scb_tag_print(regvalue, cur_col, wrap) \187    ahc_print_register(NULL, 0, "SCB_TAG", 0xbb, regvalue, cur_col, wrap)188#endif189 190 191#define	SCSISEQ         		0x00192#define		TEMODE          	0x80193#define		SCSIRSTO        	0x01194 195#define	SXFRCTL0        		0x01196#define		DFON            	0x80197#define		DFPEXP          	0x40198#define		FAST20          	0x20199#define		CLRSTCNT        	0x10200#define		SPIOEN          	0x08201#define		SCAMEN          	0x04202#define		CLRCHN          	0x02203 204#define	SXFRCTL1        		0x02205#define		STIMESEL        	0x18206#define		BITBUCKET       	0x80207#define		SWRAPEN         	0x40208#define		ENSTIMER        	0x04209#define		ACTNEGEN        	0x02210#define		STPWEN          	0x01211 212#define	SCSISIGO        		0x03213#define		CDO             	0x80214#define		IOO             	0x40215#define		MSGO            	0x20216#define		ATNO            	0x10217#define		SELO            	0x08218#define		BSYO            	0x04219#define		REQO            	0x02220#define		ACKO            	0x01221 222#define	SCSISIGI        		0x03223#define		P_DATAIN_DT     	0x60224#define		P_DATAOUT_DT    	0x20225#define		ATNI            	0x10226#define		SELI            	0x08227#define		BSYI            	0x04228#define		REQI            	0x02229#define		ACKI            	0x01230 231#define	SCSIRATE        		0x04232#define		SXFR            	0x70233#define		SOFS            	0x0f234#define		SXFR_ULTRA2     	0x0f235#define		WIDEXFER        	0x80236#define		ENABLE_CRC      	0x40237#define		SINGLE_EDGE     	0x10238 239#define	SCSIID          		0x05240#define	SCSIOFFSET      		0x05241#define		SOFS_ULTRA2     	0x7f242 243#define	SCSIDATL        		0x06244 245#define	SCSIDATH        		0x07246 247#define	OPTIONMODE      		0x08248#define		OPTIONMODE_DEFAULTS	0x03249#define		AUTORATEEN      	0x80250#define		AUTOACKEN       	0x40251#define		ATNMGMNTEN      	0x20252#define		BUSFREEREV      	0x10253#define		EXPPHASEDIS     	0x08254#define		SCSIDATL_IMGEN  	0x04255#define		AUTO_MSGOUT_DE  	0x02256#define		DIS_MSGIN_DUALEDGE	0x01257 258#define	STCNT           		0x08259 260#define	TARGCRCCNT      		0x0a261 262#define	CLRSINT0        		0x0b263#define		CLRSELDO        	0x40264#define		CLRSELDI        	0x20265#define		CLRSELINGO      	0x10266#define		CLRIOERR        	0x08267#define		CLRSWRAP        	0x08268#define		CLRSPIORDY      	0x02269 270#define	SSTAT0          		0x0b271#define		TARGET          	0x80272#define		SELDO           	0x40273#define		SELDI           	0x20274#define		SELINGO         	0x10275#define		SWRAP           	0x08276#define		IOERR           	0x08277#define		SDONE           	0x04278#define		SPIORDY         	0x02279#define		DMADONE         	0x01280 281#define	CLRSINT1        		0x0c282#define		CLRSELTIMEO     	0x80283#define		CLRATNO         	0x40284#define		CLRSCSIRSTI     	0x20285#define		CLRBUSFREE      	0x08286#define		CLRSCSIPERR     	0x04287#define		CLRPHASECHG     	0x02288#define		CLRREQINIT      	0x01289 290#define	SSTAT1          		0x0c291#define		SELTO           	0x80292#define		ATNTARG         	0x40293#define		SCSIRSTI        	0x20294#define		PHASEMIS        	0x10295#define		BUSFREE         	0x08296#define		SCSIPERR        	0x04297#define		PHASECHG        	0x02298#define		REQINIT         	0x01299 300#define	SSTAT2          		0x0d301#define		SFCNT           	0x1f302#define		OVERRUN         	0x80303#define		SHVALID         	0x40304#define		EXP_ACTIVE      	0x10305#define		CRCVALERR       	0x08306#define		CRCENDERR       	0x04307#define		CRCREQERR       	0x02308#define		DUAL_EDGE_ERR   	0x01309 310#define	SSTAT3          		0x0e311#define		SCSICNT         	0xf0312#define		U2OFFCNT        	0x7f313#define		OFFCNT          	0x0f314 315#define	SCSIID_ULTRA2   		0x0f316 317#define	SIMODE0         		0x10318#define		ENSELDO         	0x40319#define		ENSELDI         	0x20320#define		ENSELINGO       	0x10321#define		ENIOERR         	0x08322#define		ENSWRAP         	0x08323#define		ENSDONE         	0x04324#define		ENSPIORDY       	0x02325#define		ENDMADONE       	0x01326 327#define	SIMODE1         		0x11328#define		ENSELTIMO       	0x80329#define		ENATNTARG       	0x40330#define		ENSCSIRST       	0x20331#define		ENPHASEMIS      	0x10332#define		ENBUSFREE       	0x08333#define		ENSCSIPERR      	0x04334#define		ENPHASECHG      	0x02335#define		ENREQINIT       	0x01336 337#define	SCSIBUSL        		0x12338 339#define	SCSIBUSH        		0x13340 341#define	SXFRCTL2        		0x13342#define		ASYNC_SETUP     	0x07343#define		AUTORSTDIS      	0x10344#define		CMDDMAEN        	0x08345 346#define	SHADDR          		0x14347 348#define	SELTIMER        		0x18349#define	TARGIDIN        		0x18350#define		STAGE6          	0x20351#define		STAGE5          	0x10352#define		STAGE4          	0x08353#define		STAGE3          	0x04354#define		STAGE2          	0x02355#define		STAGE1          	0x01356 357#define	SELID           		0x19358#define		SELID_MASK      	0xf0359#define		ONEBIT          	0x08360 361#define	SCAMCTL         		0x1a362#define		SCAMLVL         	0x03363#define		ENSCAMSELO      	0x80364#define		CLRSCAMSELID    	0x40365#define		ALTSTIM         	0x20366#define		DFLTTID         	0x10367 368#define	SPIOCAP         		0x1b369#define		SOFT1           	0x80370#define		SOFT0           	0x40371#define		SOFTCMDEN       	0x20372#define		EXT_BRDCTL      	0x10373#define		SEEPROM         	0x08374#define		EEPROM          	0x04375#define		ROM             	0x02376#define		SSPIOCPS        	0x01377 378#define	TARGID          		0x1b379 380#define	BRDCTL          		0x1d381#define		BRDDAT7         	0x80382#define		BRDDAT6         	0x40383#define		BRDDAT5         	0x20384#define		BRDSTB          	0x10385#define		BRDDAT4         	0x10386#define		BRDDAT3         	0x08387#define		BRDCS           	0x08388#define		BRDDAT2         	0x04389#define		BRDRW           	0x04390#define		BRDRW_ULTRA2    	0x02391#define		BRDCTL1         	0x02392#define		BRDCTL0         	0x01393#define		BRDSTB_ULTRA2   	0x01394 395#define	SEECTL          		0x1e396#define		EXTARBACK       	0x80397#define		EXTARBREQ       	0x40398#define		SEEMS           	0x20399#define		SEERDY          	0x10400#define		SEECS           	0x08401#define		SEECK           	0x04402#define		SEEDO           	0x02403#define		SEEDI           	0x01404 405#define	SBLKCTL         		0x1f406#define		DIAGLEDEN       	0x80407#define		DIAGLEDON       	0x40408#define		AUTOFLUSHDIS    	0x20409#define		SELBUSB         	0x08410#define		ENAB40          	0x08411#define		ENAB20          	0x04412#define		SELWIDE         	0x02413#define		XCVR            	0x01414 415#define	BUSY_TARGETS    		0x20416#define	TARG_SCSIRATE   		0x20417 418#define	ULTRA_ENB       		0x30419#define	CMDSIZE_TABLE   		0x30420 421#define	DISC_DSB        		0x32422 423#define	CMDSIZE_TABLE_TAIL		0x34424 425#define	MWI_RESIDUAL    		0x38426 427#define	NEXT_QUEUED_SCB 		0x39428 429#define	MSG_OUT         		0x3a430 431#define	DMAPARAMS       		0x3b432#define		PRELOADEN       	0x80433#define		WIDEODD         	0x40434#define		SCSIEN          	0x20435#define		SDMAEN          	0x10436#define		SDMAENACK       	0x10437#define		HDMAEN          	0x08438#define		HDMAENACK       	0x08439#define		DIRECTION       	0x04440#define		FIFOFLUSH       	0x02441#define		FIFORESET       	0x01442 443#define	SEQ_FLAGS       		0x3c444#define		NOT_IDENTIFIED  	0x80445#define		NO_CDB_SENT     	0x40446#define		TARGET_CMD_IS_TAGGED	0x40447#define		DPHASE          	0x20448#define		TARG_CMD_PENDING	0x10449#define		CMDPHASE_PENDING	0x08450#define		DPHASE_PENDING  	0x04451#define		SPHASE_PENDING  	0x02452#define		NO_DISCONNECT   	0x01453 454#define	SAVED_SCSIID    		0x3d455 456#define	SAVED_LUN       		0x3e457 458#define	LASTPHASE       		0x3f459#define		P_MESGIN        	0xe0460#define		PHASE_MASK      	0xe0461#define		P_STATUS        	0xc0462#define		P_MESGOUT       	0xa0463#define		P_COMMAND       	0x80464#define		P_DATAIN        	0x40465#define		P_BUSFREE       	0x01466#define		P_DATAOUT       	0x00467#define		CDI             	0x80468#define		IOI             	0x40469#define		MSGI            	0x20470 471#define	WAITING_SCBH    		0x40472 473#define	DISCONNECTED_SCBH		0x41474 475#define	FREE_SCBH       		0x42476 477#define	COMPLETE_SCBH   		0x43478 479#define	HSCB_ADDR       		0x44480 481#define	SHARED_DATA_ADDR		0x48482 483#define	KERNEL_QINPOS   		0x4c484 485#define	QINPOS          		0x4d486 487#define	QOUTPOS         		0x4e488 489#define	KERNEL_TQINPOS  		0x4f490 491#define	TQINPOS         		0x50492 493#define	ARG_1           		0x51494#define	RETURN_1        		0x51495#define		SEND_MSG        	0x80496#define		SEND_SENSE      	0x40497#define		SEND_REJ        	0x20498#define		MSGOUT_PHASEMIS 	0x10499#define		EXIT_MSG_LOOP   	0x08500#define		CONT_MSG_LOOP   	0x04501#define		CONT_TARG_SESSION	0x02502 503#define	ARG_2           		0x52504#define	RETURN_2        		0x52505 506#define	LAST_MSG        		0x53507#define	TARG_IMMEDIATE_SCB		0x53508 509#define	SCSISEQ_TEMPLATE		0x54510#define		ENSELO          	0x40511#define		ENSELI          	0x20512#define		ENRSELI         	0x10513#define		ENAUTOATNO      	0x08514#define		ENAUTOATNI      	0x04515#define		ENAUTOATNP      	0x02516 517#define	HA_274_BIOSGLOBAL		0x56518#define	INITIATOR_TAG   		0x56519#define		HA_274_EXTENDED_TRANS	0x01520 521#define	SEQ_FLAGS2      		0x57522#define		TARGET_MSG_PENDING	0x02523#define		SCB_DMA         	0x01524 525#define	SCSICONF        		0x5a526#define		HWSCSIID        	0x0f527#define		HSCSIID         	0x07528#define		TERM_ENB        	0x80529#define		RESET_SCSI      	0x40530#define		ENSPCHK         	0x20531 532#define	INTDEF          		0x5c533#define		VECTOR          	0x0f534#define		EDGE_TRIG       	0x80535 536#define	HOSTCONF        		0x5d537 538#define	HA_274_BIOSCTRL 		0x5f539#define		BIOSDISABLED    	0x30540#define		BIOSMODE        	0x30541#define		CHANNEL_B_PRIMARY	0x08542 543#define	SEQCTL          		0x60544#define		PERRORDIS       	0x80545#define		PAUSEDIS        	0x40546#define		FAILDIS         	0x20547#define		FASTMODE        	0x10548#define		BRKADRINTEN     	0x08549#define		STEP            	0x04550#define		SEQRESET        	0x02551#define		LOADRAM         	0x01552 553#define	SEQRAM          		0x61554 555#define	SEQADDR0        		0x62556 557#define	SEQADDR1        		0x63558#define		SEQADDR1_MASK   	0x01559 560#define	ACCUM           		0x64561 562#define	SINDEX          		0x65563 564#define	DINDEX          		0x66565 566#define	ALLONES         		0x69567 568#define	ALLZEROS        		0x6a569 570#define	NONE            		0x6a571 572#define	FLAGS           		0x6b573#define		ZERO            	0x02574#define		CARRY           	0x01575 576#define	SINDIR          		0x6c577 578#define	DINDIR          		0x6d579 580#define	FUNCTION1       		0x6e581 582#define	STACK           		0x6f583 584#define	TARG_OFFSET     		0x70585 586#define	SRAM_BASE       		0x70587 588#define	BCTL            		0x84589#define		ACE             	0x08590#define		ENABLE          	0x01591 592#define	DSCOMMAND0      		0x84593#define		CACHETHEN       	0x80594#define		DPARCKEN        	0x40595#define		MPARCKEN        	0x20596#define		EXTREQLCK       	0x10597#define		INTSCBRAMSEL    	0x08598#define		RAMPS           	0x04599#define		USCBSIZE32      	0x02600#define		CIOPARCKEN      	0x01601 602#define	BUSTIME         		0x85603#define		BOFF            	0xf0604#define		BON             	0x0f605 606#define	DSCOMMAND1      		0x85607#define		DSLATT          	0xfc608#define		HADDLDSEL1      	0x02609#define		HADDLDSEL0      	0x01610 611#define	BUSSPD          		0x86612#define		DFTHRSH         	0xc0613#define		DFTHRSH_75      	0x80614#define		STBOFF          	0x38615#define		STBON           	0x07616 617#define	HS_MAILBOX      		0x86618#define		HOST_MAILBOX    	0xf0619#define		HOST_TQINPOS    	0x80620#define		SEQ_MAILBOX     	0x0f621 622#define	DSPCISTATUS     		0x86623#define		DFTHRSH_100     	0xc0624 625#define	HCNTRL          		0x87626#define		POWRDN          	0x40627#define		SWINT           	0x10628#define		IRQMS           	0x08629#define		PAUSE           	0x04630#define		INTEN           	0x02631#define		CHIPRST         	0x01632#define		CHIPRSTACK      	0x01633 634#define	HADDR           		0x88635 636#define	HCNT            		0x8c637 638#define	SCBPTR          		0x90639 640#define	INTSTAT         		0x91641#define		SEQINT_MASK     	0xf1642#define		OUT_OF_RANGE    	0xe1643#define		NO_FREE_SCB     	0xd1644#define		SCB_MISMATCH    	0xc1645#define		MISSED_BUSFREE  	0xb1646#define		MKMSG_FAILED    	0xa1647#define		DATA_OVERRUN    	0x91648#define		PERR_DETECTED   	0x81649#define		BAD_STATUS      	0x71650#define		HOST_MSG_LOOP   	0x61651#define		PDATA_REINIT    	0x51652#define		IGN_WIDE_RES    	0x41653#define		NO_MATCH        	0x31654#define		PROTO_VIOLATION 	0x21655#define		SEND_REJECT     	0x11656#define		INT_PEND        	0x0f657#define		BAD_PHASE       	0x01658#define		BRKADRINT       	0x08659#define		SCSIINT         	0x04660#define		CMDCMPLT        	0x02661#define		SEQINT          	0x01662 663#define	CLRINT          		0x92664#define		CLRPARERR       	0x10665#define		CLRBRKADRINT    	0x08666#define		CLRSCSIINT      	0x04667#define		CLRCMDINT       	0x02668#define		CLRSEQINT       	0x01669 670#define	ERROR           		0x92671#define		CIOPARERR       	0x80672#define		PCIERRSTAT      	0x40673#define		MPARERR         	0x20674#define		DPARERR         	0x10675#define		SQPARERR        	0x08676#define		ILLOPCODE       	0x04677#define		ILLSADDR        	0x02678#define		ILLHADDR        	0x01679 680#define	DFCNTRL         		0x93681 682#define	DFSTATUS        		0x94683#define		PRELOAD_AVAIL   	0x80684#define		DFCACHETH       	0x40685#define		FIFOQWDEMP      	0x20686#define		MREQPEND        	0x10687#define		HDONE           	0x08688#define		DFTHRESH        	0x04689#define		FIFOFULL        	0x02690#define		FIFOEMP         	0x01691 692#define	DFWADDR         		0x95693 694#define	DFRADDR         		0x97695 696#define	DFDAT           		0x99697 698#define	SCBCNT          		0x9a699#define		SCBCNT_MASK     	0x1f700#define		SCBAUTO         	0x80701 702#define	QINFIFO         		0x9b703 704#define	QINCNT          		0x9c705 706#define	QOUTFIFO        		0x9d707 708#define	CRCCONTROL1     		0x9d709#define		CRCONSEEN       	0x80710#define		CRCVALCHKEN     	0x40711#define		CRCENDCHKEN     	0x20712#define		CRCREQCHKEN     	0x10713#define		TARGCRCENDEN    	0x08714#define		TARGCRCCNTEN    	0x04715 716#define	QOUTCNT         		0x9e717 718#define	SCSIPHASE       		0x9e719#define		DATA_PHASE_MASK 	0x03720#define		STATUS_PHASE    	0x20721#define		COMMAND_PHASE   	0x10722#define		MSG_IN_PHASE    	0x08723#define		MSG_OUT_PHASE   	0x04724#define		DATA_IN_PHASE   	0x02725#define		DATA_OUT_PHASE  	0x01726 727#define	SFUNCT          		0x9f728#define		ALT_MODE        	0x80729 730#define	SCB_BASE        		0xa0731 732#define	SCB_CDB_PTR     		0xa0733#define	SCB_CDB_STORE   		0xa0734#define	SCB_RESIDUAL_DATACNT		0xa0735 736#define	SCB_RESIDUAL_SGPTR		0xa4737 738#define	SCB_SCSI_STATUS 		0xa8739 740#define	SCB_TARGET_PHASES		0xa9741 742#define	SCB_TARGET_DATA_DIR		0xaa743 744#define	SCB_TARGET_ITAG 		0xab745 746#define	SCB_DATAPTR     		0xac747 748#define	SCB_DATACNT     		0xb0749#define		SG_HIGH_ADDR_BITS	0x7f750#define		SG_LAST_SEG     	0x80751 752#define	SCB_SGPTR       		0xb4753#define		SG_RESID_VALID  	0x04754#define		SG_FULL_RESID   	0x02755#define		SG_LIST_NULL    	0x01756 757#define	SCB_CONTROL     		0xb8758#define		SCB_TAG_TYPE    	0x03759#define		TARGET_SCB      	0x80760#define		STATUS_RCVD     	0x80761#define		DISCENB         	0x40762#define		TAG_ENB         	0x20763#define		MK_MESSAGE      	0x10764#define		ULTRAENB        	0x08765#define		DISCONNECTED    	0x04766 767#define	SCB_SCSIID      		0xb9768#define		TID             	0xf0769#define		TWIN_TID        	0x70770#define		OID             	0x0f771#define		TWIN_CHNLB      	0x80772 773#define	SCB_LUN         		0xba774#define		LID             	0x3f775#define		SCB_XFERLEN_ODD 	0x80776 777#define	SCB_TAG         		0xbb778 779#define	SCB_CDB_LEN     		0xbc780 781#define	SCB_SCSIRATE    		0xbd782 783#define	SCB_SCSIOFFSET  		0xbe784 785#define	SCB_NEXT        		0xbf786 787#define	SCB_64_SPARE    		0xc0788 789#define	SEECTL_2840     		0xc0790#define		CS_2840         	0x04791#define		CK_2840         	0x02792#define		DO_2840         	0x01793 794#define	STATUS_2840     		0xc1795#define		BIOS_SEL        	0x60796#define		ADSEL           	0x1e797#define		EEPROM_TF       	0x80798#define		DI_2840         	0x01799 800#define	SCB_64_BTT      		0xd0801 802#define	CCHADDR         		0xe0803 804#define	CCHCNT          		0xe8805 806#define	CCSGRAM         		0xe9807 808#define	CCSGADDR        		0xea809 810#define	CCSGCTL         		0xeb811#define		CCSGDONE        	0x80812#define		CCSGEN          	0x08813#define		SG_FETCH_NEEDED 	0x02814#define		CCSGRESET       	0x01815 816#define	CCSCBRAM        		0xec817 818#define	CCSCBADDR       		0xed819 820#define	CCSCBCTL        		0xee821#define		CCSCBDONE       	0x80822#define		ARRDONE         	0x40823#define		CCARREN         	0x10824#define		CCSCBEN         	0x08825#define		CCSCBDIR        	0x04826#define		CCSCBRESET      	0x01827 828#define	CCSCBCNT        		0xef829 830#define	SCBBADDR        		0xf0831 832#define	CCSCBPTR        		0xf1833 834#define	HNSCB_QOFF      		0xf4835 836#define	SNSCB_QOFF      		0xf6837 838#define	SDSCB_QOFF      		0xf8839 840#define	QOFF_CTLSTA     		0xfa841#define		SCB_QSIZE       	0x07842#define		SCB_QSIZE_256   	0x06843#define		SCB_AVAIL       	0x40844#define		SNSCB_ROLLOVER  	0x20845#define		SDSCB_ROLLOVER  	0x10846 847#define	DFF_THRSH       		0xfb848#define		WR_DFTHRSH      	0x70849#define		WR_DFTHRSH_MAX  	0x70850#define		WR_DFTHRSH_90   	0x60851#define		WR_DFTHRSH_85   	0x50852#define		WR_DFTHRSH_75   	0x40853#define		WR_DFTHRSH_63   	0x30854#define		WR_DFTHRSH_50   	0x20855#define		WR_DFTHRSH_25   	0x10856#define		RD_DFTHRSH      	0x07857#define		RD_DFTHRSH_MAX  	0x07858#define		RD_DFTHRSH_90   	0x06859#define		RD_DFTHRSH_85   	0x05860#define		RD_DFTHRSH_75   	0x04861#define		RD_DFTHRSH_63   	0x03862#define		RD_DFTHRSH_50   	0x02863#define		RD_DFTHRSH_25   	0x01864#define		RD_DFTHRSH_MIN  	0x00865#define		WR_DFTHRSH_MIN  	0x00866 867#define	SG_CACHE_SHADOW 		0xfc868#define		SG_ADDR_MASK    	0xf8869#define		LAST_SEG        	0x02870#define		LAST_SEG_DONE   	0x01871 872#define	SG_CACHE_PRE    		0xfc873 874 875#define	TARGET_CMD_CMPLT	0xfe876#define	MAX_OFFSET_ULTRA2	0x7f877#define	MAX_OFFSET_16BIT	0x08878#define	BUS_8_BIT	0x00879#define	TID_SHIFT	0x04880#define	STATUS_QUEUE_FULL	0x28881#define	STATUS_BUSY	0x08882#define	SCB_DOWNLOAD_SIZE_64	0x30883#define	MAX_OFFSET_8BIT	0x0f884#define	HOST_MAILBOX_SHIFT	0x04885#define	CCSGADDR_MAX	0x80886#define	BUS_32_BIT	0x02887#define	SG_SIZEOF	0x08888#define	SEQ_MAILBOX_SHIFT	0x00889#define	SCB_LIST_NULL	0xff890#define	SCB_DOWNLOAD_SIZE	0x20891#define	CMD_GROUP_CODE_SHIFT	0x05892#define	CCSGRAM_MAXSEGS	0x10893#define	TARGET_DATA_IN	0x01894#define	STACK_SIZE	0x04895#define	SCB_UPLOAD_SIZE	0x20896#define	MAX_OFFSET	0x7f897#define	HOST_MSG	0xff898#define	BUS_16_BIT	0x01899 900 901/* Downloaded Constant Definitions */902#define	INVERTED_CACHESIZE_MASK	0x03903#define	SG_PREFETCH_ALIGN_MASK	0x05904#define	SG_PREFETCH_ADDR_MASK	0x06905#define	QOUTFIFO_OFFSET	0x00906#define	SG_PREFETCH_CNT	0x04907#define	QINFIFO_OFFSET	0x01908#define	CACHESIZE_MASK	0x02909#define	DOWNLOAD_CONST_COUNT	0x07910 911 912/* Exported Labels */913