/freebsd/sys/dev/ata/ |
H A D | ata-isa.c | 71 if (!(io = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, in ata_isa_probe() 76 if (bus_get_resource(dev, SYS_RES_IOPORT, ATA_CTLADDR_RID, &tmp, &tmp)) { in ata_isa_probe() 77 bus_set_resource(dev, SYS_RES_IOPORT, ATA_CTLADDR_RID, in ata_isa_probe() 83 if (!(ctlio = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, in ata_isa_probe() 85 bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, io); in ata_isa_probe() 90 bus_release_resource(dev, SYS_RES_IOPORT, ATA_CTLADDR_RID, ctlio); in ata_isa_probe() 91 bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, io); in ata_isa_probe() 111 if (!(io = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, in ata_isa_attach() 116 if (bus_get_resource(dev, SYS_RES_IOPORT, ATA_CTLADDR_RID, &tmp, &tmp)) { in ata_isa_attach() 117 bus_set_resource(dev, SYS_RES_IOPORT, ATA_CTLADDR_RID, in ata_isa_attach() [all …]
|
H A D | ata-pci.c | 104 ctlr->r_type1 = SYS_RES_IOPORT; in ata_pci_attach() 227 if (type == SYS_RES_IOPORT) { in ata_pci_alloc_resource() 237 SYS_RES_IOPORT, &myrid, in ata_pci_alloc_resource() 249 SYS_RES_IOPORT, &myrid, in ata_pci_alloc_resource() 285 if (type == SYS_RES_IOPORT) { in ata_pci_release_resource() 395 if (!(io = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE))) in ata_pci_ch_attach() 399 if (!(ctlio = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid,RF_ACTIVE))){ in ata_pci_ch_attach() 400 bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, io); in ata_pci_ch_attach() 432 bus_release_resource(dev, SYS_RES_IOPORT, ATA_CTLADDR_RID, in ata_pci_ch_detach() 434 bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, in ata_pci_ch_detach()
|
/freebsd/sys/dev/atkbdc/ |
H A D | atkbdc_isa.c | 129 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count) != 0) in atkbdc_isa_probe() 136 bus_set_resource(dev, SYS_RES_IOPORT, rid, start, 1); in atkbdc_isa_probe() 137 port0 = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in atkbdc_isa_probe() 141 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, NULL, NULL) != 0) in atkbdc_isa_probe() 142 bus_set_resource(dev, SYS_RES_IOPORT, 1, in atkbdc_isa_probe() 144 port1 = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in atkbdc_isa_probe() 146 bus_release_resource(dev, SYS_RES_IOPORT, 0, port0); in atkbdc_isa_probe() 168 bus_release_resource(dev, SYS_RES_IOPORT, 0, port0); in atkbdc_isa_probe() 169 bus_release_resource(dev, SYS_RES_IOPORT, 1, port1); in atkbdc_isa_probe() 180 bus_release_resource(dev, SYS_RES_IOPORT, 0, port0); in atkbdc_isa_probe() [all …]
|
/freebsd/sys/dev/aic7xxx/ |
H A D | ahc_isa.c | 94 regs = bus_alloc_resource(parent, SYS_RES_IOPORT, &rid, in ahc_isa_identify() 115 bus_set_resource(child, SYS_RES_IOPORT, in ahc_isa_identify() 119 bus_release_resource(parent, SYS_RES_IOPORT, rid, regs); in ahc_isa_identify() 147 regs = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &zero, RF_ACTIVE); in ahc_isa_probe() 202 bus_release_resource(dev, SYS_RES_IOPORT, zero, regs); in ahc_isa_probe() 227 regs = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &zero, RF_ACTIVE); in ahc_isa_attach() 234 bus_release_resource(dev, SYS_RES_IOPORT, zero, regs); in ahc_isa_attach()
|
/freebsd/sys/powerpc/psim/ |
H A D | iobus.c | 314 case SYS_RES_IOPORT: in iobus_get_rman() 329 case SYS_RES_IOPORT: in iobus_alloc_resource() 349 case SYS_RES_IOPORT: in iobus_adjust_resource() 365 case SYS_RES_IOPORT: in iobus_release_resource() 381 case SYS_RES_IOPORT: in iobus_activate_resource() 396 case SYS_RES_IOPORT: in iobus_deactivate_resource() 419 case SYS_RES_IOPORT: in iobus_map_resource() 448 case SYS_RES_IOPORT: in iobus_unmap_resource()
|
/freebsd/sys/dev/pci/ |
H A D | pci_host_generic.c | 405 case SYS_RES_IOPORT: in generic_pcie_get_rman() 428 case SYS_RES_IOPORT: in pci_host_generic_core_release_resource() 446 case SYS_RES_IOPORT: in generic_pcie_containing_range() 468 space = SYS_RES_IOPORT; in generic_pcie_containing_range() 488 case SYS_RES_IOPORT: in generic_pcie_translate_resource() 518 case SYS_RES_IOPORT: in pci_host_generic_core_alloc_resource() 545 case SYS_RES_IOPORT: in generic_pcie_activate_resource() 563 case SYS_RES_IOPORT: in generic_pcie_deactivate_resource() 582 case SYS_RES_IOPORT: in generic_pcie_adjust_resource() 605 case SYS_RES_IOPORT: in generic_pcie_map_resource() [all …]
|
/freebsd/sys/dev/pcf/ |
H A D | pcf_isa.c | 109 bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count); in pcf_isa_probe() 132 sc->res_ioport = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in pcf_isa_attach() 177 bus_release_resource(dev, SYS_RES_IOPORT, sc->rid_ioport, in pcf_isa_attach() 200 bus_release_resource(dev, SYS_RES_IOPORT, sc->rid_ioport, sc->res_ioport); in pcf_isa_detach()
|
/freebsd/sys/dev/acpica/ |
H A D | acpi_timer.c | 140 rtype = SYS_RES_IOPORT; in acpi_timer_identify() 150 (rtype == SYS_RES_IOPORT) ? "port" : "mem", rstart, rlen); in acpi_timer_identify() 169 rtype = SYS_RES_IOPORT; in acpi_timer_probe() 178 (rtype == SYS_RES_IOPORT) ? "port" : "mem", in acpi_timer_probe() 217 rtype = SYS_RES_IOPORT; in acpi_timer_attach()
|
/freebsd/sys/dev/ofw/ |
H A D | ofw_pcib.c | 433 case SYS_RES_IOPORT: in ofw_pcib_alloc_resource() 452 case SYS_RES_IOPORT: in ofw_pcib_release_resource() 479 space = SYS_RES_IOPORT; in ofw_pcib_translate_resource() 508 case SYS_RES_IOPORT: in ofw_pcib_activate_resource() 531 case SYS_RES_IOPORT: in ofw_pcib_map_resource() 553 space = SYS_RES_IOPORT; in ofw_pcib_map_resource() 593 case SYS_RES_IOPORT: in ofw_pcib_unmap_resource() 621 case SYS_RES_IOPORT: in ofw_pcib_deactivate_resource() 640 case SYS_RES_IOPORT: in ofw_pcib_adjust_resource() 714 case SYS_RES_IOPORT: in ofw_pcib_get_rman()
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | atpic.c | 153 bus_set_resource(child, SYS_RES_IOPORT, ATPIC_MASTER, IO_ICU1, 2); in atpic_isa_identify() 154 bus_set_resource(child, SYS_RES_IOPORT, ATPIC_SLAVE, IO_ICU2, 2); in atpic_isa_identify() 199 sc->sc_res[ATPIC_MASTER] = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in atpic_isa_attach() 205 sc->sc_res[ATPIC_SLAVE] = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in atpic_isa_attach() 232 bus_release_resource(dev, SYS_RES_IOPORT, in atpic_isa_attach() 235 bus_release_resource(dev, SYS_RES_IOPORT, in atpic_isa_attach()
|
/freebsd/sys/dev/cpufreq/ |
H A D | ichss.c | 204 bus_set_resource(child, SYS_RES_IOPORT, 0, pmbase + ICHSS_BM_OFFSET, in ichss_identify() 206 bus_set_resource(child, SYS_RES_IOPORT, 1, pmbase + ICHSS_CTRL_OFFSET, in ichss_identify() 245 sc->bm_reg = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &sc->bm_rid, in ichss_attach() 252 sc->ctrl_reg = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in ichss_attach() 256 bus_release_resource(dev, SYS_RES_IOPORT, sc->bm_rid, in ichss_attach()
|
/freebsd/sys/isa/ |
H A D | isa_common.c | 203 bus_delete_resource(child, SYS_RES_IOPORT, i); in isa_find_port() 228 bus_set_resource(child, SYS_RES_IOPORT, i, in isa_find_port() 231 SYS_RES_IOPORT, &i, in isa_find_port() 254 bus_release_resource(child, SYS_RES_IOPORT, in isa_find_port() 641 retval += resource_list_print_type(rl, "port", SYS_RES_IOPORT, "%#jx"); in isa_print_all_resources() 687 rle = resource_list_find(rl, SYS_RES_IOPORT, 0); in isa_read_ivar() 695 rle = resource_list_find(rl, SYS_RES_IOPORT, 1); in isa_read_ivar() 703 rle = resource_list_find(rl, SYS_RES_IOPORT, 0); in isa_read_ivar() 711 rle = resource_list_find(rl, SYS_RES_IOPORT, 1); in isa_read_ivar() 941 if (type != SYS_RES_IOPORT && type != SYS_RES_MEMORY in isa_set_resource() [all …]
|
/freebsd/sys/dev/le/ |
H A D | if_le_isa.c | 205 lesc->sc_rres = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &i, in le_isa_probe_legacy() 223 bus_release_resource(dev, SYS_RES_IOPORT, in le_isa_probe_legacy() 266 lesc->sc_rres = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in le_isa_attach() 277 SYS_RES_IOPORT, &j, in le_isa_attach() 434 bus_release_resource(dev, SYS_RES_IOPORT, in le_isa_attach() 460 bus_release_resource(dev, SYS_RES_IOPORT, in le_isa_detach()
|
/freebsd/sys/dev/ipmi/ |
H A D | ipmi_acpi.c | 112 if (bus_get_resource(dev, SYS_RES_IOPORT, 0, NULL, NULL) == 0) in ipmi_acpi_attach() 113 type = SYS_RES_IOPORT; in ipmi_acpi_attach() 149 mode, type == SYS_RES_IOPORT ? "io" : "mem", in ipmi_acpi_attach()
|
/freebsd/sys/dev/pbio/ |
H A D | pbio.c | 163 scp->res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, in pbioprobe() 182 bus_release_resource(dev, SYS_RES_IOPORT, rid, sc->res); in pbioprobe() 189 bus_release_resource(dev, SYS_RES_IOPORT, rid, sc->res); in pbioprobe() 196 bus_release_resource(dev, SYS_RES_IOPORT, rid, scp->res); in pbioprobe() 217 sc->res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, in pbioattach()
|
/freebsd/sys/arm/arm/ |
H A D | nexus.c | 229 case SYS_RES_IOPORT: in nexus_get_rman() 314 case SYS_RES_IOPORT: in nexus_activate_resource() 345 case SYS_RES_IOPORT: in nexus_map_resource() 381 case SYS_RES_IOPORT: in nexus_unmap_resource() 400 case SYS_RES_IOPORT: in nexus_deactivate_resource()
|
/freebsd/sys/dev/ichwd/ |
H A D | ichwd.c | 687 rc = bus_set_resource(dev, SYS_RES_IOPORT, 0, in ichwd_identify() 766 sc->tco_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &sc->tco_rid, in ichwd_smb_attach() 810 sc->smi_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->smi_rid, in ichwd_smb_attach() 848 sc->smi_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->smi_rid, in ichwd_lpc_attach() 857 sc->tco_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->tco_rid, in ichwd_lpc_attach() 918 bus_release_resource(dev, SYS_RES_IOPORT, in ichwd_attach() 921 bus_release_resource(dev, SYS_RES_IOPORT, in ichwd_attach() 957 bus_release_resource(dev, SYS_RES_IOPORT, sc->tco_rid, sc->tco_res); in ichwd_detach() 958 bus_release_resource(dev, SYS_RES_IOPORT, sc->smi_rid, sc->smi_res); in ichwd_detach()
|
/freebsd/sys/powerpc/powermac/ |
H A D | uninorth.c | 473 case SYS_RES_IOPORT: in unin_chip_get_rman() 493 case SYS_RES_IOPORT: in unin_chip_alloc_resource() 561 case SYS_RES_IOPORT: in unin_chip_adjust_resource() 576 case SYS_RES_IOPORT: in unin_chip_release_resource() 590 case SYS_RES_IOPORT: in unin_chip_activate_resource() 605 case SYS_RES_IOPORT: in unin_chip_deactivate_resource() 629 case SYS_RES_IOPORT: in unin_chip_map_resource() 662 case SYS_RES_IOPORT: in unin_chip_unmap_resource()
|
H A D | macio.c | 516 case SYS_RES_IOPORT: in macio_get_rman() 536 case SYS_RES_IOPORT: in macio_alloc_resource() 601 case SYS_RES_IOPORT: in macio_adjust_resource() 616 case SYS_RES_IOPORT: in macio_release_resource() 630 case SYS_RES_IOPORT: in macio_activate_resource() 644 case SYS_RES_IOPORT: in macio_deactivate_resource() 669 case SYS_RES_IOPORT: in macio_map_resource() 704 case SYS_RES_IOPORT: in macio_unmap_resource()
|
/freebsd/sys/dev/fb/ |
H A D | s3_pci.c | 453 bus_set_resource(dev, SYS_RES_IOPORT, 0, in s3pci_probe() 455 bus_set_resource(dev, SYS_RES_IOPORT, 1, in s3pci_probe() 481 if (!(sc->port_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, in s3pci_attach() 490 if (!(sc->enh_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, in s3pci_attach() 544 bus_release_resource(dev, SYS_RES_IOPORT, 1, sc->enh_res); in s3pci_attach() 547 bus_release_resource(dev, SYS_RES_IOPORT, 0, sc->port_res); in s3pci_attach()
|
/freebsd/sys/dev/proto/ |
H A D | proto_core.c | 56 SYS_RES_IOPORT != PROTO_RES_UNUSED); 60 SYS_RES_IOPORT != PROTO_RES_PCICFG); 64 SYS_RES_IOPORT != PROTO_RES_BUSDMA); 194 case SYS_RES_IOPORT: in proto_attach() 198 (r->r_type == SYS_RES_IOPORT) ? "io" : "mem"); in proto_attach() 252 case SYS_RES_IOPORT: in proto_detach()
|
/freebsd/sys/dev/fdc/ |
H A D | fdc_isa.c | 90 res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &newrid, in fdc_isa_alloc_resources() 100 bus_release_resource(dev, SYS_RES_IOPORT, newrid, res); in fdc_isa_alloc_resources() 118 res = bus_alloc_resource(dev, SYS_RES_IOPORT, &newrid, port, in fdc_isa_alloc_resources()
|
/freebsd/sys/arm64/cavium/ |
H A D | thunder_pcie_pem.c | 264 case SYS_RES_IOPORT: in thunder_pem_activate_resource() 282 case SYS_RES_IOPORT: in thunder_pem_deactivate_resource() 304 case SYS_RES_IOPORT: in thunder_pem_map_resource() 333 case SYS_RES_IOPORT: in thunder_pem_unmap_resource() 352 case SYS_RES_IOPORT: in thunder_pem_adjust_resource() 665 case SYS_RES_IOPORT: in thunder_pem_alloc_resource() 713 case SYS_RES_IOPORT: in thunder_pem_release_resource() 729 case SYS_RES_IOPORT: in thunder_pem_get_rman() 874 sc->ranges[1].flags = SYS_RES_IOPORT; in thunder_pem_attach()
|
/freebsd/sys/dev/sound/pci/ |
H A D | solo.c | 828 bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(0), sc->io); in ess_release_resources() 833 bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(1), sc->sb); in ess_release_resources() 838 bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(2), sc->vc); in ess_release_resources() 843 bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(3), sc->mpu); in ess_release_resources() 848 bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(4), sc->gp); in ess_release_resources() 871 sc->io = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in ess_alloc_resources() 874 sc->sb = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in ess_alloc_resources() 877 sc->vc = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in ess_alloc_resources() 880 sc->mpu = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in ess_alloc_resources() 883 sc->gp = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in ess_alloc_resources()
|
/freebsd/sys/dev/viapm/ |
H A D | viapm.c | 225 if (bus_set_resource(dev, SYS_RES_IOPORT, viapm->iorid, in viapm_586b_probe() 315 if (bus_set_resource(dev, SYS_RES_IOPORT, viapm->iorid, in viapm_pro_probe() 343 if (!(viapm->iores = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in viapm_pro_attach() 401 bus_release_resource(dev, SYS_RES_IOPORT, viapm->iorid, viapm->iores); in viapm_pro_attach() 417 if (!(viapm->iores = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in viapm_586b_attach() 435 bus_release_resource(dev, SYS_RES_IOPORT, in viapm_586b_attach() 449 bus_release_resource(dev, SYS_RES_IOPORT, viapm->iorid, in viapm_586b_detach() 463 bus_release_resource(dev, SYS_RES_IOPORT, viapm->iorid, viapm->iores); in viapm_pro_detach()
|