Lines Matching refs:ahc
68 #define SCSIID_TARGET(ahc, scsiid) \ argument
69 (((scsiid) & ((((ahc)->features & AHC_TWIN) != 0) ? TWIN_TID : TID)) \
73 #define SCSIID_CHANNEL(ahc, scsiid) \ argument
74 ((((ahc)->features & AHC_TWIN) != 0) \
77 #define SCB_IS_SCSIBUS_B(ahc, scb) \ argument
78 (SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid) == 'B')
81 #define SCB_GET_TARGET(ahc, scb) \ argument
82 SCSIID_TARGET((ahc), (scb)->hscb->scsiid)
83 #define SCB_GET_CHANNEL(ahc, scb) \ argument
84 SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid)
87 #define SCB_GET_TARGET_OFFSET(ahc, scb) \ argument
88 (SCB_GET_TARGET(ahc, scb) + (SCB_IS_SCSIBUS_B(ahc, scb) ? 8 : 0))
89 #define SCB_GET_TARGET_MASK(ahc, scb) \ argument
90 (0x01 << (SCB_GET_TARGET_OFFSET(ahc, scb)))
1143 void ahc_pci_resume(struct ahc_softc *ahc);
1148 int aic7770_config(struct ahc_softc *ahc,
1154 void ahc_qinfifo_requeue_tail(struct ahc_softc *ahc,
1156 int ahc_match_scb(struct ahc_softc *ahc, struct scb *scb,
1163 void ahc_controller_info(struct ahc_softc *ahc, char *buf);
1164 int ahc_chip_init(struct ahc_softc *ahc);
1165 int ahc_init(struct ahc_softc *ahc);
1166 void ahc_intr_enable(struct ahc_softc *ahc, int enable);
1167 void ahc_pause_and_flushwork(struct ahc_softc *ahc);
1169 int ahc_suspend(struct ahc_softc *ahc);
1170 int ahc_resume(struct ahc_softc *ahc);
1174 void ahc_free(struct ahc_softc *ahc);
1175 int ahc_reset(struct ahc_softc *ahc, int reinit);
1183 int ahc_search_qinfifo(struct ahc_softc *ahc, int target,
1187 int ahc_search_untagged_queues(struct ahc_softc *ahc,
1192 int ahc_search_disc_list(struct ahc_softc *ahc, int target,
1196 int ahc_reset_channel(struct ahc_softc *ahc, char channel,
1205 const struct ahc_syncrate* ahc_find_syncrate(struct ahc_softc *ahc, u_int *period,
1207 u_int ahc_find_period(struct ahc_softc *ahc,
1223 void ahc_set_width(struct ahc_softc *ahc,
1226 void ahc_set_syncrate(struct ahc_softc *ahc,
1242 void ahc_handle_en_lun(struct ahc_softc *ahc,
1244 cam_status ahc_find_tmode_devs(struct ahc_softc *ahc,
1270 void ahc_print_devinfo(struct ahc_softc *ahc,
1272 void ahc_dump_card_state(struct ahc_softc *ahc);
1281 int ahc_acquire_seeprom(struct ahc_softc *ahc,