Lines Matching defs:ahd

82 #define	SIM_IS_SCSIBUS_B(ahd, sim)	\
84 #define SIM_CHANNEL(ahd, sim) \
86 #define SIM_SCSI_ID(ahd, sim) \
87 (ahd->our_id)
88 #define SIM_PATH(ahd, sim) \
89 (ahd->platform_data->path)
90 #define BUILD_SCSIID(ahd, sim, target_id, our_id) \
94 #define SCB_GET_SIM(ahd, scb) \
95 ((ahd)->platform_data->sim)
152 #define AIC_LIB_PREFIX ahd
157 #define ahd_inb(ahd, port) \
158 bus_space_read_1((ahd)->tags[(port) >> 8], \
159 (ahd)->bshs[(port) >> 8], (port) & 0xFF)
161 #define ahd_outb(ahd, port, value) \
162 bus_space_write_1((ahd)->tags[(port) >> 8], \
163 (ahd)->bshs[(port) >> 8], (port) & 0xFF, value)
165 #define ahd_inw_atomic(ahd, port) \
166 aic_le16toh(bus_space_read_2((ahd)->tags[(port) >> 8], \
167 (ahd)->bshs[(port) >> 8], (port) & 0xFF))
169 #define ahd_outw_atomic(ahd, port, value) \
170 bus_space_write_2((ahd)->tags[(port) >> 8], \
171 (ahd)->bshs[(port) >> 8], \
174 #define ahd_outsb(ahd, port, valp, count) \
175 bus_space_write_multi_1((ahd)->tags[(port) >> 8], \
176 (ahd)->bshs[(port) >> 8], \
179 #define ahd_insb(ahd, port, valp, count) \
180 bus_space_read_multi_1((ahd)->tags[(port) >> 8], \
181 (ahd)->bshs[(port) >> 8], \
187 ahd_flush_device_writes(struct ahd_softc *ahd)
190 ahd_inb(ahd, INTSTAT);
200 ahd_lockinit(struct ahd_softc *ahd)
202 mtx_init(&ahd->platform_data->mtx, "ahd_lock", NULL, MTX_DEF);
206 ahd_lock(struct ahd_softc *ahd)
208 mtx_lock(&ahd->platform_data->mtx);
212 ahd_unlock(struct ahd_softc *ahd)
214 mtx_unlock(&ahd->platform_data->mtx);
218 int ahd_pci_map_registers(struct ahd_softc *ahd);
219 int ahd_pci_map_int(struct ahd_softc *ahd);
238 static __inline void ahd_platform_dump_card_state(struct ahd_softc *ahd);
241 ahd_print_path(struct ahd_softc *ahd, struct scb *scb)
247 ahd_platform_dump_card_state(struct ahd_softc *ahd)
258 int ahd_platform_alloc(struct ahd_softc *ahd, void *platform_arg);
259 void ahd_platform_free(struct ahd_softc *ahd);
260 int ahd_map_int(struct ahd_softc *ahd);
263 void ahd_sysctl(struct ahd_softc *ahd);
270 static __inline void ahd_platform_flushwork(struct ahd_softc *ahd);
272 ahd_platform_flushwork(struct ahd_softc *ahd)
277 void ahd_done(struct ahd_softc *ahd, struct scb *scb);