| /NextBSD/sys/dev/ata/ |
| HD | ata-isa.c | 72 if (!(io = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, in ata_isa_probe() 77 if (bus_get_resource(dev, SYS_RES_IOPORT, ATA_CTLADDR_RID, &tmp, &tmp)) { in ata_isa_probe() 78 bus_set_resource(dev, SYS_RES_IOPORT, ATA_CTLADDR_RID, in ata_isa_probe() 84 if (!(ctlio = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, in ata_isa_probe() 86 bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, io); in ata_isa_probe() 91 bus_release_resource(dev, SYS_RES_IOPORT, ATA_CTLADDR_RID, ctlio); in ata_isa_probe() 92 bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, io); in ata_isa_probe() 112 if (!(io = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, in ata_isa_attach() 117 if (bus_get_resource(dev, SYS_RES_IOPORT, ATA_CTLADDR_RID, &tmp, &tmp)) { in ata_isa_attach() 118 bus_set_resource(dev, SYS_RES_IOPORT, ATA_CTLADDR_RID, in ata_isa_attach() [all …]
|
| HD | ata-cbus.c | 78 if (!(io = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, in ata_cbus_probe() 84 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &tmp, &tmp)) { in ata_cbus_probe() 85 bus_set_resource(dev, SYS_RES_IOPORT, rid, in ata_cbus_probe() 91 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &tmp, &tmp)) { in ata_cbus_probe() 92 bus_set_resource(dev, SYS_RES_IOPORT, rid, in ata_cbus_probe() 96 bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, io); in ata_cbus_probe() 109 if (!(ctlr->io = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, in ata_cbus_attach() 115 bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, in ata_cbus_attach() 118 bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, ctlr->io); in ata_cbus_attach() 123 if (!(ctlr->bankio = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, in ata_cbus_attach() [all …]
|
| HD | ata-card.c | 101 if (!(io = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, in ata_pccard_attach() 122 if (!(ctlio = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, in ata_pccard_attach() 124 bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, io); in ata_pccard_attach() 160 bus_release_resource(dev, SYS_RES_IOPORT, ATA_CTLADDR_RID, in ata_pccard_detach() 162 bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, in ata_pccard_detach()
|
| HD | ata-pci.c | 106 ctlr->r_type1 = SYS_RES_IOPORT; in ata_pci_attach() 229 if (type == SYS_RES_IOPORT) { in ata_pci_alloc_resource() 239 SYS_RES_IOPORT, &myrid, in ata_pci_alloc_resource() 251 SYS_RES_IOPORT, &myrid, in ata_pci_alloc_resource() 287 if (type == SYS_RES_IOPORT) { in ata_pci_release_resource() 291 SYS_RES_IOPORT, in ata_pci_release_resource() 295 SYS_RES_IOPORT, in ata_pci_release_resource() 401 if (!(io = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE))) in ata_pci_ch_attach() 405 if (!(ctlio = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid,RF_ACTIVE))){ in ata_pci_ch_attach() 406 bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, io); in ata_pci_ch_attach() [all …]
|
| /NextBSD/sys/dev/atkbdc/ |
| HD | atkbdc_isa.c | 130 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count) != 0) in atkbdc_isa_probe() 137 bus_set_resource(dev, SYS_RES_IOPORT, rid, start, 1); in atkbdc_isa_probe() 138 port0 = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in atkbdc_isa_probe() 142 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, NULL, NULL) != 0) in atkbdc_isa_probe() 143 bus_set_resource(dev, SYS_RES_IOPORT, 1, in atkbdc_isa_probe() 145 port1 = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in atkbdc_isa_probe() 147 bus_release_resource(dev, SYS_RES_IOPORT, 0, port0); in atkbdc_isa_probe() 169 bus_release_resource(dev, SYS_RES_IOPORT, 0, port0); in atkbdc_isa_probe() 170 bus_release_resource(dev, SYS_RES_IOPORT, 1, port1); in atkbdc_isa_probe() 181 bus_release_resource(dev, SYS_RES_IOPORT, 0, port0); in atkbdc_isa_probe() [all …]
|
| /NextBSD/sys/dev/advansys/ |
| HD | adv_isa.c | 130 if (bus_get_resource(dev, SYS_RES_IOPORT, 0, &iobase, &iocount) == 0) { in adv_isa_probe() 164 if (bus_set_resource(dev, SYS_RES_IOPORT, 0, port_addr, 1)) in adv_isa_probe() 168 iores = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, in adv_isa_probe() 174 bus_release_resource(dev, SYS_RES_IOPORT, 0, iores); in adv_isa_probe() 184 bus_release_resource(dev, SYS_RES_IOPORT, 0, iores); in adv_isa_probe() 248 bus_release_resource(dev, SYS_RES_IOPORT, 0, iores); in adv_isa_probe() 272 bus_release_resource(dev, SYS_RES_IOPORT, 0, in adv_isa_probe() 282 bus_release_resource(dev, SYS_RES_IOPORT, 0, in adv_isa_probe() 301 bus_release_resource(dev, SYS_RES_IOPORT, 0, iores); in adv_isa_probe() 347 bus_release_resource(dev, SYS_RES_IOPORT, 0, iores); in adv_isa_probe() [all …]
|
| HD | adv_pci.c | 160 iores = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, in adv_pci_attach() 166 bus_release_resource(dev, SYS_RES_IOPORT, rid, iores); in adv_pci_attach() 172 bus_release_resource(dev, SYS_RES_IOPORT, rid, iores); in adv_pci_attach() 197 bus_release_resource(dev, SYS_RES_IOPORT, rid, iores); in adv_pci_attach() 222 bus_release_resource(dev, SYS_RES_IOPORT, rid, iores); in adv_pci_attach() 232 bus_release_resource(dev, SYS_RES_IOPORT, rid, iores); in adv_pci_attach() 270 bus_release_resource(dev, SYS_RES_IOPORT, rid, iores); in adv_pci_attach() 303 bus_release_resource(dev, SYS_RES_IOPORT, rid, iores); in adv_pci_attach() 311 bus_release_resource(dev, SYS_RES_IOPORT, rid, iores); in adv_pci_attach()
|
| /NextBSD/sys/dev/aha/ |
| HD | aha_isa.c | 123 aha->port = bus_alloc_resource(dev, SYS_RES_IOPORT, &port_rid, in aha_isa_probe() 135 bus_release_resource(dev, SYS_RES_IOPORT, port_rid, aha->port); in aha_isa_probe() 151 bus_release_resource(dev, SYS_RES_IOPORT, port_rid, in aha_isa_probe() 156 bus_release_resource(dev, SYS_RES_IOPORT, port_rid, aha->port); in aha_isa_probe() 194 aha->port = bus_alloc_resource(dev, SYS_RES_IOPORT, &aha->portrid, in aha_isa_attach() 274 bus_free_resource(dev, SYS_RES_IOPORT, aha->port); in aha_isa_attach() 296 bus_free_resource(dev, SYS_RES_IOPORT, aha->port); in aha_isa_detach() 324 aha.port = bus_alloc_resource(parent, SYS_RES_IOPORT, &rid, in aha_isa_identify() 333 bus_set_resource(child, SYS_RES_IOPORT, 0, ioport, AHA_NREGS); in aha_isa_identify() 339 bus_release_resource(parent, SYS_RES_IOPORT, rid, aha.port); in aha_isa_identify()
|
| /NextBSD/sys/dev/sound/isa/ |
| HD | gusc.c | 189 res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, base + 0x100, in gusisa_probe() 238 res2 = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid2, base, base, 1, in gusisa_probe() 257 bus_release_resource(dev, SYS_RES_IOPORT, rid2, res2); in gusisa_probe() 258 bus_release_resource(dev, SYS_RES_IOPORT, rid, res); in gusisa_probe() 265 bus_set_resource(dev, SYS_RES_IOPORT, 2, base + 0x10c, 8); in gusisa_probe() 300 bus_release_resource(dev, SYS_RES_IOPORT, rid, res); in gusisa_probe() 361 case SYS_RES_IOPORT: in gusc_alloc_resource() 399 case SYS_RES_IOPORT: in gusc_release_resource() 498 scp->io[i] = bus_alloc_resource(scp->dev, SYS_RES_IOPORT, &scp->io_rid[i], in alloc_resource() 501 scp->io[i] = bus_alloc_resource(scp->dev, SYS_RES_IOPORT, &scp->io_rid[i], in alloc_resource() [all …]
|
| HD | mss.c | 297 bus_release_resource(dev, SYS_RES_IOPORT, mss->io_rid, in mss_release_resources() 302 bus_release_resource(dev, SYS_RES_IOPORT, mss->conf_rid, in mss_release_resources() 307 bus_release_resource(dev, SYS_RES_IOPORT, mss->indir_rid, in mss_release_resources() 325 mss->io_base = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in mss_alloc_resources() 335 mss->conf_base = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in mss_alloc_resources() 719 alt = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, in mss_init() 728 bus_release_resource(dev, SYS_RES_IOPORT, rid, alt); in mss_init() 1292 mss->io_base = bus_alloc_resource(dev, SYS_RES_IOPORT, &mss->io_rid, 1299 bus_set_resource(dev, SYS_RES_IOPORT, mss->io_rid, 1301 mss->io_base = bus_alloc_resource(dev, SYS_RES_IOPORT, &mss->io_rid, [all …]
|
| /NextBSD/sys/dev/aic7xxx/ |
| HD | ahc_isa.c | 96 regs = bus_alloc_resource(parent, SYS_RES_IOPORT, &rid, in ahc_isa_identify() 117 bus_set_resource(child, SYS_RES_IOPORT, in ahc_isa_identify() 121 bus_release_resource(parent, SYS_RES_IOPORT, rid, regs); in ahc_isa_identify() 149 regs = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &zero, RF_ACTIVE); in ahc_isa_probe() 204 bus_release_resource(dev, SYS_RES_IOPORT, zero, regs); in ahc_isa_probe() 229 regs = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &zero, RF_ACTIVE); in ahc_isa_attach() 236 bus_release_resource(dev, SYS_RES_IOPORT, zero, regs); in ahc_isa_attach()
|
| /NextBSD/sys/pc98/pc98/ |
| HD | canbus.c | 369 dev, SYS_RES_IOPORT, sc->index_id, CANBE_IOPORT_INDEX, 1); in set_ioresource() 371 dev, SYS_RES_IOPORT, sc->data_id, CANBE_IOPORT_DATA, 1); in set_ioresource() 382 bus_delete_resource(dev, SYS_RES_IOPORT, sc->index_id); in delete_ioresource() 383 bus_delete_resource(dev, SYS_RES_IOPORT, sc->data_id); in delete_ioresource() 395 dev, SYS_RES_IOPORT, &sc->index_id, RF_ACTIVE); in alloc_ioresource() 397 dev, SYS_RES_IOPORT, &sc->data_id, RF_ACTIVE); in alloc_ioresource() 419 bus_release_resource(dev, SYS_RES_IOPORT, sc->index_id, sc->index_res); in release_ioresource() 420 bus_release_resource(dev, SYS_RES_IOPORT, sc->data_id, sc->data_res); in release_ioresource() 435 retval += resource_list_print_type(rl, "port", SYS_RES_IOPORT, "%#lx"); in print_all_resources()
|
| /NextBSD/sys/dev/mse/ |
| HD | mse_cbus.c | 167 sc->sc_port = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid, mse_port, in mse_cbus_probe() 172 bus_release_resource(dev, SYS_RES_IOPORT, rid, sc->sc_port); in mse_cbus_probe() 188 bus_release_resource(dev, SYS_RES_IOPORT, rid, in mse_cbus_probe() 195 bus_release_resource(dev, SYS_RES_IOPORT, rid, sc->sc_port); in mse_cbus_probe() 208 sc->sc_port = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid, mse_port, in mse_cbus_attach() 213 bus_release_resource(dev, SYS_RES_IOPORT, rid, sc->sc_port); in mse_cbus_attach()
|
| /NextBSD/sys/dev/fdc/ |
| HD | fdc_cbus.c | 59 res = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid, fdc_iat, 3, in fdc_cbus_alloc_resources() 75 bus_set_resource(dev, SYS_RES_IOPORT, rid, IO_FDPORT, 1); in fdc_cbus_alloc_resources() 76 res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in fdc_cbus_alloc_resources() 88 bus_set_resource(dev, SYS_RES_IOPORT, rid, 0x4be, 1); in fdc_cbus_alloc_resources() 89 res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in fdc_cbus_alloc_resources()
|
| /NextBSD/sys/dev/ex/ |
| HD | if_ex_isa.c | 136 sc.ioport = bus_alloc_resource(parent, SYS_RES_IOPORT, &rid, in ex_isa_identify() 143 bus_release_resource(parent, SYS_RES_IOPORT, rid, in ex_isa_identify() 158 bus_release_resource(parent, SYS_RES_IOPORT, rid, in ex_isa_identify() 181 bus_release_resource(parent, SYS_RES_IOPORT, rid, sc.ioport); in ex_isa_identify() 186 bus_set_resource(child, SYS_RES_IOPORT, 0, ioport, EX_IOSIZE); in ex_isa_identify() 221 iobase = bus_get_resource_start(dev, SYS_RES_IOPORT, 0); in ex_isa_probe()
|
| /NextBSD/sys/dev/vx/ |
| HD | if_vx_eisa.c | 127 io = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in vx_eisa_attach() 133 eisa_io = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in vx_eisa_attach() 169 bus_release_resource(dev, SYS_RES_IOPORT, 0, io); in vx_eisa_attach() 171 bus_release_resource(dev, SYS_RES_IOPORT, 0, eisa_io); in vx_eisa_attach()
|
| /NextBSD/sys/dev/rp/ |
| HD | rp_isa.c | 160 if (bus_get_resource_count(dev, SYS_RES_IOPORT, 0) == 0) in rp_probe() 197 ctlp->io[0] = bus_alloc_resource(dev, SYS_RES_IOPORT, &ctlp->io_rid[0], 0, ~0, 0x40, RF_ACTIVE); in rp_probe() 200 ctlp->io[0] = bus_alloc_resource(dev, SYS_RES_IOPORT, &ctlp->io_rid[0], 0, ~0, 0x44, RF_ACTIVE); in rp_probe() 285 bus_release_resource(ctlp->dev, SYS_RES_IOPORT, ctlp->io_rid[i], ctlp->io[i]); in rp_isareleaseresource() 291 …bus_release_resource(rp_controller->dev, SYS_RES_IOPORT, rp_controller->io_rid[ISACTL(ctlp)->MBase… in rp_isareleaseresource() 386 …MudbacCtlP->io[ISACTL(CtlP)->MBaseIO] = bus_alloc_resource(MudbacCtlP->dev, SYS_RES_IOPORT, &CtlP-… in sInitController() 426 …CtlP->io[i] = bus_alloc_resource(CtlP->dev, SYS_RES_IOPORT, &CtlP->io_rid[i], aiop_base, aiop_base… in sInitController() 441 bus_release_resource(CtlP->dev, SYS_RES_IOPORT, CtlP->io_rid[i], CtlP->io[i]); in sInitController()
|
| /NextBSD/sys/dev/digi/ |
| HD | digi_isa.c | 245 if ((sc->port = bus_get_resource_start(dev, SYS_RES_IOPORT, 0)) == 0) { in digi_isa_probe() 280 sc->res.io = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->res.iorid, in digi_isa_probe() 287 bus_release_resource(dev, SYS_RES_IOPORT, sc->res.iorid, in digi_isa_probe() 298 bus_release_resource(dev, SYS_RES_IOPORT, sc->res.iorid, in digi_isa_probe() 307 bus_release_resource(dev, SYS_RES_IOPORT, sc->res.iorid, sc->res.io); in digi_isa_probe() 310 bus_set_resource(dev, SYS_RES_IOPORT, 0, sc->port, IO_SIZE); in digi_isa_probe() 338 bus_get_resource(dev, SYS_RES_IOPORT, 0, &scport, &iosize); in digi_isa_attach() 345 sc->res.io = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->res.iorid, in digi_isa_attach() 451 bus_release_resource(dev, SYS_RES_IOPORT, sc->res.iorid, in digi_isa_attach()
|
| /NextBSD/sys/pc98/cbus/ |
| HD | gdc.c | 218 bus_set_resource(dev, SYS_RES_IOPORT, rid, TEXT_GDC, 1); in gdc_alloc_resource() 219 sc->res_tgdc = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid, in gdc_alloc_resource() 229 bus_set_resource(dev, SYS_RES_IOPORT, rid, GRAPHIC_GDC, 1); in gdc_alloc_resource() 230 sc->res_ggdc = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid, in gdc_alloc_resource() 240 bus_set_resource(dev, SYS_RES_IOPORT, rid, 0x4a0, 1); in gdc_alloc_resource() 241 sc->res_egc = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid, in gdc_alloc_resource() 251 bus_set_resource(dev, SYS_RES_IOPORT, rid, 0x9a0, 1); in gdc_alloc_resource() 252 sc->res_pegc = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid, in gdc_alloc_resource() 262 bus_set_resource(dev, SYS_RES_IOPORT, rid, 0x70, 1); in gdc_alloc_resource() 263 sc->res_grcg = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid, in gdc_alloc_resource() [all …]
|
| HD | pcrtc.c | 158 bus_set_resource(dev, SYS_RES_IOPORT, sc->port_rid1, IO_RTC, 1); in pcrtc_attach() 159 if (!(sc->port_res1 = bus_alloc_resource(dev, SYS_RES_IOPORT, in pcrtc_attach() 163 bus_set_resource(dev, SYS_RES_IOPORT, sc->port_rid2, 0x33, 1); in pcrtc_attach() 164 if (!(sc->port_res2 = bus_alloc_resource(dev, SYS_RES_IOPORT, in pcrtc_attach()
|
| /NextBSD/sys/dev/pcf/ |
| HD | pcf_isa.c | 111 bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count); in pcf_isa_probe() 134 sc->res_ioport = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in pcf_isa_attach() 179 bus_release_resource(dev, SYS_RES_IOPORT, sc->rid_ioport, in pcf_isa_attach() 205 bus_release_resource(dev, SYS_RES_IOPORT, sc->rid_ioport, sc->res_ioport); in pcf_isa_detach()
|
| /NextBSD/sys/dev/snc/ |
| HD | if_snc_cbus.c | 89 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count)) in snc_isapnp_reconfig() 148 bus_set_resource(dev, SYS_RES_IOPORT, rid, in snc_isa_probe() 150 res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, in snc_isa_probe() 159 bus_release_resource(dev, SYS_RES_IOPORT, rid, res); in snc_isa_probe()
|
| /NextBSD/sys/powerpc/mpc85xx/ |
| HD | atpic.c | 155 bus_set_resource(child, SYS_RES_IOPORT, ATPIC_MASTER, IO_ICU1, 2); in atpic_isa_identify() 156 bus_set_resource(child, SYS_RES_IOPORT, ATPIC_SLAVE, IO_ICU2, 2); in atpic_isa_identify() 201 sc->sc_res[ATPIC_MASTER] = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in atpic_isa_attach() 207 sc->sc_res[ATPIC_SLAVE] = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in atpic_isa_attach() 234 bus_release_resource(dev, SYS_RES_IOPORT, in atpic_isa_attach() 237 bus_release_resource(dev, SYS_RES_IOPORT, in atpic_isa_attach()
|
| /NextBSD/sys/dev/ncv/ |
| HD | ncr53c500_pccard.c | 119 bus_release_resource(dev, SYS_RES_IOPORT, in ncv_release_resource() 124 bus_release_resource(dev, SYS_RES_IOPORT, in ncv_release_resource() 152 error = bus_get_resource(dev, SYS_RES_IOPORT, 0, &ioaddr, &iosize); in ncv_alloc_resource() 159 sc->port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->port_rid, in ncv_alloc_resource() 169 sc->port_res_dmy = bus_alloc_resource(dev, SYS_RES_IOPORT, in ncv_alloc_resource()
|
| /NextBSD/sys/dev/scd/ |
| HD | scd_isa.c | 46 if (bus_get_resource_start(dev, SYS_RES_IOPORT, 0) == 0) in scd_isa_probe() 52 sc->port_type = SYS_RES_IOPORT; in scd_isa_probe() 81 sc->port_type = SYS_RES_IOPORT; in scd_isa_attach()
|