• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/scsi/

Lines Matching refs:uchar

121 typedef unsigned char uchar;
226 #define ASC_SCSI_TIX_TYPE uchar
228 #define ASC_SCSI_BIT_ID_TYPE uchar
255 #define ASC_SRB_HOST(x) ((uchar)((uchar)(x) >> 4))
256 #define ASC_SRB_TID(x) ((uchar)((uchar)(x) & (uchar)0x0F))
257 #define ASC_SRB_LUN(x) ((uchar)((uint)(x) >> 13))
258 #define PUT_CDB1(x) ((uchar)((uint)(x) >> 8))
298 uchar periph;
299 uchar devtype;
300 uchar ver;
301 uchar byte3;
302 uchar add_len;
303 uchar res1;
304 uchar res2;
305 uchar flags;
306 uchar vendor_id[8];
307 uchar product_id[16];
308 uchar product_rev_level[4];
425 uchar status;
426 uchar q_no;
427 uchar cntl;
428 uchar sg_queue_cnt;
429 uchar target_id;
430 uchar target_lun;
434 uchar sense_len;
435 uchar extra_bytes;
440 uchar target_ix;
441 uchar flag;
442 uchar cdb_len;
443 uchar tag_code;
448 uchar done_stat;
449 uchar host_stat;
450 uchar scsi_stat;
451 uchar scsi_msg;
455 uchar cdb[ASC_MAX_CDB_LEN];
456 uchar y_first_sg_list_qp;
457 uchar y_working_sg_qp;
458 uchar y_working_sg_ix;
459 uchar y_res;
469 uchar q_status;
470 uchar q_no;
471 uchar cntl;
472 uchar sense_len;
473 uchar extra_bytes;
474 uchar res;
507 uchar *cdbptr;
516 uchar *cdbptr;
518 uchar *sense_ptr;
520 uchar cdb[ASC_MAX_CDB_LEN];
521 uchar sense[ASC_MIN_SENSE_LEN];
527 uchar *cdbptr;
529 uchar *sense_ptr;
531 uchar cdb[ASC_MAX_CDB_LEN];
532 uchar sense[ASC_MIN_SENSE_LEN];
536 uchar fwd;
537 uchar bwd;
545 uchar seq_no;
546 uchar q_no;
547 uchar cntl;
548 uchar sg_head_qp;
549 uchar sg_list_cnt;
550 uchar sg_cur_list_cnt;
554 uchar fwd;
555 uchar bwd;
691 uchar msg_type;
692 uchar msg_len;
693 uchar msg_req;
696 uchar sdtr_xfer_period;
697 uchar sdtr_req_ack_offset;
700 uchar wdtr_width;
703 uchar mdp_b3;
704 uchar mdp_b2;
705 uchar mdp_b1;
706 uchar mdp_b0;
709 uchar res;
725 uchar chip_scsi_id;
726 uchar isa_dma_speed;
727 uchar isa_dma_channel;
728 uchar chip_version;
733 uchar max_tag_qng[ASC_MAX_TID + 1];
734 uchar *overrun_buf;
735 uchar sdtr_period_offset[ASC_MAX_TID + 1];
737 uchar adapter_info[6];
780 uchar scsi_reset_wait;
781 uchar chip_no;
783 uchar max_total_qng;
784 uchar cur_total_qng;
785 uchar in_critical_cnt;
786 uchar irq_no;
787 uchar last_q_shortage;
789 uchar cur_dvc_qng[ASC_MAX_TID + 1];
790 uchar max_dvc_qng[ASC_MAX_TID + 1];
793 uchar sdtr_period_tbl[ASC_MAX_SYN_XFER_NO];
798 uchar dos_int13_table[ASC_MAX_TID + 1];
802 uchar max_sdtr_index;
803 uchar host_init_sdtr_index;
809 uchar type[ASC_MAX_TID + 1][ASC_MAX_LUN + 1];
865 uchar init_sdtr;
866 uchar disc_enable;
867 uchar use_cmd_qng;
868 uchar start_motor;
869 uchar max_total_qng;
870 uchar max_tag_qng;
871 uchar bios_scan;
872 uchar power_up_wait;
873 uchar no_scam;
874 uchar id_speed; /* low order 4 bits is chip scsi id */
876 uchar dos_int13_table[ASC_MAX_TID + 1];
877 uchar adapter_info[6];
987 #define SC_SEL (uchar)(0x80)
988 #define SC_BSY (uchar)(0x40)
989 #define SC_ACK (uchar)(0x20)
990 #define SC_REQ (uchar)(0x10)
991 #define SC_ATN (uchar)(0x08)
992 #define SC_IO (uchar)(0x04)
993 #define SC_CD (uchar)(0x02)
994 #define SC_MSG (uchar)(0x01)
995 #define SEC_SCSI_CTL (uchar)(0x80)
996 #define SEC_ACTIVE_NEGATE (uchar)(0x40)
997 #define SEC_SLEW_RATE (uchar)(0x20)
998 #define SEC_ENABLE_FILTER (uchar)(0x10)
1058 #define CC_CHIP_RESET (uchar)0x80
1059 #define CC_SCSI_RESET (uchar)0x40
1060 #define CC_HALT (uchar)0x20
1061 #define CC_SINGLE_STEP (uchar)0x10
1062 #define CC_DMA_ABLE (uchar)0x08
1063 #define CC_TEST (uchar)0x04
1064 #define CC_BANK_ONE (uchar)0x02
1065 #define CC_DIAG (uchar)0x01
1105 #define AscSynIndexToPeriod(index) (uchar)(asc_dvc->sdtr_period_tbl[ (index) ])
1106 #define AscGetChipSignatureByte(port) (uchar)inp((port)+IOP_SIG_BYTE)
1108 #define AscGetChipVerNo(port) (uchar)inp((port)+IOP_VERSION)
1113 #define AscGetChipEEPCmd(port) (uchar)inp((port)+IOP_EEP_CMD)
1121 #define AscGetChipIFC(port) (uchar)inp((port)+IOP_REG_IFC)
1125 #define AscGetChipControl(port) (uchar)inp((port)+IOP_CTRL)
1127 #define AscGetChipSyn(port) (uchar)inp((port)+IOP_SYN_OFFSET)
1133 #define AscGetExtraControl(port) (uchar)inp((port)+IOP_EXTRA_CONTROL)
1137 #define AscReadChipIX(port) (uchar)inp((port)+IOP_REG_IX)
1141 #define AscReadChipQP(port) (uchar)inp((port)+IOP_REG_QP)
1147 #define AscReadChipDmaSpeed(port) (uchar)inp((port)+IOP_DMA_SPEED)
1157 #define AscReadChipDvcID(port) (uchar)inp((port)+IOP_REG_ID)
1160 STATIC int AscWriteEEPCmdReg(PortAddr iop_base, uchar cmd_reg);
1164 STATIC ushort AscReadEEPWord(PortAddr, uchar);
1165 STATIC ushort AscWriteEEPWord(PortAddr, uchar, ushort);
1176 STATIC void AscSetBank(PortAddr, uchar);
1181 STATIC uchar AscSetIsaDmaSpeed(PortAddr, uchar);
1182 STATIC uchar AscGetIsaDmaSpeed(PortAddr);
1184 STATIC uchar AscReadLramByte(PortAddr, ushort);
1190 STATIC void AscWriteLramByte(PortAddr, ushort, uchar);
1193 STATIC void AscMemWordCopyPtrToLram(PortAddr, ushort, uchar *, int);
1194 STATIC void AscMemDWordCopyPtrToLram(PortAddr, ushort, uchar *, int);
1195 STATIC void AscMemWordCopyPtrFromLram(PortAddr, ushort, uchar *, int);
1201 STATIC uchar AscMsgOutSDTR(ASC_DVC_VAR *, uchar, uchar);
1202 STATIC uchar AscCalSDTRData(ASC_DVC_VAR *, uchar, uchar);
1203 STATIC void AscSetChipSDTR(PortAddr, uchar, uchar);
1204 STATIC uchar AscGetSynPeriodIndex(ASC_DVC_VAR *, uchar);
1205 STATIC uchar AscAllocFreeQueue(PortAddr, uchar);
1206 STATIC uchar AscAllocMultipleFreeQueue(PortAddr, uchar, uchar);
1211 uchar n_q_required);
1213 ASC_SCSI_Q *, uchar);
1215 ASC_SCSI_Q *, uchar);
1216 STATIC int AscSetChipSynRegAtID(PortAddr, uchar, uchar);
1217 STATIC int AscSetRunChipSynRegAtID(PortAddr, uchar, uchar);
1222 STATIC uchar _AscCopyLramScsiDoneQ(PortAddr, ushort,
1225 STATIC int AscCompareString(uchar *, uchar *, int);
1234 STATIC uchar AscGetChipScsiCtrl(PortAddr);
1235 STATIC uchar AscSetChipScsiID(PortAddr, uchar);
1236 STATIC uchar AscGetChipVersion(PortAddr, ushort);
1238 STATIC ASC_DCNT AscLoadMicroCode(PortAddr, ushort, uchar *, ushort);
1241 STATIC uchar AscGetChipIRQ(PortAddr, ushort);
1242 STATIC uchar AscSetChipIRQ(PortAddr, uchar, ushort);
1247 STATIC uchar DvcReadPCIConfigByte(ASC_DVC_VAR *, ushort);
1249 ushort, uchar);
1254 STATIC void DvcPutScsiQ(PortAddr, ushort, uchar *, int);
1255 STATIC void DvcGetQinfo(PortAddr, ushort, uchar *, int);
1259 STATIC void AscAsyncFix(ASC_DVC_VAR *, uchar,
1263 uchar, ASC_SCSI_INQUIRY *);
1266 STATIC uint AscGetNumOfFreeQueue(ASC_DVC_VAR *, uchar,
1267 uchar);
1270 STATIC void AscEnableIsaDma(uchar);
1407 uchar adapter_scsi_id; /* 09 Host Adapter ID */
1408 uchar bios_boot_delay; /* power up wait */
1410 uchar scsi_reset_delay; /* 10 reset delay */
1411 uchar bios_id_lun; /* first boot device scsi id & lun */
1415 uchar termination; /* 11 0 - automatic */
1421 uchar reserved1; /* reserved byte (not used) */
1442 uchar max_host_qng; /* 15 maximum host queuing */
1443 uchar max_dvc_qng; /* maximum per device queuing */
1450 uchar oem_name[16]; /* 22 OEM name */
1477 uchar adapter_scsi_id; /* 09 Host Adapter ID */
1478 uchar bios_boot_delay; /* power up wait */
1480 uchar scsi_reset_delay; /* 10 reset delay */
1481 uchar bios_id_lun; /* first boot device scsi id & lun */
1485 uchar termination_se; /* 11 0 - automatic */
1491 uchar termination_lvd; /* 11 0 - automatic */
1516 uchar max_host_qng; /* 15 maximum host queueing */
1517 uchar max_dvc_qng; /* maximum per device queuing */
1524 uchar oem_name[16]; /* 22 OEM name */
1580 uchar adapter_scsi_id; /* 09 Host Adapter ID */
1581 uchar bios_boot_delay; /* power up wait */
1583 uchar scsi_reset_delay; /* 10 reset delay */
1584 uchar bios_id_lun; /* first boot device scsi id & lun */
1588 uchar termination_se; /* 11 0 - automatic */
1594 uchar termination_lvd; /* 11 0 - automatic */
1619 uchar max_host_qng; /* 15 maximum host queueing */
1620 uchar max_dvc_qng; /* maximum per device queuing */
1627 uchar oem_name[16]; /* 22 OEM name */
2214 uchar chip_version; /* chip version */
2215 uchar termination; /* Term. Ctrl. bits 6-5 of SCSI_CFG1 register */
2236 (struct adv_dvc_var *, uchar);
2265 uchar max_dvc_qng; /* maximum number of tagged commands per device */
2267 uchar scsi_reset_wait; /* delay in seconds after scsi bus reset */
2268 uchar chip_no; /* should be assigned by caller */
2269 uchar max_host_qng; /* maximum number of Q'ed command allowed */
2270 uchar irq_no; /* IRQ number */
2273 uchar chip_scsi_id; /* chip SCSI target ID */
2274 uchar chip_type;
2275 uchar bist_err_code;
2291 uchar reserved1;
2292 uchar reserved2;
2293 uchar reserved3;
2294 uchar sg_cnt; /* Valid entries in block. */
2314 uchar cntl; /* Ucode flags and state (ASC_MC_QC_*). */
2315 uchar target_cmd;
2316 uchar target_id; /* Device target identifier. */
2317 uchar target_lun; /* Device target logical unit number. */
2322 uchar mflag;
2323 uchar sense_len;
2324 uchar cdb_len; /* SCSI CDB length. Must <= 16 bytes. */
2325 uchar scsi_cntl;
2326 uchar done_status; /* Completion status. */
2327 uchar scsi_status; /* SCSI status byte. */
2328 uchar host_status; /* Ucode host status. */
2329 uchar sg_working_ix;
2330 uchar cdb[12]; /* SCSI CDB bytes 0-11. */
2333 uchar cdb16[4]; /* SCSI CDB bytes 12-15. */
2343 uchar a_flag;
2344 uchar pad[2]; /* Pad out to a word boundary. */
2391 STATIC uchar DvcAdvReadPCIConfigByte(ADV_DVC_VAR *, ushort);
2392 STATIC void DvcAdvWritePCIConfigByte(ADV_DVC_VAR *, ushort, uchar);
2394 uchar *, ASC_SDCNT *, int);
2666 uchar periph; /* peripheral device type [0:4] */
2668 uchar devtype; /* device type modifier (for SCSI I) [0:6] */
2670 uchar ver; /* ANSI approved version [0:2] */
2673 uchar byte3; /* response data format [0:3] */
2681 uchar add_len; /* additional length */
2682 uchar res1; /* reserved */
2683 uchar res2; /* reserved */
2684 uchar flags; /* soft reset implemented [0] */
2692 uchar vendor_id[8]; /* vendor identification */
2693 uchar product_id[16]; /* product identification */
2694 uchar product_rev_level[4]; /* product revision level */
2695 uchar vendor_specific[20]; /* vendor specific */
2696 uchar info; /* information unit supported [0] */
2700 uchar res3; /* reserved */
2976 ASC_DBG_PRT_HEX((lvl), "CDB", (uchar *) (cdb), (len));
2979 ASC_DBG_PRT_HEX((lvl), "SENSE", (uchar *) (sense), (len));
2982 ASC_DBG_PRT_HEX((lvl), "INQUIRY", (uchar *) (inq), (len));
3068 uchar align[32]; /* Sgblock structure padding. */
3074 uchar align[32]; /* Request structure padding. */
3129 uchar sdtr_data[ASC_MAX_TID+1]; /* SDTR information */
3150 uchar type;
3151 uchar bus;
3152 uchar slot;
3153 uchar func;
3154 uchar offset;
3163 uchar busNumber;
3164 uchar maxBusNumber;
3165 uchar devFunc;
3168 uchar bridge;
3169 uchar type;
3178 uchar revision;
3179 uchar classCode[3];
3180 uchar cacheSize;
3181 uchar latencyTimer;
3182 uchar headerType;
3183 uchar bist;
3188 uchar irqLine;
3189 uchar irqPin;
3190 uchar minGnt;
3191 uchar maxLatency;
3206 STATIC uchar overrun_buf[ASC_OVERRUN_BSIZE] = { 0 };
3260 STATIC void adv_async_callback(ADV_DVC_VAR *, uchar);
3270 STATIC int asc_get_eeprom_string(ushort *serialnum, uchar *cp);
3303 STATIC void asc_prt_hex(char *f, uchar *, int);
6422 adv_async_callback(ADV_DVC_VAR *adv_dvc_varp, uchar code)
6879 asc_get_eeprom_string(ushort *serialnum, uchar *cp)
6978 uchar serialstr[13];
7104 uchar serialstr[13];
7588 uchar syn_period_ix;
7664 uchar lrambyte;
7989 * DvcPutScsiQ(PortAddr iop_base, ushort s_addr, uchar *outbuf, int words)
7998 DvcPutScsiQ(PortAddr iop_base, ushort s_addr, uchar *outbuf, int words)
8015 * DvcGetQinfo(PortAddr iop_base, ushort s_addr, uchar *inbuf, int words)
8024 DvcGetQinfo(PortAddr iop_base, ushort s_addr, uchar *inbuf, int words)
8044 STATIC uchar __init
8050 uchar byte_data;
8065 uchar byte_data)
8138 uchar *vaddr, ADV_SDCNT *lenp, int flag)
8154 STATIC uchar __init
8160 uchar byte_data;
8175 uchar byte_data)
8734 asc_prt_hex(char *f, uchar *s, int l)
8800 STATIC uchar __init
8803 uchar new_host_id
8818 STATIC uchar __init
8822 uchar sc;
8830 STATIC uchar __init
8838 uchar revision;
8842 return ((uchar) ((ASC_CHIP_MIN_VER_EISA - 1) + revision));
8883 uchar *mcode_buf,
8917 if (AscGetChipSignatureByte(iop_base) == (uchar) ASC_1000_ID1B) {
8936 STATIC uchar _isa_pnp_inited __initdata = 0;
9021 STATIC uchar __init
9027 uchar chip_irq;
9031 chip_irq = (uchar) (((cfg_lsw >> 8) & 0x07) + 10);
9039 chip_irq = (uchar) (((cfg_lsw >> 2) & 0x07));
9045 return ((uchar) (chip_irq + (ASC_MIN_IRQ_NO - 1)));
9048 chip_irq = (uchar) (((cfg_lsw >> 2) & 0x03));
9050 chip_irq += (uchar) 2;
9051 return ((uchar) (chip_irq + ASC_MIN_IRQ_NO));
9054 STATIC uchar __init
9057 uchar irq_no,
9067 irq_no -= (uchar) ((ASC_MIN_IRQ_NO - 1));
9082 irq_no -= (uchar) 2;
9083 irq_no -= (uchar) ASC_MIN_IRQ_NO;
9095 uchar dma_channel)
9121 uchar tag_code;
9122 uchar q_status;
9123 uchar halt_qp;
9124 uchar sdtr_data;
9125 uchar target_ix;
9126 uchar q_cntl, tid_no;
9127 uchar cur_dvc_qng;
9128 uchar asyn_sdtr;
9129 uchar scsi_status;
9145 target_id = (uchar) ASC_TID_TO_TARGET_ID(tid_no);
9169 (uchar *) &ext_msg,
9246 (uchar *) &ext_msg,
9259 (uchar *) &ext_msg,
9280 (uchar) (asc_dvc->max_sdtr_index - 1)],
9281 (uchar) (sdtr_data & (uchar) ASC_SYN_MAX_OFFSET));
9322 (uchar *) &out_msg,
9382 uchar q_no;
9384 uchar sg_wk_q_no;
9385 uchar first_sg_wk_q_no;
9391 uchar next_qp;
9471 sg_list_dwords = (uchar) (ASC_SG_LIST_PER_Q * 2);
9506 (uchar *) &scsi_sg_q,
9511 (uchar *) &sg_head->sg_list[scsiq->next_sg_index],
9542 STATIC uchar
9551 uchar sg_queue_cnt;
9555 (uchar *) scsiq,
9560 scsiq->q_status = (uchar) _val;
9561 scsiq->q_no = (uchar) (_val >> 8);
9564 scsiq->cntl = (uchar) _val;
9565 sg_queue_cnt = (uchar) (_val >> 8);
9568 scsiq->sense_len = (uchar) _val;
9569 scsiq->extra_bytes = (uchar) (_val >> 8);
9591 uchar next_qp;
9592 uchar n_q_used;
9593 uchar sg_list_qp;
9594 uchar sg_queue_cnt;
9595 uchar q_cnt;
9596 uchar done_q_tail;
9597 uchar tid_no;
9603 uchar cur_target_qng;
9613 done_q_tail = (uchar) AscGetVarDoneQTail(iop_base);
9624 (uchar) (scsiq->q_status & (uchar) ~ (QS_READY | QS_ABORTED)));
9690 (uchar) (CC_SCSI_RESET | CC_HALT));
9731 uchar ctrl_reg;
9732 uchar saved_ctrl_reg;
9735 uchar host_flag;
9768 saved_ctrl_reg &= (uchar) (~CC_HALT);
9783 ASCV_HOST_FLAG_B) & (uchar) (~ASC_HOST_FLAG_IN_ISR);
9785 (uchar) (host_flag | (uchar) ASC_HOST_FLAG_IN_ISR));
9796 saved_ctrl_reg &= (uchar) (~CC_HALT);
9822 STATIC uchar _asc_mcode_buf[] =
9974 STATIC uchar _syn_offset_one_disable_cmd[ASC_SYN_OFFSET_ONE_DISABLE_LIST] =
10010 uchar target_ix;
10011 uchar tid_no;
10012 uchar sdtr_data;
10013 uchar extra_bytes;
10014 uchar scsi_cmd;
10015 uchar disable_cmd;
10042 (uchar) (asc_dvc->max_sdtr_index - 1)],
10043 (uchar) (sdtr_data & (uchar) ASC_SYN_MAX_OFFSET));
10121 extra_bytes = (uchar) ((ushort) addr & 0x0003);
10168 extra_bytes = (uchar) ((ushort) addr & 0x0003);
10206 uchar n_q_required
10210 uchar free_q_head;
10211 uchar next_qp;
10212 uchar tid_no;
10213 uchar target_ix;
10220 free_q_head = (uchar) AscGetVarFreeQHead(iop_base);
10223 free_q_head, (uchar) (n_q_required)))
10224 != (uchar) ASC_QLINK_END) {
10231 asc_dvc->cur_total_qng += (uchar) (n_q_required);
10269 uchar target_ix,
10270 uchar n_qs
10276 uchar tid_no;
10312 uchar q_no
10316 uchar tid_no;
10317 uchar sdtr_data;
10318 uchar syn_period_ix;
10319 uchar syn_offset;
10341 (uchar *) scsiq->cdbptr,
10346 (uchar *) &scsiq->q1.cntl,
10358 uchar q_no
10372 uchar next_qp;
10425 sg_list_dwords = (uchar) (ASC_SG_LIST_PER_Q * 2);
10468 (uchar *) &scsi_sg_q,
10472 (uchar *) &sg_head->sg_list[sg_index],
10489 uchar tid_no,
10490 uchar sdtr_data
10506 uchar id,
10507 uchar sdtr_data
10542 uchar i;
10555 (uchar) (i + 1));
10557 (uchar) (asc_dvc->max_total_qng));
10559 (uchar) i);
10564 (uchar) (i + 1));
10566 (uchar) (i - 1));
10568 (uchar) i);
10571 (uchar) ASC_QLINK_END);
10573 (uchar) (asc_dvc->max_total_qng - 1));
10575 (uchar) asc_dvc->max_total_qng);
10578 for (; i <= (uchar) (asc_dvc->max_total_qng + 3);
10605 (uchar) ((int) asc_dvc->max_total_qng + 1));
10607 (uchar) ((int) asc_dvc->max_total_qng + 2));
10638 STATIC uchar
10641 uchar sdtr_period,
10642 uchar sdtr_offset
10646 uchar sdtr_period_index;
10661 (uchar *) &sdtr_buf,
10669 (uchar *) &sdtr_buf,
10675 STATIC uchar
10678 uchar sdtr_period,
10679 uchar syn_offset
10682 uchar byte;
10683 uchar sdtr_period_ix;
10698 uchar sdtr_data,
10699 uchar tid_no
10707 STATIC uchar
10710 uchar syn_time
10713 uchar *period_table;
10724 return ((uchar) i);
10727 return ((uchar) max_index);
10729 return ((uchar) (max_index + 1));
10733 STATIC uchar
10736 uchar free_q_head
10740 uchar next_qp;
10741 uchar q_status;
10744 q_status = (uchar) AscReadLramByte(iop_base,
10754 STATIC uchar
10757 uchar free_q_head,
10758 uchar n_free_q
10761 uchar i;
10779 uchar saved_stop_code;
10904 uchar cc_val;
10907 AscSetChipControl(iop_base, (uchar) (cc_val | CC_HALT));
10946 uchar host_flag;
10947 uchar risc_flag;
10959 (uchar) (host_flag | ASC_HOST_FLAG_ACK_INT));
11001 uchar bank
11004 uchar val;
11077 uchar value;
11092 STATIC uchar __init
11095 uchar speed_value)
11104 STATIC uchar __init
11109 uchar speed_value;
11124 uchar lsb, msb;
11140 uchar PCIRevisionID;
11141 uchar prevCmdRegBits;
11346 uchar chip_version;
11438 asc_dvc->cfg->isa_dma_channel = (uchar) AscGetIsaDmaChannel(iop_base);
11600 (uchar) (ASC_DEF_SDTR_OFFSET |
11645 (uchar *) &phy_addr, 1);
11648 (uchar *) &phy_size, 1);
11695 uchar cmd_reg
11698 uchar read_back;
11755 uchar addr)
11758 uchar cmd_reg;
11773 uchar addr,
11785 (uchar) ((uchar) ASC_EEP_CMD_WRITE | addr));
11811 *wbuf = AscReadEEPWord(iop_base, (uchar) s_addr);
11822 wval = AscReadEEPWord( iop_base, ( uchar )s_addr ) ;
11839 *wbuf = AscReadEEPWord(iop_base, (uchar) s_addr);
11864 if (*wbuf != AscWriteEEPWord(iop_base, (uchar) s_addr, *wbuf)) {
11882 if (word != AscWriteEEPWord( iop_base, (uchar) s_addr, word)) {
11887 if (*wbuf != AscWriteEEPWord(iop_base, (uchar) s_addr, *wbuf)) {
11895 if (sum != AscWriteEEPWord(iop_base, (uchar) s_addr, sum)) {
11905 if (*wbuf != AscReadEEPWord(iop_base, (uchar) s_addr)) {
11922 word = le16_to_cpu(AscReadEEPWord(iop_base, (uchar) s_addr));
11925 word = AscReadEEPWord(iop_base, (uchar) s_addr);
11932 if (AscReadEEPWord(iop_base, (uchar) s_addr) != sum) {
11963 uchar tid_no,
11966 uchar dvc_type;
11977 (AscCompareString((uchar *) inq->vendor_id,
11978 (uchar *) "HP ", 3) == 0))
12005 (AscCompareString((uchar *) inq->vendor_id,
12006 (uchar *) "QUANTUM XP34301", 15) == 0) &&
12007 (AscCompareString((uchar *) inq->product_rev_level,
12008 (uchar *) "1071", 4) == 0))
12017 uchar tid_no, ASC_SCSI_INQUIRY *inq)
12063 uchar *str1,
12064 uchar *str2,
12079 STATIC uchar
12085 uchar byte_data;
12091 byte_data = (uchar) ((word_data >> 8) & 0xFF);
12095 byte_data = (uchar) (word_data & 0xFF);
12146 uchar byte_val
12175 uchar *s_buffer,
12207 uchar *s_buffer,
12233 uchar *d_buffer,
13728 uchar pci_cmd_reg;
13883 uchar tid;
13886 uchar max_cmd[ADV_MAX_TID + 1];
14312 carr_paddr = cpu_to_le32(DvcGetPhyAddr(asc_dvc, NULL, (uchar *) carrp,
14463 uchar byte;
14464 uchar tid;
14467 uchar max_cmd[ADV_MAX_TID + 1];
14934 carr_paddr = cpu_to_le32(DvcGetPhyAddr(asc_dvc, NULL, (uchar *) carrp,
15088 uchar byte;
15089 uchar tid;
15092 uchar max_cmd[ASC_MAX_TID + 1];
15552 carr_paddr = cpu_to_le32(DvcGetPhyAddr(asc_dvc, NULL, (uchar *) carrp,
15715 *((uchar *) &eep_config + i) =
15716 *((uchar *) &Default_3550_EEPROM_Config + i);
15868 uchar tid, termination;
15889 *((uchar *) &eep_config + i) =
15890 *((uchar *) &Default_38C0800_EEPROM_Config + i);
16101 uchar tid, termination;
16135 *((uchar *) &eep_config + i) =
16136 ((*((uchar *) &Default_38C1600_EEPROM_Config + i)) &
16156 *((uchar *) &eep_config + i) |=
16162 *((uchar *) &eep_config + i) =
16163 *((uchar *) &Default_38C1600_EEPROM_Config + i);
16807 req_paddr = DvcGetPhyAddr(asc_dvc, scsiq, (uchar *) scsiq,
16937 uchar tid, max_cmd[ADV_MAX_TID + 1];
17049 uchar int_stat;
17077 uchar intrb_code;
17293 uchar tid;