Lines Matching refs:ahd

71 #define SCSIID_TARGET(ahd, scsiid)	\
75 #define SCSIID_CHANNEL(ahd, scsiid) ('A')
76 #define SCB_IS_SCSIBUS_B(ahd, scb) (0)
79 #define SCB_GET_TARGET(ahd, scb) \
80 SCSIID_TARGET((ahd), (scb)->hscb->scsiid)
81 #define SCB_GET_CHANNEL(ahd, scb) \
82 SCSIID_CHANNEL(ahd, (scb)->hscb->scsiid)
85 #define SCB_GET_TARGET_OFFSET(ahd, scb) \
86 SCB_GET_TARGET(ahd, scb)
87 #define SCB_GET_TARGET_MASK(ahd, scb) \
88 (0x01 << (SCB_GET_TARGET_OFFSET(ahd, scb)))
120 #define AHD_GET_SCB_COL_IDX(ahd, scb) \
121 ((SCB_GET_LUN(scb) << 4) | SCB_GET_TARGET(ahd, scb))
959 int ahd_read_seeprom(struct ahd_softc *ahd, uint16_t *buf,
962 int ahd_write_seeprom(struct ahd_softc *ahd, uint16_t *buf,
965 int ahd_acquire_seeprom(struct ahd_softc *ahd);
966 void ahd_release_seeprom(struct ahd_softc *ahd);
1257 #define AHD_SET_SLEWRATE(ahd, new_slew) \
1259 (ahd)->iocell_opts[AHD_PRECOMP_SLEW_INDEX] &= ~AHD_SLEWRATE_MASK; \
1260 (ahd)->iocell_opts[AHD_PRECOMP_SLEW_INDEX] |= \
1264 #define AHD_SET_PRECOMP(ahd, new_pcomp) \
1266 (ahd)->iocell_opts[AHD_PRECOMP_SLEW_INDEX] &= ~AHD_PRECOMP_MASK; \
1267 (ahd)->iocell_opts[AHD_PRECOMP_SLEW_INDEX] |= \
1271 #define AHD_SET_AMPLITUDE(ahd, new_amp) \
1273 (ahd)->iocell_opts[AHD_AMPLITUDE_INDEX] &= ~AHD_AMPLITUDE_MASK; \
1274 (ahd)->iocell_opts[AHD_AMPLITUDE_INDEX] |= \
1339 void ahd_qinfifo_requeue_tail(struct ahd_softc *ahd,
1345 void ahd_controller_info(struct ahd_softc *ahd, char *buf);
1346 int ahd_init(struct ahd_softc *ahd);
1348 int ahd_suspend(struct ahd_softc *ahd);
1349 void ahd_resume(struct ahd_softc *ahd);
1351 int ahd_default_config(struct ahd_softc *ahd);
1352 int ahd_parse_vpddata(struct ahd_softc *ahd,
1354 int ahd_parse_cfgdata(struct ahd_softc *ahd,
1356 void ahd_intr_enable(struct ahd_softc *ahd, int enable);
1357 void ahd_pause_and_flushwork(struct ahd_softc *ahd);
1360 struct scb *ahd_get_scb(struct ahd_softc *ahd, u_int col_idx);
1361 void ahd_free_scb(struct ahd_softc *ahd, struct scb *scb);
1362 void ahd_free(struct ahd_softc *ahd);
1363 int ahd_reset(struct ahd_softc *ahd, int reinit);
1364 int ahd_write_flexport(struct ahd_softc *ahd,
1366 int ahd_read_flexport(struct ahd_softc *ahd, u_int addr,
1376 int ahd_search_qinfifo(struct ahd_softc *ahd, int target,
1380 int ahd_search_disc_list(struct ahd_softc *ahd, int target,
1384 int ahd_reset_channel(struct ahd_softc *ahd, char channel,
1392 void ahd_find_syncrate(struct ahd_softc *ahd, u_int *period,
1408 void ahd_set_width(struct ahd_softc *ahd,
1411 void ahd_set_syncrate(struct ahd_softc *ahd,
1426 void ahd_handle_en_lun(struct ahd_softc *ahd,
1428 cam_status ahd_find_tmode_devs(struct ahd_softc *ahd,
1459 void ahd_print_devinfo(struct ahd_softc *ahd,
1461 void ahd_dump_card_state(struct ahd_softc *ahd);