Searched refs:sc_ioport (Results 1 – 4 of 4) sorted by relevance
/freebsd/sys/dev/asmc/ |
H A D | asmcvar.h | 46 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)
|
H A D | asmc.c | 567 sc->sc_ioport = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in asmc_attach() 569 if (sc->sc_ioport == NULL) { in asmc_attach() 765 sc->sc_ioport); in asmc_attach() 787 if (sc->sc_ioport) in asmc_detach() 789 sc->sc_ioport); in asmc_detach()
|
/freebsd/sys/dev/puc/ |
H A D | puc.c | 115 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()
|
H A D | puc_bfe.h | 54 struct rman sc_ioport; member
|