Lines Matching refs:ahc_inb

260 	ahc_outb(ahc, SXFRCTL1, ahc_inb(ahc, SXFRCTL1) & ~BITBUCKET);  in ahc_restart()
276 ahc_inb(ahc, SCSISEQ_TEMPLATE) & (ENSELI|ENRSELI|ENAUTOATNP)); in ahc_restart()
288 if ((ahc_inb(ahc, SEQ_FLAGS2) & SCB_DMA) != 0) { in ahc_restart()
291 ahc_inb(ahc, SEQ_FLAGS2) & ~SCB_DMA); in ahc_restart()
383 error = ahc_inb(ahc, ERROR); in ahc_handle_brkadrint()
388 ahc_inb(ahc, SEQADDR0) | in ahc_handle_brkadrint()
389 (ahc_inb(ahc, SEQADDR1) << 8)); in ahc_handle_brkadrint()
439 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_seqint()
582 ahc_inb(ahc, SCSISEQ) & (ENSELI|ENRSELI|ENAUTOATNP)); in ahc_handle_seqint()
589 ahc_inb(ahc, SAVED_SCSIID), ahc_inb(ahc, SAVED_LUN), in ahc_handle_seqint()
590 ahc_inb(ahc, ARG_1), ahc_inb(ahc, ACCUM)); in ahc_handle_seqint()
593 ahc_inb(ahc, SEQ_FLAGS), ahc_inb(ahc, SCBPTR), in ahc_handle_seqint()
595 BUILD_TCL(ahc_inb(ahc, SAVED_SCSIID), in ahc_handle_seqint()
596 ahc_inb(ahc, SAVED_LUN))), in ahc_handle_seqint()
597 ahc_inb(ahc, SINDEX)); in ahc_handle_seqint()
600 ahc_inb(ahc, SCSIID), ahc_inb(ahc, SCB_SCSIID), in ahc_handle_seqint()
601 ahc_inb(ahc, SCB_LUN), ahc_inb(ahc, SCB_TAG), in ahc_handle_seqint()
602 ahc_inb(ahc, SCB_CONTROL)); in ahc_handle_seqint()
604 ahc_inb(ahc, SCSIBUSL), ahc_inb(ahc, SCSISIGI)); in ahc_handle_seqint()
605 printf("SXFRCTL0 == 0x%x\n", ahc_inb(ahc, SXFRCTL0)); in ahc_handle_seqint()
606 printf("SEQCTL == 0x%x\n", ahc_inb(ahc, SEQCTL)); in ahc_handle_seqint()
618 u_int rejbyte = ahc_inb(ahc, ACCUM); in ahc_handle_seqint()
639 lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_seqint()
643 lastphase, ahc_inb(ahc, SCSISIGI)); in ahc_handle_seqint()
650 lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_seqint()
654 lastphase, ahc_inb(ahc, SCSISIGI)); in ahc_handle_seqint()
676 bus_phase = ahc_inb(ahc, SCSISIGI) & PHASE_MASK; in ahc_handle_seqint()
691 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_seqint()
740 && (ahc_inb(ahc, SSTAT1) & SCSIPERR) != 0) { in ahc_handle_seqint()
751 curphase = ahc_inb(ahc, SCSISIGI) & PHASE_MASK; in ahc_handle_seqint()
755 if ((ahc_inb(ahc, SCSISIGI) & (CDI|MSGI)) == 0) { in ahc_handle_seqint()
765 ahc_inb(ahc, SXFRCTL1) | BITBUCKET); in ahc_handle_seqint()
768 if ((ahc_inb(ahc, SCSISIGI) in ahc_handle_seqint()
774 ahc_inb(ahc, SXFRCTL1) & ~BITBUCKET); in ahc_handle_seqint()
782 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_seqint()
791 ahc_inb(ahc, SCSIDATL); in ahc_handle_seqint()
806 u_int scbindex = ahc_inb(ahc, SCB_TAG); in ahc_handle_seqint()
807 u_int lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_seqint()
822 ahc_inb(ahc, SEQ_FLAGS) & DPHASE ? "Have" : "Haven't", in ahc_handle_seqint()
855 ahc_inb(ahc, SXFRCTL0) | CLRSTCNT|CLRCHN); in ahc_handle_seqint()
857 ahc_inb(ahc, SXFRCTL0) | CLRSTCNT|CLRCHN); in ahc_handle_seqint()
863 dscommand1 = ahc_inb(ahc, DSCOMMAND1); in ahc_handle_seqint()
877 scbindex = ahc_inb(ahc, SCB_TAG); in ahc_handle_seqint()
903 scbptr = ahc_inb(ahc, SCBPTR); in ahc_handle_seqint()
905 scbptr, ahc_inb(ahc, ARG_1), in ahc_handle_seqint()
916 ahc_inb(ahc, SAVED_SCSIID), ahc_inb(ahc, SAVED_LUN), in ahc_handle_seqint()
917 ahc_inb(ahc, ARG_1), ahc_inb(ahc, ACCUM)); in ahc_handle_seqint()
920 ahc_inb(ahc, SEQ_FLAGS), ahc_inb(ahc, SCBPTR), in ahc_handle_seqint()
922 BUILD_TCL(ahc_inb(ahc, SAVED_SCSIID), in ahc_handle_seqint()
923 ahc_inb(ahc, SAVED_LUN))), in ahc_handle_seqint()
924 ahc_inb(ahc, SINDEX), in ahc_handle_seqint()
925 ahc_inb(ahc, ACCUM)); in ahc_handle_seqint()
928 ahc_inb(ahc, SCSIID), ahc_inb(ahc, SCB_SCSIID), in ahc_handle_seqint()
929 ahc_inb(ahc, SCB_LUN), ahc_inb(ahc, SCB_TAG), in ahc_handle_seqint()
930 ahc_inb(ahc, SCB_CONTROL)); in ahc_handle_seqint()
932 ahc_inb(ahc, SCSIBUSL), ahc_inb(ahc, SCSISIGI)); in ahc_handle_seqint()
940 intstat, ahc_inb(ahc, SCSISIGI)); in ahc_handle_seqint()
963 && ((ahc_inb(ahc, SBLKCTL) & SELBUSB) != 0)) in ahc_handle_scsiint()
970 status0 = ahc_inb(ahc, SSTAT0) & IOERR; in ahc_handle_scsiint()
973 status = ahc_inb(ahc, SSTAT1) & (SELTO|SCSIRSTI|BUSFREE|SCSIPERR); in ahc_handle_scsiint()
977 ahc_outb(ahc, SBLKCTL, ahc_inb(ahc, SBLKCTL) ^ SELBUSB); in ahc_handle_scsiint()
978 status = ahc_inb(ahc, SSTAT1) in ahc_handle_scsiint()
993 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_scsiint()
996 && (ahc_inb(ahc, SEQ_FLAGS) & NOT_IDENTIFIED) != 0) in ahc_handle_scsiint()
1003 now_lvd = ahc_inb(ahc, SBLKCTL) & ENAB40; in ahc_handle_scsiint()
1023 ahc_outb(ahc, SBLKCTL, ahc_inb(ahc, SBLKCTL) ^ SELBUSB); in ahc_handle_scsiint()
1046 lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_scsiint()
1047 curphase = ahc_inb(ahc, SCSISIGI) & PHASE_MASK; in ahc_handle_scsiint()
1048 sstat2 = ahc_inb(ahc, SSTAT2); in ahc_handle_scsiint()
1061 if ((ahc_inb(ahc, SSTAT1) & SCSIPERR) != 0 in ahc_handle_scsiint()
1081 SCSIID_TARGET(ahc, ahc_inb(ahc, SAVED_SCSIID))); in ahc_handle_scsiint()
1082 scsirate = ahc_inb(ahc, SCSIRATE); in ahc_handle_scsiint()
1148 ahc_outb(ahc, SIMODE1, ahc_inb(ahc, SIMODE1) & ~ENBUSFREE); in ahc_handle_scsiint()
1161 scbptr = ahc_inb(ahc, WAITING_SCBH); in ahc_handle_scsiint()
1163 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_scsiint()
1197 && (ahc_inb(ahc, SIMODE1) & ENBUSFREE) != 0) { in ahc_handle_scsiint()
1214 ahc_inb(ahc, SCSISEQ) & (ENSELI|ENRSELI|ENAUTOATNP)); in ahc_handle_scsiint()
1222 ahc_outb(ahc, SIMODE1, ahc_inb(ahc, SIMODE1) & ~ENBUSFREE); in ahc_handle_scsiint()
1231 lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_scsiint()
1232 saved_scsiid = ahc_inb(ahc, SAVED_SCSIID); in ahc_handle_scsiint()
1233 saved_lun = ahc_inb(ahc, SAVED_LUN); in ahc_handle_scsiint()
1372 ahc_inb(ahc, SEQADDR0) in ahc_handle_scsiint()
1373 | (ahc_inb(ahc, SEQADDR1) << 8)); in ahc_handle_scsiint()
1424 seqaddr = ahc_inb(ahc, SEQADDR0) in ahc_clear_critical_section()
1425 | (ahc_inb(ahc, SEQADDR1) << 8); in ahc_clear_critical_section()
1460 simode0 = ahc_inb(ahc, SIMODE0); in ahc_clear_critical_section()
1462 simode1 = ahc_inb(ahc, SIMODE1); in ahc_clear_critical_section()
1640 if ((ahc_inb(ahc, SBLKCTL) & ENAB40) != 0 in ahc_devlimited_syncrate()
1641 && (ahc_inb(ahc, SSTAT2) & EXP_ACTIVE) == 0) { in ahc_devlimited_syncrate()
1965 sxfrctl0 = ahc_inb(ahc, SXFRCTL0); in ahc_set_syncrate()
2135 saved_scbptr = ahc_inb(ahc, SCBPTR); in ahc_update_pending_scbs()
2143 scb_tag = ahc_inb(ahc, SCB_TAG); in ahc_update_pending_scbs()
2149 control = ahc_inb(ahc, SCB_CONTROL); in ahc_update_pending_scbs()
2170 if (ahc_inb(ahc, SSTAT0) & TARGET) in ahc_fetch_devinfo()
2177 && (ahc_inb(ahc, SEQ_FLAGS) in ahc_fetch_devinfo()
2180 our_id = ahc_inb(ahc, TARGIDIN) & OID; in ahc_fetch_devinfo()
2182 our_id = ahc_inb(ahc, SCSIID_ULTRA2) & OID; in ahc_fetch_devinfo()
2184 our_id = ahc_inb(ahc, SCSIID) & OID; in ahc_fetch_devinfo()
2186 saved_scsiid = ahc_inb(ahc, SAVED_SCSIID); in ahc_fetch_devinfo()
2190 ahc_inb(ahc, SAVED_LUN), in ahc_fetch_devinfo()
2259 scsisigo |= ahc_inb(ahc, SCSISIGI); in ahc_assert_atn()
2282 && ahc_inb(ahc, MSG_OUT) == MSG_IDENTIFYFLAG) { in ahc_setup_initiator_msgout()
2311 ahc_outb(ahc, SCSISEQ, (ahc_inb(ahc, SCSISEQ) & ~ENSELO)); in ahc_setup_initiator_msgout()
2328 ahc_outb(ahc, SCSISEQ, (ahc_inb(ahc, SCSISEQ) & ~ENSELO)); in ahc_setup_initiator_msgout()
2338 ahc_inb(ahc, MSG_OUT), scb->flags); in ahc_setup_initiator_msgout()
2345 ahc_outb(ahc, SCB_CONTROL, ahc_inb(ahc, SCB_CONTROL) & ~MK_MESSAGE); in ahc_setup_initiator_msgout()
2529 if ((ahc_inb(ahc, SCSISIGI) & ATNI) != 0) { in ahc_clear_msg_state()
2538 ahc_inb(ahc, SEQ_FLAGS2) & ~TARGET_MSG_PENDING); in ahc_clear_msg_state()
2553 scbid = ahc_inb(ahc, SCB_TAG); in ahc_handle_proto_violation()
2555 seq_flags = ahc_inb(ahc, SEQ_FLAGS); in ahc_handle_proto_violation()
2556 curphase = ahc_inb(ahc, SCSISIGI) & PHASE_MASK; in ahc_handle_proto_violation()
2557 lastphase = ahc_inb(ahc, LASTPHASE); in ahc_handle_proto_violation()
2582 } else if ((ahc_inb(ahc, SCB_CONTROL) & STATUS_RCVD) == 0) { in ahc_handle_proto_violation()
2617 ahc_inb(ahc, SCSISEQ) & ~ENSELO); in ahc_handle_proto_violation()
2647 bus_phase = ahc_inb(ahc, SCSISIGI) & PHASE_MASK; in ahc_handle_message_phase()
2766 ahc->msgin_buf[ahc->msgin_index] = ahc_inb(ahc, SCSIBUSL); in ahc_handle_message_phase()
2804 ahc_inb(ahc, SCSIDATL); in ahc_handle_message_phase()
2822 if ((ahc_inb(ahc, SCSISIGI) & ATNI) != 0 in ahc_handle_message_phase()
2840 ahc_inb(ahc, SCSIDATL); in ahc_handle_message_phase()
2842 ahc_inb(ahc, SXFRCTL0) | SPIOEN); in ahc_handle_message_phase()
2849 ahc_inb(ahc, SXFRCTL0) & ~SPIOEN); in ahc_handle_message_phase()
2857 ahc_outb(ahc, SXFRCTL0, ahc_inb(ahc, SXFRCTL0) | SPIOEN); in ahc_handle_message_phase()
2870 lastbyte = (ahc_inb(ahc, SCSISIGI) & ATNI) == 0; in ahc_handle_message_phase()
2877 ahc_outb(ahc, SXFRCTL0, ahc_inb(ahc, SXFRCTL0) & ~SPIOEN); in ahc_handle_message_phase()
2878 ahc->msgin_buf[ahc->msgin_index] = ahc_inb(ahc, SCSIDATL); in ahc_handle_message_phase()
2906 ahc_inb(ahc, SXFRCTL0) | SPIOEN); in ahc_handle_message_phase()
2918 ahc_inb(ahc, SXFRCTL0) | SPIOEN); in ahc_handle_message_phase()
3359 tag = ahc_inb(ahc, INITIATOR_TAG); in ahc_parse_msg()
3425 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_msg_reject()
3431 last_msg = ahc_inb(ahc, LAST_MSG); in ahc_handle_msg_reject()
3514 ahc_inb(ahc, SCB_CONTROL) & mask); in ahc_handle_msg_reject()
3566 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_handle_ign_wide_residue()
3572 if ((ahc_inb(ahc, SEQ_FLAGS) & DPHASE) == 0 in ahc_handle_ign_wide_residue()
3588 sgptr = ahc_inb(ahc, SCB_RESIDUAL_SGPTR); in ahc_handle_ign_wide_residue()
3590 && (ahc_inb(ahc, SCB_LUN) & SCB_XFERLEN_ODD) != 0) { in ahc_handle_ign_wide_residue()
3659 ahc_inb(ahc, SCB_LUN) ^ SCB_XFERLEN_ODD); in ahc_handle_ign_wide_residue()
3679 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_reinitialize_dataptrs()
3681 sgptr = (ahc_inb(ahc, SCB_RESIDUAL_SGPTR + 3) << 24) in ahc_reinitialize_dataptrs()
3682 | (ahc_inb(ahc, SCB_RESIDUAL_SGPTR + 2) << 16) in ahc_reinitialize_dataptrs()
3683 | (ahc_inb(ahc, SCB_RESIDUAL_SGPTR + 1) << 8) in ahc_reinitialize_dataptrs()
3684 | ahc_inb(ahc, SCB_RESIDUAL_SGPTR); in ahc_reinitialize_dataptrs()
3692 resid = (ahc_inb(ahc, SCB_RESIDUAL_DATACNT + 2) << 16) in ahc_reinitialize_dataptrs()
3693 | (ahc_inb(ahc, SCB_RESIDUAL_DATACNT + 1) << 8) in ahc_reinitialize_dataptrs()
3694 | ahc_inb(ahc, SCB_RESIDUAL_DATACNT); in ahc_reinitialize_dataptrs()
3702 dscommand1 = ahc_inb(ahc, DSCOMMAND1); in ahc_reinitialize_dataptrs()
3865 ahc->unpause = ahc_inb(ahc, HCNTRL) & IRQMS; in ahc_softc_init()
4082 if ((ahc_inb(ahc, HCNTRL) & CHIPRST) != 0) { in ahc_reset()
4098 sblkctl = ahc_inb(ahc, SBLKCTL); in ahc_reset()
4100 sxfrctl1_b = ahc_inb(ahc, SXFRCTL1); in ahc_reset()
4103 sxfrctl1_a = ahc_inb(ahc, SXFRCTL1); in ahc_reset()
4116 } while (--wait && !(ahc_inb(ahc, HCNTRL) & CHIPRSTACK)); in ahc_reset()
4125 sblkctl = ahc_inb(ahc, SBLKCTL) & (SELBUSB|SELWIDE); in ahc_reset()
4157 sblkctl = ahc_inb(ahc, SBLKCTL); in ahc_reset()
4190 if (ahc_inb(ahc, SCB_BASE) != i) in ahc_probe_scbs()
4193 if (ahc_inb(ahc, SCB_BASE) != 0) in ahc_probe_scbs()
4591 ahc_outb(ahc, SBLKCTL, ahc_inb(ahc, SBLKCTL) | SELBUSB); in ahc_chip_init()
4594 scsi_conf = ahc_inb(ahc, SCSICONF + 1); in ahc_chip_init()
4598 ahc_outb(ahc, SIMODE0, ahc_inb(ahc, SIMODE0)|ENIOERR); in ahc_chip_init()
4603 ahc_outb(ahc, SBLKCTL, ahc_inb(ahc, SBLKCTL) & ~SELBUSB); in ahc_chip_init()
4610 scsi_conf = ahc_inb(ahc, SCSICONF); in ahc_chip_init()
4615 ahc_outb(ahc, SIMODE0, ahc_inb(ahc, SIMODE0)|ENIOERR); in ahc_chip_init()
4748 (ahc_inb(ahc, SBLKCTL) & (ENAB40|ENAB20)) == 0 && wait; in ahc_chip_init()
4781 printf (" 0x%x", ahc_inb(ahc, i)); in ahc_init()
4788 printf (" 0x%x", ahc_inb(ahc, i)); in ahc_init()
4940 scsi_conf = ahc_inb(ahc, SCSICONF + 1); in ahc_init()
4946 scsi_conf = ahc_inb(ahc, SCSICONF); in ahc_init()
4964 discenable = ~((ahc_inb(ahc, DISC_DSB + 1) << 8) in ahc_init()
4965 | ahc_inb(ahc, DISC_DSB)); in ahc_init()
4967 ultraenb = (ahc_inb(ahc, ULTRA_ENB + 1) << 8) in ahc_init()
4968 | ahc_inb(ahc, ULTRA_ENB); in ahc_init()
5008 scsirate = ahc_inb(ahc, TARG_SCSIRATE + i); in ahc_init()
5025 offset = ahc_inb(ahc, TARG_OFFSET + i); in ahc_init()
5085 hcntrl = ahc_inb(ahc, HCNTRL); in ahc_intr_enable()
5120 ahc_outb(ahc, SCSISEQ, ahc_inb(ahc, SCSISEQ) & ~ENSELO); in ahc_pause_and_flushwork()
5122 intstat = ahc_inb(ahc, INTSTAT); in ahc_pause_and_flushwork()
5126 || (ahc_inb(ahc, SSTAT0) & (SELDO|SELINGO)) != 0)); in ahc_pause_and_flushwork()
5129 ahc_inb(ahc, INTSTAT)); in ahc_pause_and_flushwork()
5185 saved_scbptr = ahc_inb(ahc, SCBPTR); in ahc_index_busy_tcl()
5187 scbid = ahc_inb(ahc, SCB_64_BTT + TCL_TARGET_OFFSET(tcl)); in ahc_index_busy_tcl()
5191 scbid = ahc_inb(ahc, BUSY_TARGETS + target_offset); in ahc_index_busy_tcl()
5205 saved_scbptr = ahc_inb(ahc, SCBPTR); in ahc_unbusy_tcl()
5223 saved_scbptr = ahc_inb(ahc, SCBPTR); in ahc_busy_tcl()
5333 qinpos = ahc_inb(ahc, SNSCB_QOFF); in ahc_qinfifo_count()
5336 qinpos = ahc_inb(ahc, QINPOS); in ahc_qinfifo_count()
5360 qinstart = ahc_inb(ahc, SNSCB_QOFF); in ahc_search_qinfifo()
5363 qinstart = ahc_inb(ahc, QINPOS); in ahc_search_qinfifo()
5480 curscbptr = ahc_inb(ahc, SCBPTR); in ahc_search_qinfifo()
5481 next = ahc_inb(ahc, WAITING_SCBH); /* Start at head of list. */ in ahc_search_qinfifo()
5488 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_search_qinfifo()
5531 next = ahc_inb(ahc, SCB_NEXT); in ahc_search_qinfifo()
5537 next = ahc_inb(ahc, SCB_NEXT); in ahc_search_qinfifo()
5660 next = ahc_inb(ahc, DISCONNECTED_SCBH); in ahc_search_disc_list()
5665 active_scb = ahc_inb(ahc, SCBPTR); in ahc_search_disc_list()
5674 scb_index = ahc_inb(ahc, SCB_TAG); in ahc_search_disc_list()
5697 next = ahc_inb(ahc, SCB_NEXT); in ahc_search_disc_list()
5703 next = ahc_inb(ahc, SCB_NEXT); in ahc_search_disc_list()
5721 next = ahc_inb(ahc, SCB_NEXT); in ahc_rem_scb_from_disc_list()
5751 ahc_outb(ahc, SCB_NEXT, ahc_inb(ahc, FREE_SCBH)); in ahc_add_curscb_to_free_list()
5752 ahc_outb(ahc, FREE_SCBH, ahc_inb(ahc, SCBPTR)); in ahc_add_curscb_to_free_list()
5769 curscb = ahc_inb(ahc, SCBPTR); in ahc_rem_wscb()
5771 next = ahc_inb(ahc, SCB_NEXT); in ahc_rem_wscb()
5787 ahc_outb(ahc, SCSISEQ, (ahc_inb(ahc, SCSISEQ) & ~ENSELO)); in ahc_rem_wscb()
5832 active_scb = ahc_inb(ahc, SCBPTR); in ahc_abort_scbs()
5905 scbid = ahc_inb(ahc, SCB_TAG); in ahc_abort_scbs()
5948 ahc_outb(ahc, SIMODE1, ahc_inb(ahc, SIMODE1) & ~ENSCSIRST); in ahc_reset_current_bus()
5949 scsiseq = ahc_inb(ahc, SCSISEQ); in ahc_reset_current_bus()
5959 ahc_outb(ahc, SIMODE1, ahc_inb(ahc, SIMODE1) | ENSCSIRST); in ahc_reset_current_bus()
6011 sblkctl = ahc_inb(ahc, SBLKCTL); in ahc_reset_channel()
6016 scsiseq = ahc_inb(ahc, SCSISEQ_TEMPLATE); in ahc_reset_channel()
6023 simode1 = ahc_inb(ahc, SIMODE1) & ~(ENBUSFREE|ENSCSIRST); in ahc_reset_channel()
6042 simode1 = ahc_inb(ahc, SIMODE1) & ~(ENBUSFREE|ENSCSIRST); in ahc_reset_channel()
6671 saved_scbptr = ahc_inb(ahc, SCBPTR); in ahc_dump_card_state()
6672 last_phase = ahc_inb(ahc, LASTPHASE); in ahc_dump_card_state()
6676 ahc_inb(ahc, SEQADDR0) | (ahc_inb(ahc, SEQADDR1) << 8)); in ahc_dump_card_state()
6680 ahc_inb(ahc, ACCUM), ahc_inb(ahc, SINDEX), ahc_inb(ahc, DINDEX), in ahc_dump_card_state()
6681 ahc_inb(ahc, ARG_2)); in ahc_dump_card_state()
6682 printf("HCNT = 0x%x SCBPTR = 0x%x\n", ahc_inb(ahc, HCNT), in ahc_dump_card_state()
6683 ahc_inb(ahc, SCBPTR)); in ahc_dump_card_state()
6686 ahc_scsiphase_print(ahc_inb(ahc, SCSIPHASE), &cur_col, 50); in ahc_dump_card_state()
6687 ahc_scsisigi_print(ahc_inb(ahc, SCSISIGI), &cur_col, 50); in ahc_dump_card_state()
6688 ahc_error_print(ahc_inb(ahc, ERROR), &cur_col, 50); in ahc_dump_card_state()
6689 ahc_scsibusl_print(ahc_inb(ahc, SCSIBUSL), &cur_col, 50); in ahc_dump_card_state()
6690 ahc_lastphase_print(ahc_inb(ahc, LASTPHASE), &cur_col, 50); in ahc_dump_card_state()
6691 ahc_scsiseq_print(ahc_inb(ahc, SCSISEQ), &cur_col, 50); in ahc_dump_card_state()
6692 ahc_sblkctl_print(ahc_inb(ahc, SBLKCTL), &cur_col, 50); in ahc_dump_card_state()
6693 ahc_scsirate_print(ahc_inb(ahc, SCSIRATE), &cur_col, 50); in ahc_dump_card_state()
6694 ahc_seqctl_print(ahc_inb(ahc, SEQCTL), &cur_col, 50); in ahc_dump_card_state()
6695 ahc_seq_flags_print(ahc_inb(ahc, SEQ_FLAGS), &cur_col, 50); in ahc_dump_card_state()
6696 ahc_sstat0_print(ahc_inb(ahc, SSTAT0), &cur_col, 50); in ahc_dump_card_state()
6697 ahc_sstat1_print(ahc_inb(ahc, SSTAT1), &cur_col, 50); in ahc_dump_card_state()
6698 ahc_sstat2_print(ahc_inb(ahc, SSTAT2), &cur_col, 50); in ahc_dump_card_state()
6699 ahc_sstat3_print(ahc_inb(ahc, SSTAT3), &cur_col, 50); in ahc_dump_card_state()
6700 ahc_simode0_print(ahc_inb(ahc, SIMODE0), &cur_col, 50); in ahc_dump_card_state()
6701 ahc_simode1_print(ahc_inb(ahc, SIMODE1), &cur_col, 50); in ahc_dump_card_state()
6702 ahc_sxfrctl0_print(ahc_inb(ahc, SXFRCTL0), &cur_col, 50); in ahc_dump_card_state()
6703 ahc_dfcntrl_print(ahc_inb(ahc, DFCNTRL), &cur_col, 50); in ahc_dump_card_state()
6704 ahc_dfstatus_print(ahc_inb(ahc, DFSTATUS), &cur_col, 50); in ahc_dump_card_state()
6709 printf(" 0x%x", ahc_inb(ahc, STACK)|(ahc_inb(ahc, STACK) << 8)); in ahc_dump_card_state()
6712 printf("Card NEXTQSCB = %d\n", ahc_inb(ahc, NEXT_QUEUED_SCB)); in ahc_dump_card_state()
6716 qinpos = ahc_inb(ahc, SNSCB_QOFF); in ahc_dump_card_state()
6719 qinpos = ahc_inb(ahc, QINPOS); in ahc_dump_card_state()
6728 scb_index = ahc_inb(ahc, WAITING_SCBH); in ahc_dump_card_state()
6732 printf("%d:%d ", scb_index, ahc_inb(ahc, SCB_TAG)); in ahc_dump_card_state()
6733 scb_index = ahc_inb(ahc, SCB_NEXT); in ahc_dump_card_state()
6738 scb_index = ahc_inb(ahc, DISCONNECTED_SCBH); in ahc_dump_card_state()
6742 printf("%d:%d ", scb_index, ahc_inb(ahc, SCB_TAG)); in ahc_dump_card_state()
6743 scb_index = ahc_inb(ahc, SCB_NEXT); in ahc_dump_card_state()
6758 scb_index = ahc_inb(ahc, FREE_SCBH); in ahc_dump_card_state()
6763 scb_index = ahc_inb(ahc, SCB_NEXT); in ahc_dump_card_state()
6772 ahc_scb_control_print(ahc_inb(ahc, SCB_CONTROL), &cur_col, 60); in ahc_dump_card_state()
6773 ahc_scb_scsiid_print(ahc_inb(ahc, SCB_SCSIID), &cur_col, 60); in ahc_dump_card_state()
6774 ahc_scb_lun_print(ahc_inb(ahc, SCB_LUN), &cur_col, 60); in ahc_dump_card_state()
6775 ahc_scb_tag_print(ahc_inb(ahc, SCB_TAG), &cur_col, 60); in ahc_dump_card_state()
6791 ahc_scb_control_print(ahc_inb(ahc, SCB_CONTROL), in ahc_dump_card_state()
6793 ahc_scb_tag_print(ahc_inb(ahc, SCB_TAG), &cur_col, 60); in ahc_dump_card_state()
7070 targid_mask = ahc_inb(ahc, TARGID) in ahc_handle_en_lun()
7071 | (ahc_inb(ahc, TARGID + 1) << 8); in ahc_handle_en_lun()
7094 sblkctl = ahc_inb(ahc, SBLKCTL); in ahc_handle_en_lun()
7119 scsiseq = ahc_inb(ahc, SCSISEQ_TEMPLATE); in ahc_handle_en_lun()
7122 scsiseq = ahc_inb(ahc, SCSISEQ); in ahc_handle_en_lun()
7193 targid_mask = ahc_inb(ahc, TARGID) in ahc_handle_en_lun()
7194 | (ahc_inb(ahc, TARGID + 1) in ahc_handle_en_lun()
7218 scsiseq = ahc_inb(ahc, SCSISEQ_TEMPLATE); in ahc_handle_en_lun()
7221 scsiseq = ahc_inb(ahc, SCSISEQ); in ahc_handle_en_lun()
7262 scsiid = ahc_inb(ahc, SCSIID_ULTRA2); in ahc_update_scsiid()
7264 scsiid = ahc_inb(ahc, SCSIID); in ahc_update_scsiid()
7323 hs_mailbox = ahc_inb(ahc, HS_MAILBOX); in ahc_run_tqinfifo()