• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/aic7xxx/

Lines Matching defs:ahd

83 #define SCSIID_TARGET(ahd, scsiid)	\
87 #define SCSIID_CHANNEL(ahd, scsiid) ('A')
88 #define SCB_IS_SCSIBUS_B(ahd, scb) (0)
91 #define SCB_GET_TARGET(ahd, scb) \
92 SCSIID_TARGET((ahd), (scb)->hscb->scsiid)
93 #define SCB_GET_CHANNEL(ahd, scb) \
94 SCSIID_CHANNEL(ahd, (scb)->hscb->scsiid)
97 #define SCB_GET_TARGET_OFFSET(ahd, scb) \
98 SCB_GET_TARGET(ahd, scb)
99 #define SCB_GET_TARGET_MASK(ahd, scb) \
100 (0x01 << (SCB_GET_TARGET_OFFSET(ahd, scb)))
132 #define AHD_GET_SCB_COL_IDX(ahd, scb) \
133 ((SCB_GET_LUN(scb) << 4) | SCB_GET_TARGET(ahd, scb))
986 int ahd_read_seeprom(struct ahd_softc *ahd, uint16_t *buf,
989 int ahd_write_seeprom(struct ahd_softc *ahd, uint16_t *buf,
991 int ahd_wait_seeprom(struct ahd_softc *ahd);
994 int ahd_acquire_seeprom(struct ahd_softc *ahd);
995 void ahd_release_seeprom(struct ahd_softc *ahd);
1326 #define AHD_SET_SLEWRATE(ahd, new_slew) \
1328 (ahd)->iocell_opts[AHD_PRECOMP_SLEW_INDEX] &= ~AHD_SLEWRATE_MASK; \
1329 (ahd)->iocell_opts[AHD_PRECOMP_SLEW_INDEX] |= \
1333 #define AHD_SET_PRECOMP(ahd, new_pcomp) \
1335 (ahd)->iocell_opts[AHD_PRECOMP_SLEW_INDEX] &= ~AHD_PRECOMP_MASK; \
1336 (ahd)->iocell_opts[AHD_PRECOMP_SLEW_INDEX] |= \
1340 #define AHD_SET_AMPLITUDE(ahd, new_amp) \
1342 (ahd)->iocell_opts[AHD_AMPLITUDE_INDEX] &= ~AHD_AMPLITUDE_MASK; \
1343 (ahd)->iocell_opts[AHD_AMPLITUDE_INDEX] |= \
1385 void ahd_reset_cmds_pending(struct ahd_softc *ahd);
1386 u_int ahd_find_busy_tcl(struct ahd_softc *ahd, u_int tcl);
1387 void ahd_busy_tcl(struct ahd_softc *ahd,
1389 static __inline void ahd_unbusy_tcl(struct ahd_softc *ahd, u_int tcl);
1391 ahd_unbusy_tcl(struct ahd_softc *ahd, u_int tcl)
1393 ahd_busy_tcl(ahd, tcl, SCB_LIST_NULL);
1404 void ahd_qinfifo_requeue_tail(struct ahd_softc *ahd,
1406 int ahd_match_scb(struct ahd_softc *ahd, struct scb *scb,
1413 void ahd_controller_info(struct ahd_softc *ahd, char *buf);
1414 int ahd_init(struct ahd_softc *ahd);
1415 int ahd_default_config(struct ahd_softc *ahd);
1416 int ahd_parse_vpddata(struct ahd_softc *ahd,
1418 int ahd_parse_cfgdata(struct ahd_softc *ahd,
1420 void ahd_intr_enable(struct ahd_softc *ahd, int enable);
1421 void ahd_update_coalescing_values(struct ahd_softc *ahd,
1425 void ahd_enable_coalescing(struct ahd_softc *ahd,
1427 void ahd_pause_and_flushwork(struct ahd_softc *ahd);
1428 int ahd_suspend(struct ahd_softc *ahd);
1429 int ahd_resume(struct ahd_softc *ahd);
1433 struct scb *ahd_get_scb(struct ahd_softc *ahd, u_int col_idx);
1434 void ahd_free_scb(struct ahd_softc *ahd, struct scb *scb);
1435 int ahd_alloc_scbs(struct ahd_softc *ahd);
1436 void ahd_free(struct ahd_softc *ahd);
1437 int ahd_reset(struct ahd_softc *ahd, int reinit);
1439 int ahd_write_flexport(struct ahd_softc *ahd,
1441 int ahd_read_flexport(struct ahd_softc *ahd, u_int addr,
1443 int ahd_wait_flexport(struct ahd_softc *ahd);
1446 void ahd_pci_intr(struct ahd_softc *ahd);
1447 void ahd_clear_intstat(struct ahd_softc *ahd);
1448 void ahd_flush_qoutfifo(struct ahd_softc *ahd);
1449 void ahd_run_qoutfifo(struct ahd_softc *ahd);
1451 void ahd_run_tqinfifo(struct ahd_softc *ahd, int paused);
1453 void ahd_handle_hwerrint(struct ahd_softc *ahd);
1454 void ahd_handle_seqint(struct ahd_softc *ahd, u_int intstat);
1455 void ahd_handle_scsiint(struct ahd_softc *ahd,
1457 void ahd_clear_critical_section(struct ahd_softc *ahd);
1466 void ahd_done_with_status(struct ahd_softc *ahd,
1468 int ahd_search_qinfifo(struct ahd_softc *ahd, int target,
1472 int ahd_search_disc_list(struct ahd_softc *ahd, int target,
1476 void ahd_freeze_devq(struct ahd_softc *ahd, struct scb *scb);
1477 int ahd_reset_channel(struct ahd_softc *ahd, char channel,
1479 int ahd_abort_scbs(struct ahd_softc *ahd, int target,
1482 void ahd_restart(struct ahd_softc *ahd);
1483 void ahd_clear_fifo(struct ahd_softc *ahd, u_int fifo);
1484 void ahd_handle_scb_status(struct ahd_softc *ahd,
1486 void ahd_handle_scsi_status(struct ahd_softc *ahd,
1488 void ahd_calc_residual(struct ahd_softc *ahd,
1491 void ahd_recover_commands(struct ahd_softc *ahd);
1500 void ahd_find_syncrate(struct ahd_softc *ahd, u_int *period,
1502 void ahd_validate_offset(struct ahd_softc *ahd,
1506 void ahd_validate_width(struct ahd_softc *ahd,
1524 void ahd_set_width(struct ahd_softc *ahd,
1527 void ahd_set_syncrate(struct ahd_softc *ahd,
1538 void ahd_set_tags(struct ahd_softc *ahd,
1546 void ahd_handle_en_lun(struct ahd_softc *ahd,
1548 cam_status ahd_find_tmode_devs(struct ahd_softc *ahd,
1580 void ahd_print_devinfo(struct ahd_softc *ahd,
1584 void ahd_dump_card_state(struct ahd_softc *ahd);
1592 void ahd_dump_scbs(struct ahd_softc *ahd);