Home
last modified time | relevance | path

Searched refs:sc_ioport (Results 1 – 4 of 4) sorted by relevance

/freebsd-head/sys/dev/asmc/
HDasmcvar.h46 struct resource *sc_ioport; member
58 #define ASMC_DATAPORT_READ(sc) bus_read_1(sc->sc_ioport, 0x00)
60 bus_write_1(sc->sc_ioport, 0x00, val)
66 #define ASMC_CMDPORT_READ(sc) bus_read_1(sc->sc_ioport, 0x04)
68 bus_write_1(sc->sc_ioport, 0x04, val)
75 #define ASMC_INTPORT_READ(sc) bus_read_1(sc->sc_ioport, 0x1f)
HDasmc.c585 sc->sc_ioport = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in asmc_attach()
587 if (sc->sc_ioport == NULL) { in asmc_attach()
783 sc->sc_ioport); in asmc_attach()
805 if (sc->sc_ioport) in asmc_detach()
807 sc->sc_ioport); in asmc_detach()
/freebsd-head/sys/dev/puc/
HDpuc.c115 rm = (bar->b_type == SYS_RES_IOPORT) ? &sc->sc_ioport : &sc->sc_iomem; in puc_get_bar()
230 sc->sc_ioport.rm_type = RMAN_ARRAY; in puc_bfe_attach()
231 error = rman_init(&sc->sc_ioport); in puc_bfe_attach()
242 rman_fini(&sc->sc_ioport); in puc_bfe_attach()
249 sc->sc_ioport.rm_descr = strdup(buffer, M_PUC); in puc_bfe_attach()
297 ? &sc->sc_ioport: &sc->sc_iomem; in puc_bfe_attach()
394 rman_fini(&sc->sc_ioport); in puc_bfe_attach()
395 free(__DECONST(void *, sc->sc_ioport.rm_descr), M_PUC); in puc_bfe_attach()
440 rman_fini(&sc->sc_ioport); in puc_bfe_detach()
441 free(__DECONST(void *, sc->sc_ioport.rm_descr), M_PUC); in puc_bfe_detach()
HDpuc_bfe.h54 struct rman sc_ioport; member