Lines Matching refs:ahd
78 #define SIM_IS_SCSIBUS_B(ahd, sim) \
80 #define SIM_CHANNEL(ahd, sim) \
82 #define SIM_SCSI_ID(ahd, sim) \
83 (ahd->our_id)
84 #define SIM_PATH(ahd, sim) \
85 (ahd->platform_data->path)
86 #define BUILD_SCSIID(ahd, sim, target_id, our_id) \
90 #define SCB_GET_SIM(ahd, scb) \
91 ((ahd)->platform_data->sim)
100 #define ahd_dma_tag_create(ahd, parent_tag, alignment, boundary, \
109 #define ahd_dma_tag_destroy(ahd, tag) \
112 #define ahd_dmamem_alloc(ahd, dmat, vaddr, flags, mapp) \
115 #define ahd_dmamem_free(ahd, dmat, vaddr, map) \
118 #define ahd_dmamap_create(ahd, tag, flags, mapp) \
121 #define ahd_dmamap_destroy(ahd, tag, map) \
124 #define ahd_dmamap_load(ahd, dmat, map, addr, buflen, callback, \
128 #define ahd_dmamap_unload(ahd, tag, map) \
132 #define ahd_dmamap_sync(ahd, dma_tag, dmamap, offset, len, op) \
209 #define ahd_inb(ahd, port) \
210 bus_space_read_1((ahd)->tags[(port) >> 8], \
211 (ahd)->bshs[(port) >> 8], (port) & 0xFF)
213 #define ahd_outb(ahd, port, value) \
214 bus_space_write_1((ahd)->tags[(port) >> 8], \
215 (ahd)->bshs[(port) >> 8], (port) & 0xFF, value)
217 #define ahd_inw_atomic(ahd, port) \
218 ahd_le16toh(bus_space_read_2((ahd)->tags[(port) >> 8], \
219 (ahd)->bshs[(port) >> 8], (port) & 0xFF))
221 #define ahd_outw_atomic(ahd, port, value) \
222 bus_space_write_2((ahd)->tags[(port) >> 8], \
223 (ahd)->bshs[(port) >> 8], \
226 #define ahd_outsb(ahd, port, valp, count) \
227 bus_space_write_multi_1((ahd)->tags[(port) >> 8], \
228 (ahd)->bshs[(port) >> 8], \
231 #define ahd_insb(ahd, port, valp, count) \
232 bus_space_read_multi_1((ahd)->tags[(port) >> 8], \
233 (ahd)->bshs[(port) >> 8], \
239 ahd_flush_device_writes(struct ahd_softc *ahd)
242 ahd_inb(ahd, INTSTAT);
256 /* Lock held during ahd_list manipulation and ahd softc frees */
262 ahd_lockinit(struct ahd_softc *ahd)
267 ahd_lock(struct ahd_softc *ahd, int *flags)
273 ahd_unlock(struct ahd_softc *ahd, int *flags)
280 ahd_done_lockinit(struct ahd_softc *ahd)
285 ahd_done_lock(struct ahd_softc *ahd, unsigned long *flags)
290 ahd_done_unlock(struct ahd_softc *ahd, unsigned long *flags)
294 /* Lock held during ahd_list manipulation and ahd softc frees */
408 ahd_get_sense_bufsize(struct ahd_softc *ahd, struct scb *scb)
414 ahd_freeze_simq(struct ahd_softc *ahd)
420 ahd_release_simq(struct ahd_softc *ahd)
437 ahd_platform_freeze_devq(struct ahd_softc *ahd, struct scb *scb)
443 ahd_platform_abort_scbs(struct ahd_softc *ahd, int target,
452 ahd_platform_scb_free(struct ahd_softc *ahd, struct scb *scb)
456 if ((ahd->flags & AHD_RESOURCE_SHORTAGE) != 0
460 ahd->flags &= ~AHD_RESOURCE_SHORTAGE;
528 ahd_print_path(struct ahd_softc *ahd, struct scb *scb)
530 printf("%s:", device_xname(ahd->sc_dev));
534 ahd_platform_dump_card_state(struct ahd_softc *ahd)
558 ahd_platform_flushwork(struct ahd_softc *ahd)