/freebsd-9.3-release/sys/dev/ex/ |
H A D | if_exvar.h | 38 struct resource *ioport; member in struct:ex_softc 95 #define CSR_READ_1(sc, off) (bus_read_1((sc)->ioport, off)) 96 #define CSR_READ_2(sc, off) (bus_read_2((sc)->ioport, off)) 98 bus_write_1((sc)->ioport, off, val) 100 bus_write_2((sc)->ioport, off, val) 102 bus_write_multi_1((sc)->ioport, off, addr, count) 104 bus_write_multi_2((sc)->ioport, off, addr, count) 106 bus_write_multi_4((sc)->ioport, off, addr, count) 108 bus_read_multi_1((sc)->ioport, off, addr, count) 110 bus_read_multi_2((sc)->ioport, of [all...] |
H A D | if_ex_isa.c | 123 bus_addr_t ioport; local 134 for (ioport = 0x200; ioport < 0x3a0; ioport += 0x10) { 136 sc.ioport = bus_alloc_resource(parent, SYS_RES_IOPORT, &rid, 137 ioport, ioport, 0x10, RF_ACTIVE); 138 if (sc.ioport == NULL) 144 sc.ioport); 149 printf("ex: Found card at 0x%03lx!\n", (unsigned long)ioport); [all...] |
H A D | if_ex.c | 156 sc->ioport = bus_alloc_resource_any(dev, SYS_RES_IOPORT, 158 if (!sc->ioport) { 187 if (sc->ioport) { 189 sc->ioport_rid, sc->ioport); 190 sc->ioport = NULL;
|
/freebsd-9.3-release/sys/dev/ep/ |
H A D | if_ep_isa.c | 169 uint32_t ioport; local 228 ioport = (((data & ADDR_CFG_MASK) * 0x100) + 0x40d0); 230 ioport = (((data & ADDR_CFG_MASK) << 4) + 0x200); 236 desc, ioport); 254 desc, ioport); 270 outw(ioport + EP_COMMAND, WINDOW_SELECT | 0); 271 data = inw(ioport + EP_W0_EEPROM_COMMAND); 276 desc, ioport); 283 bus_set_resource(child, SYS_RES_IOPORT, 0, ioport, EP_IOSIZE); 289 desc, ioport, iopor [all...] |
/freebsd-9.3-release/sys/dev/cy/ |
H A D | cy_pci.c | 108 u_int32_t ioport; local 120 device_printf(dev, "ioport resource allocation failed\n"); 123 ioport = rman_get_start(ioport_res); 168 outw(ioport + CY_PLX_9050_ICS, 175 outw(ioport + CY_PLX_9060_ICS, 176 inw(ioport + CY_PLX_9060_ICS) | CY_PLX_9060_ICS_IENABLE |
|
/freebsd-9.3-release/sys/dev/buslogic/ |
H A D | bt_isa.c | 147 u_int ioport; local 149 ioport = bt_iop_from_bio(port_index); 155 if (bt_check_probed_iop(ioport) != 0) 159 if (bt_isa_alloc_resources(dev, ioport, 160 ioport + BT_NREGS -1) != 0) 169 ioport);
|
H A D | btreg.h | 679 int bt_check_probed_iop(u_int ioport); 681 void bt_mark_probed_iop(u_int ioport); 682 void bt_find_probe_range(int ioport,
|
H A D | bt.c | 929 bt_check_probed_iop(u_int ioport) argument 934 if (bt_isa_ports[i].addr == ioport) { 953 bt_mark_probed_iop(u_int ioport) argument 958 if (ioport == bt_isa_ports[i].addr) { 966 bt_find_probe_range(int ioport, int *port_index, int *max_port_index) argument 968 if (ioport > 0) { 972 if (ioport <= bt_isa_ports[i].addr) 975 || (ioport != bt_isa_ports[i].addr)) { 980 ioport,
|
/freebsd-9.3-release/sys/dev/aha/ |
H A D | aha_isa.c | 307 bus_addr_t ioport; local 316 ioport = aha_board_ports[i]; 325 ioport, ioport, AHA_NREGS, RF_ACTIVE); 333 bus_set_resource(child, SYS_RES_IOPORT, 0, ioport, AHA_NREGS);
|
/freebsd-9.3-release/sys/dev/cmx/ |
H A D | cmx.c | 174 sc->ioport = bus_alloc_resource_any(dev, SYS_RES_IOPORT, 176 if (!sc->ioport) { 180 sc->bst = rman_get_bustag(sc->ioport); 181 sc->bsh = rman_get_bushandle(sc->ioport); 227 if (sc->ioport) { 229 sc->ioport_rid, sc->ioport); 231 sc->ioport_rid, sc->ioport); 232 sc->ioport = NULL;
|
H A D | cmxvar.h | 40 struct resource *ioport; /* io port resource descriptor */ member in struct:cmx_softc
|
/freebsd-9.3-release/sys/dev/snc/ |
H A D | if_snc.c | 77 sc->ioport = res; 139 if (sc->ioport) { 141 sc->ioport_rid, sc->ioport); 142 sc->ioport = 0;
|
H A D | dp83932var.h | 112 struct resource * ioport; member in struct:snc_softc
|
/freebsd-9.3-release/sys/dev/dpt/ |
H A D | dpt_isa.c | 75 dpt_isa_valid_ioport (int ioport) argument 77 switch (ioport) {
|
/freebsd-9.3-release/sys/dev/xe/ |
H A D | if_xe_pccard.c | 137 int ioport; local 148 ioport = bus_get_resource_start(dev, SYS_RES_IOPORT, sc->port_rid); 149 pccard_attr_write_1(dev, DINGO_EBAR0, ioport & 0xff); 150 pccard_attr_write_1(dev, DINGO_EBAR1, (ioport >> 8) & 0xff);
|
/freebsd-9.3-release/sys/dev/e1000/ |
H A D | if_lem.h | 306 struct resource *ioport; member in struct:adapter
|
H A D | if_lem.c | 2178 adapter->ioport = bus_alloc_resource_any(dev, 2180 if (adapter->ioport == NULL) { 2182 "ioport\n"); 2187 rman_get_bustag(adapter->ioport); 2189 rman_get_bushandle(adapter->ioport); 2277 if (adapter->ioport != NULL) 2279 adapter->io_rid, adapter->ioport);
|
/freebsd-9.3-release/share/examples/drivers/ |
H A D | make_device_driver.sh | 284 int ioport; 332 u_int32_t ioport; 348 ioport = res[i].ioport; 350 if ((ioport == 0) && (irq == 0)) 354 bus_set_resource(child, SYS_RES_IOPORT, 0, ioport, NUMPORTS);
|