/freebsd-11-stable/sys/dev/sn/ |
H A D | if_snvar.h | 44 struct resource *port_res; member in struct:sn_softc 58 #define CSR_READ_1(sc, off) (bus_read_1((sc)->port_res, off)) 59 #define CSR_READ_2(sc, off) (bus_read_2((sc)->port_res, off)) 61 bus_write_1((sc)->port_res, off, val) 63 bus_write_2((sc)->port_res, off, val) 65 bus_write_multi_1((sc)->port_res, off, addr, count) 67 bus_write_multi_2((sc)->port_res, off, addr, count) 69 bus_read_multi_1((sc)->port_res, off, addr, count) 71 bus_read_multi_2((sc)->port_res, off, addr, count)
|
H A D | if_sn_pccard.c | 246 sc->modem_res = sc->port_res; 255 sc->port_res = NULL; 260 sc->port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, 262 if (sc->port_res == NULL) 264 if (!(rman_get_start(sc->port_res) & 0x80)) 266 start = rman_get_start(sc->port_res) + SMC_IO_EXTENT; 268 sc->port_res); 270 if (sc->port_res == NULL) {
|
/freebsd-11-stable/sys/dev/nsp/ |
H A D | nsp.c | 207 ph = nsp_cr_read_1(sc->port_res, NSPR_SCBUSMON); 211 isrc = bus_read_1(sc->port_res, nsp_irqsr); 231 bus_write_1(sc->port_res, nsp_irqcr, IRQCR_ALLMASK); 234 bus_write_1(sc->port_res, nsp_ifselr, IFSELR_IFSEL); 236 nsp_cr_write_1(sc->port_res, NSPR_SCIENR, 0); 238 nsp_cr_write_1(sc->port_res, NSPR_XFERMR, XFERMR_IO8); 239 nsp_cr_write_1(sc->port_res, NSPR_CLKDIVR, sc->sc_iclkdiv); 241 nsp_cr_write_1(sc->port_res, NSPR_SCIENR, sc->sc_icr); 242 nsp_cr_write_1(sc->port_res, NSPR_PARITYR, sc->sc_parr); 243 nsp_cr_write_1(sc->port_res, NSPR_PTCLR [all...] |
H A D | nspvar.h | 49 struct resource *port_res; member in struct:nsp_softc
|
H A D | nsp_pccard.c | 102 if (sc->port_res) 104 sc->port_rid, sc->port_res); 127 sc->port_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, 130 if (sc->port_res == NULL) { 254 rv = nspprobesubr(sc->port_res,
|
/freebsd-11-stable/sys/dev/cm/ |
H A D | smc90cx6var.h | 56 struct resource *port_res; /* resource for port range */ member in struct:cm_softc 96 bus_space_read_1(rman_get_bustag((sc)->port_res), \ 97 rman_get_bushandle((sc)->port_res), \ 100 bus_space_write_1(rman_get_bustag((sc)->port_res), \ 101 rman_get_bushandle((sc)->port_res), \
|
H A D | if_cm_isa.c | 66 sc->port_res = bus_alloc_resource_anywhere( 68 if (sc->port_res == NULL)
|
/freebsd-11-stable/sys/dev/stg/ |
H A D | tmc18c30.c | 173 bus_write_1(sc->port_res, tmc_bctl, bcv); 185 lsb = bus_read_1(sc->port_res, tmc_idlsb); 186 msb = bus_read_1(sc->port_res, tmc_idmsb); 195 if (bus_read_1(sc->port_res, tmc_cfg2) & 0x02) 237 bus_write_1(sc->port_res, tmc_ictl, 0); 239 bus_write_1(sc->port_res, tmc_fctl, 241 bus_write_1(sc->port_res, tmc_fctl, sc->sc_fcRinit); 242 bus_write_1(sc->port_res, tmc_ictl, sc->sc_icinit); 244 bus_write_1(sc->port_res, tmc_ssctl, 0); 275 bus_write_1(sc->port_res, tmc_bct [all...] |
H A D | tmc18c30var.h | 50 struct resource *port_res; member in struct:stg_softc
|
H A D | tmc18c30_subr.c | 72 sc->port_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, 74 if (sc->port_res == NULL) { 112 if (sc->port_res) 114 sc->port_rid, sc->port_res); 130 rv = stgprobesubr(sc->port_res,
|
/freebsd-11-stable/sys/dev/xe/ |
H A D | if_xevar.h | 51 struct resource *port_res; member in struct:xe_softc 79 #define XE_INB(r) bus_read_1(scp->port_res, (r)) 80 #define XE_INW(r) bus_read_2(scp->port_res, (r)) 81 #define XE_OUTB(r, b) bus_write_1(scp->port_res, (r), (b)) 82 #define XE_OUTW(r, w) bus_write_2(scp->port_res, (r), (w))
|
H A D | if_xe.c | 819 bus_read_multi_2(scp->port_res, XE_EDP, 822 bus_read_multi_2(scp->port_res, XE_EDP, 1610 bus_write_multi_2(scp->port_res, XE_EDP, 1969 sc->port_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, 1979 sc->port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, 1981 if (sc->port_res == NULL) 1983 if ((rman_get_start(sc->port_res) & 0xf) == 0) 1986 sc->port_res); 1987 start = (rman_get_start(sc->port_res) + 15) & ~0xf; 2017 sc->port_res [all...] |
/freebsd-11-stable/sys/dev/fe/ |
H A D | if_fevar.h | 78 struct resource * port_res; member in struct:fe_softc 156 bus_read_1((sc)->port_res, (port)) 159 bus_write_1((sc)->port_res, (port), (value)) 162 bus_read_2((sc)->port_res, (port)) 165 bus_write_2((sc)->port_res, (port), (value)) 168 bus_read_multi_1((sc)->port_res, (port), (addr), (count)) 171 bus_write_multi_1((sc)->port_res, (port), (addr), (count)) 174 bus_read_multi_2((sc)->port_res, (port), (addr), (count)) 177 bus_write_multi_2((sc)->port_res, (port), (addr), (count)) 180 bus_read_region_1((sc)->port_res, (por [all...] |
/freebsd-11-stable/sys/pc98/cbus/ |
H A D | pmc.c | 50 struct resource *port_res; member in struct:pmc_isa_softc 65 bus_space_read_2(rman_get_bustag((sc)->port_res), \ 66 rman_get_bushandle((sc)->port_res), (port)) 69 bus_space_write_2(rman_get_bustag((sc)->port_res), \ 70 rman_get_bushandle((sc)->port_res), (port), (value)) 103 sc->port_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, 105 if (sc->port_res == NULL) { 117 if (sc->port_res != NULL) { 118 bus_release_resource(dev, SYS_RES_IOPORT, 0, sc->port_res); 120 sc->port_res [all...] |
/freebsd-11-stable/sys/dev/ncv/ |
H A D | ncr53c500var.h | 49 struct resource *port_res; member in struct:ncv_softc
|
H A D | ncr53c500_pccard.c | 118 if (sc->port_res) { 120 sc->port_rid, sc->port_res); 159 sc->port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->port_rid, 162 if (sc->port_res == NULL) { 314 rv = ncvprobesubr(sc->port_res,
|
H A D | ncr53c500.c | 300 struct resource *res = sc->port_res; 338 bus_write_1(sc->port_res, cr0_cmd, CMD_SETATN); 347 ncvhw_select_register_0(sc->port_res, &sc->sc_hw); 348 bus_write_1(sc->port_res, cr0_cmd, CMD_FLUSH); 349 bus_write_1(sc->port_res, cr0_cmd, CMD_RSTSCSI); 350 bus_write_1(sc->port_res, cr0_cmd, CMD_NOP | CMD_DMA); 359 struct resource *res = sc->port_res; 420 struct resource *res = sc->port_res; 451 struct resource *res = sc->port_res; 595 struct resource *res = sc->port_res; [all...] |
/freebsd-11-stable/sys/dev/ed/ |
H A D | if_ed_3c503.c | 92 if (rman_get_start(sc->port_res) != 0x300) 96 if (rman_get_start(sc->port_res) != 0x310) 100 if (rman_get_start(sc->port_res) != 0x330) 104 if (rman_get_start(sc->port_res) != 0x350) 108 if (rman_get_start(sc->port_res) != 0x250) 112 if (rman_get_start(sc->port_res) != 0x280) 116 if (rman_get_start(sc->port_res) != 0x2a0) 120 if (rman_get_start(sc->port_res) != 0x2e0)
|
H A D | if_ed_cbus.c | 544 sc->port_res = res; 933 tmp = (rman_get_start(sc->port_res) & 0xf000) >> 8; 1021 if (((rman_get_start(sc->port_res) & 0x0fff) != 0x03d0) 1022 || ((rman_get_start(sc->port_res) & 0xf000) < (u_short) 0xa000)) { 1025 "must be %s for %s\n", rman_get_start(sc->port_res), 1041 tmp = rman_get_start(sc->port_res) >> 12; 1045 rman_get_start(sc->port_res), 1170 if ((rman_get_start(sc->port_res) & 0x0fff) != 0x03d0) { 1173 "must be %s for %s\n", rman_get_start(sc->port_res), 1440 if ((rman_get_start(sc->port_res) [all...] |
/freebsd-11-stable/sys/dev/cs/ |
H A D | if_csvar.h | 50 struct resource* port_res; /* resource for port range */ member in struct:cs_softc
|
/freebsd-11-stable/sys/dev/ct/ |
H A D | ct_isa.c | 114 struct resource *port_res, *mem_res; local 136 if (ct_space_map(dev, hw, &port_res, &mem_res) != 0) 140 ch.ch_io = port_res; 156 bus_release_resource(dev, SYS_RES_IOPORT, 0, port_res); 179 if (ct_space_map(dev, hw, &ct->port_res, &ct->mem_res) != 0) { 184 chp->ch_io = ct->port_res; 343 if (ct->port_res != NULL) 344 bus_release_resource(dev, SYS_RES_IOPORT, 0, ct->port_res);
|
H A D | ctvar.h | 62 struct resource *port_res; member in struct:ct_softc
|
/freebsd-11-stable/sys/dev/fb/ |
H A D | s3_pci.c | 89 struct resource *port_res; member in struct:s3pci_softc 481 if (!(sc->port_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, 486 sc->st = rman_get_bustag(sc->port_res); 487 sc->sh = rman_get_bushandle(sc->port_res); 546 if (sc->port_res) 547 bus_release_resource(dev, SYS_RES_IOPORT, 0, sc->port_res);
|
/freebsd-11-stable/sys/dev/an/ |
H A D | if_anreg.h | 48 #define CSR_WRITE_2(sc, reg, val) bus_write_2(sc->port_res, reg, val) 50 #define CSR_READ_2(sc, reg) bus_read_2(sc->port_res, reg) 52 #define CSR_WRITE_1(sc, reg, val) bus_write_1(sc->port_res, reg, val) 54 #define CSR_READ_1(sc, reg) bus_read_1(sc->port_res, reg) 443 struct resource* port_res; /* resource for port range */ member in struct:an_softc
|
/freebsd-11-stable/sys/x86/isa/ |
H A D | clock.c | 111 struct resource *port_res; member in struct:attimer_softc 622 sc->port_res = isa_alloc_resourcev(dev, SYS_RES_IOPORT, 624 if (sc->port_res == NULL) 627 isa_load_resourcev(sc->port_res, iat1, 4); 646 if (sc->port_res) 648 sc->port_res); 686 if (!(sc->port_res = bus_alloc_resource(dev, SYS_RES_IOPORT,
|