Lines Matching refs:bsh

143 	bus_space_handle_t bsh = sc->sc_bsh;  in egoutPCB()  local
147 if (bus_space_read_1(bst, bsh, EG_STATUS) & EG_STAT_HCRE) { in egoutPCB()
148 bus_space_write_1(bst, bsh, EG_COMMAND, b); in egoutPCB()
161 bus_space_handle_t bsh = sc->sc_bsh; in egreadPCBstat() local
165 if ((bus_space_read_1(bst, bsh, EG_STATUS) & EG_PCB_STAT) != in egreadPCBstat()
170 if ((bus_space_read_1(bst, bsh, EG_STATUS) & EG_PCB_STAT) == statb) in egreadPCBstat()
179 bus_space_handle_t bsh = sc->sc_bsh; in egreadPCBready() local
183 if (bus_space_read_1(bst, bsh, EG_STATUS) & EG_STAT_ACRF) in egreadPCBready()
188 bus_space_read_1(bst, bsh, EG_STATUS))); in egreadPCBready()
196 bus_space_handle_t bsh = sc->sc_bsh; in egwritePCB() local
200 bus_space_write_1(bst, bsh, EG_CONTROL, in egwritePCB()
201 (bus_space_read_1(bst, bsh, EG_CONTROL) & ~EG_PCB_STAT) | in egwritePCB()
209 if (bus_space_read_1(bst, bsh, EG_STATUS) & EG_STAT_HCRE) in egwritePCB()
214 bus_space_write_1(bst, bsh, EG_CONTROL, in egwritePCB()
215 (bus_space_read_1(bst, bsh, EG_CONTROL) & ~EG_PCB_STAT) | in egwritePCB()
229 bus_space_handle_t bsh = sc->sc_bsh; in egreadPCB() local
233 bus_space_write_1(bst, bsh, EG_CONTROL, in egreadPCB()
234 (bus_space_read_1(bst, bsh, EG_CONTROL) & ~EG_PCB_STAT) | in egreadPCB()
242 sc->eg_pcb[0] = bus_space_read_1(bst, bsh, EG_COMMAND); in egreadPCB()
247 sc->eg_pcb[1] = bus_space_read_1(bst, bsh, EG_COMMAND); in egreadPCB()
257 sc->eg_pcb[2+i] = bus_space_read_1(bst, bsh, EG_COMMAND); in egreadPCB()
263 if ((b = bus_space_read_1(bst, bsh, EG_COMMAND)) != sc->eg_pcb[1] + 2) { in egreadPCB()
268 bus_space_write_1(bst, bsh, EG_CONTROL, in egreadPCB()
269 (bus_space_read_1(bst, bsh, EG_CONTROL) & ~EG_PCB_STAT) | in egreadPCB()
285 bus_space_handle_t bsh; in egprobe() local
293 if (bus_space_map(bst, ia->ia_iobase, EG_IO_PORTS, 0, &bsh)) { in egprobe()
297 sc->sc_bsh = bsh; in egprobe()
300 bus_space_write_1(bst, bsh, EG_CONTROL, EG_CTL_RESET); in egprobe()
301 bus_space_write_1(bst, bsh, EG_CONTROL, 0); in egprobe()
304 if ((bus_space_read_1(bst, bsh, EG_STATUS) & EG_PCB_STAT) == in egprobe()
308 if ((bus_space_read_1(bst, bsh, EG_STATUS) & EG_PCB_STAT) != in egprobe()
334 bus_space_unmap(bst, bsh, EG_IO_PORTS); in egprobe()
338 bus_space_unmap(bst, bsh, EG_IO_PORTS); in egprobe()
348 bus_space_handle_t bsh; in egattach() local
351 if (bus_space_map(bst, ia->ia_iobase, EG_IO_PORTS, 0, &bsh)) { in egattach()
355 sc->sc_bsh = bsh; in egattach()
420 bus_space_handle_t bsh = sc->sc_bsh; in eginit() local
424 bus_space_write_1(bst, bsh, EG_CONTROL, EG_CTL_FLSH); in eginit()
426 bus_space_write_1(bst, bsh, EG_CONTROL, EG_CTL_ATTN); in eginit()
428 bus_space_write_1(bst, bsh, EG_CONTROL, 0); in eginit()
452 bus_space_write_1(bst, bsh, EG_CONTROL, EG_CTL_CMDE); in eginit()
490 bus_space_handle_t bsh = sc->sc_bsh; in egstart() local
544 bus_space_write_1(bst, bsh, EG_CONTROL, in egstart()
545 bus_space_read_1(bst, bsh, EG_CONTROL) & ~EG_CTL_DIR); in egstart()
548 bus_space_write_2(bst, bsh, EG_DATA, *ptr++); in egstart()
550 if (bus_space_read_1(bst, bsh, EG_STATUS) & EG_STAT_HRDY) in egstart()
568 bus_space_handle_t bsh = sc->sc_bsh; in egintr() local
573 while (bus_space_read_1(bst, bsh, EG_STATUS) & EG_STAT_ACRF) { in egintr()
581 bus_space_write_1(bst, bsh, EG_CONTROL, in egintr()
582 bus_space_read_1(bst, bsh, EG_CONTROL) | in egintr()
587 if (bus_space_read_1(bst, bsh, EG_STATUS) & EG_STAT_HRDY) in egintr()
596 *ptr++ = bus_space_read_2(bst, bsh, EG_DATA); in egintr()
794 bus_space_handle_t bsh = sc->sc_bsh; in egstop() local
796 bus_space_write_1(bst, bsh, EG_CONTROL, 0); in egstop()