Home
last modified time | relevance | path

Searched refs:romh (Results 1 – 15 of 15) sorted by relevance

/netbsd-src/sys/arch/hppa/dev/
H A Dsti_sgc.c156 bus_space_handle_t romh; in sti_sgc_probe() local
179 if ((rv = bus_space_map(ca->ca_iot, rom, STI_ROMSIZE, 0, &romh))) { in sti_sgc_probe()
183 romh = rom; in sti_sgc_probe()
191 devtype = bus_space_read_1(ca->ca_iot, romh, 3); in sti_sgc_probe()
197 id = bus_space_read_4(ca->ca_iot, romh, STI_DEV4_DD_GRID); in sti_sgc_probe()
200 id = (bus_space_read_1(ca->ca_iot, romh, STI_DEV1_DD_GRID in sti_sgc_probe()
202 (bus_space_read_1(ca->ca_iot, romh, STI_DEV1_DD_GRID in sti_sgc_probe()
204 (bus_space_read_1(ca->ca_iot, romh, STI_DEV1_DD_GRID in sti_sgc_probe()
206 (bus_space_read_1(ca->ca_iot, romh, STI_DEV1_DD_GRID in sti_sgc_probe()
226 ca->ca_addrs[ca->ca_naddrs].size = sti_rom_size(ca->ca_iot, romh); in sti_sgc_probe()
[all …]
H A Dhyperfb.c255 bus_space_handle_t romh; in hyperfb_match()
278 if (bus_space_map(ca->ca_iot, rom, STI_ROMSIZE, 0, &romh)) { in hyperfb_match()
282 romh = rom; in hyperfb_match()
290 devtype = bus_space_read_1(ca->ca_iot, romh, 3); in hyperfb_match()
295 id = bus_space_read_4(ca->ca_iot, romh, STI_DEV4_DD_GRID); in hyperfb_match()
298 id = (bus_space_read_1(ca->ca_iot, romh, STI_DEV1_DD_GRID in hyperfb_match()
300 (bus_space_read_1(ca->ca_iot, romh, STI_DEV1_DD_GRID in hyperfb_match()
302 (bus_space_read_1(ca->ca_iot, romh, STI_DEV1_DD_GRID in hyperfb_match()
304 (bus_space_read_1(ca->ca_iot, romh, STI_DEV1_DD_GRID in hyperfb_match()
316 ca->ca_addrs[ca->ca_naddrs].size = sti_rom_size(ca->ca_iot, romh); in hyperfb_match()
258 bus_space_handle_t romh; hyperfb_match() local
[all...]
H A Dgftfb.c345 bus_space_handle_t romh;
369 0, &romh); in gftfb_check_rom()
386 tmp = bus_space_read_4(pa->pa_memt, romh, offs + 0); in gftfb_check_rom()
402 tmp = bus_space_read_4(pa->pa_memt, romh, offs + 4); in gftfb_check_rom()
414 subsize = (bus_addr_t)bus_space_read_2(pa->pa_memt, romh, in gftfb_check_rom()
431 suboffs = offs +(bus_addr_t)bus_space_read_2(pa->pa_memt, romh, in gftfb_check_rom()
433 tmp = bus_space_read_4(pa->pa_memt, romh, suboffs + 0); in gftfb_check_rom()
448 tmp = bus_space_read_1(pa->pa_memt, romh, suboffs + 0x14); in gftfb_check_rom()
487 (bus_addr_t)bus_space_read_2(pa->pa_memt, romh, selected + 0x0e); in gftfb_check_rom()
490 bus_space_read_1(pa->pa_memt, romh, off in gftfb_check_rom()
352 bus_space_handle_t romh; gftfb_check_rom() local
[all...]
/netbsd-src/sys/dev/ic/
H A Dsti.c155 ((bus_space_read_1(memt, romh, (o) + 3) << 8) | \
156 (bus_space_read_1(memt, romh, (o) + 7)))
158 ((bus_space_read_1(memt, romh, (o) + 3) << 24) | \
159 (bus_space_read_1(memt, romh, (o) + 7) << 16) | \
160 (bus_space_read_1(memt, romh, (o) + 11) << 8) | \
161 (bus_space_read_1(memt, romh, (o) + 15))) in sti_attach_common()
165 bus_space_tag_t memt, bus_space_handle_t romh, u_int codebase) in sti_attach_common()
173 rc = sti_rom_setup(rom, iot, memt, romh, sc->bases, codebase); in sti_attach_common()
213 bus_space_handle_t romh, bus_addr_t *bases, u_int codebase) in sti_rom_setup()
223 rom->romh in sti_rom_setup()
162 sti_attach_common(struct sti_softc * sc,bus_space_tag_t iot,bus_space_tag_t memt,bus_space_handle_t romh,u_int codebase) sti_attach_common() argument
210 sti_rom_setup(struct sti_rom * rom,bus_space_tag_t iot,bus_space_tag_t memt,bus_space_handle_t romh,bus_addr_t * bases,u_int codebase) sti_rom_setup() argument
400 bus_space_handle_t romh = rom->romh; sti_region_setup() local
498 bus_space_handle_t romh = rom->romh; sti_screen_setup() local
796 sti_rom_size(bus_space_tag_t memt,bus_space_handle_t romh) sti_rom_size() argument
820 bus_space_handle_t romh = rom->romh; sti_fetchfonts() local
1471 bus_space_handle_t romh; sti_cnattach() local
[all...]
H A Dstivar.h44 bus_space_handle_t romh; member
/netbsd-src/sys/dev/pci/
H A Dsti_pci.c144 bus_space_handle_t romh; in sti_check_rom() local
168 0, &romh); in sti_check_rom()
185 tmp = bus_space_read_4(pa->pa_memt, romh, offs + 0); in sti_check_rom()
201 tmp = bus_space_read_4(pa->pa_memt, romh, offs + 4); in sti_check_rom()
213 subsize = (bus_addr_t)bus_space_read_2(pa->pa_memt, romh, in sti_check_rom()
230 suboffs = offs +(bus_addr_t)bus_space_read_2(pa->pa_memt, romh, in sti_check_rom()
232 tmp = bus_space_read_4(pa->pa_memt, romh, suboffs + 0); in sti_check_rom()
247 tmp = bus_space_read_1(pa->pa_memt, romh, suboffs + 0x14); in sti_check_rom()
288 (bus_addr_t)bus_space_read_2(pa->pa_memt, romh, selected + 0x0e); in sti_check_rom()
291 bus_space_read_1(pa->pa_memt, romh, offs + i)); in sti_check_rom()
[all …]
H A Dif_hme_pci.c97 hmevpdoff(bus_space_tag_t romt, bus_space_handle_t romh, int vpdoff, int dev) in hmevpdoff() argument
100 if (bus_space_read_1(romt, romh, vpdoff + VPDLEN) != 0x79 && in hmevpdoff()
101 bus_space_read_1(romt, romh, vpdoff + 4 * VPDLEN) == 0x79) { in hmevpdoff()
126 bus_space_handle_t romh; in hmeattach_pci() local
246 &romt, &romh, 0, &romsize) == 0) { in hmeattach_pci()
249 bus_space_read_region_1(romt, romh, 0, buf, sizeof buf); in hmeattach_pci()
255 bus_space_read_region_1(romt, romh, dataoff, in hmeattach_pci()
269 vpdoff = hmevpdoff(romt, romh, vpdoff, in hmeattach_pci()
272 bus_space_read_region_1(romt, romh, in hmeattach_pci()
289 bus_space_unmap(romt, romh, romsize); in hmeattach_pci()
H A Dif_gem_pci.c155 bus_space_handle_t romh; in gem_pci_attach() local
262 GEM_PCI_ROM_OFFSET, GEM_PCI_ROM_SIZE, &romh)) == 0) { in gem_pci_attach()
266 romh, 0, buf, sizeof buf); in gem_pci_attach()
318 bus_space_read_region_1(sc->sc_bustag, romh, in gem_pci_attach()
335 romh, vpdoff, buf, 64); in gem_pci_attach()
H A Dif_cas.c221 bus_space_handle_t romh; in cas_pci_readvpd() local
232 &romt, &romh, NULL, &romsize)) in cas_pci_readvpd()
239 bus_space_read_region_1(romt, romh, 0, buf, sizeof(buf)); in cas_pci_readvpd()
247 bus_space_read_region_1(romt, romh, dataoff, buf, sizeof(buf)); in cas_pci_readvpd()
258 bus_space_read_region_1(romt, romh, vpdoff, buf, sizeof(buf)); in cas_pci_readvpd()
279 byte = bus_space_read_1(romt, romh, vpdoff + i); in cas_pci_readvpd()
288 bus_space_read_region_1(romt, romh, vpdoff, in cas_pci_readvpd()
387 bus_space_unmap(romt, romh, romsize); in cas_pci_readvpd()
H A Dpci_map.c677 bus_space_handle_t *romh, bus_size_t *romsz) in pci_find_rom() argument
742 bus_space_subregion(bst, bsh, offset, imagesz, romh); in pci_find_rom()
H A Dradeonfb.c1384 bus_space_handle_t romh, biosh; in radeonfb_loadbios() local
1391 BUS_SPACE_MAP_PREFETCHABLE, &romt, &romh, NULL, &romsz) != 0) { in radeonfb_loadbios()
1396 pci_find_rom(pa, romt, romh, romsz, PCI_ROM_CODE_TYPE_X86, &biosh, in radeonfb_loadbios()
1425 pci_find_rom(pa, romt, romh, romsz, PCI_ROM_CODE_TYPE_X86, &biosh, in radeonfb_loadbios()
1447 bus_space_unmap(romt, romh, romsz); in radeonfb_loadbios()
/netbsd-src/sys/dev/cardbus/
H A Dcardbus_exrom.c91 cardbus_read_exrom(bus_space_tag_t romt, bus_space_handle_t romh, in cardbus_read_exrom() argument
105 val = READ_INT16(romt, romh, addr + CARDBUS_EXROM_SIGNATURE); in cardbus_read_exrom()
113 READ_INT16(romt, romh, addr + CARDBUS_EXROM_DATA_PTR); in cardbus_read_exrom()
115 image_size = READ_INT16(romt, romh, in cardbus_read_exrom()
128 if (bus_space_subregion(romt, romh, addr, in cardbus_read_exrom()
129 image_size, &image->romh)) { in cardbus_read_exrom()
137 } while ((bus_space_read_1(romt, romh, in cardbus_read_exrom()
H A Dcardbus_exrom.h59 bus_space_handle_t romh; /* subregion */ member
H A Dcardbus.c246 p->romh, CARDBUS_CIS_ADDR(cis_ptr), in cardbus_read_tuples()
/netbsd-src/sys/arch/hp300/dev/
H A Dsti_sgc.c137 bus_space_handle_t romh; in sti_sgc_attach() local
159 if (bus_space_map(bst, base, PAGE_SIZE, 0, &romh)) { in sti_sgc_attach()
166 romend = sti_rom_size(bst, romh); in sti_sgc_attach()
168 bus_space_unmap(bst, romh, PAGE_SIZE); in sti_sgc_attach()
170 if (bus_space_map(bst, base, romend, 0, &romh)) { in sti_sgc_attach()
175 ssc->bases[0] = romh; in sti_sgc_attach()
179 if (sti_attach_common(ssc, bst, bst, romh, in sti_sgc_attach()
410 bus_space_handle_t romh; in sti_sgc_cnprobe() local
413 if (bus_space_map(bst, addr, PAGE_SIZE, 0, &romh)) in sti_sgc_cnprobe()
416 va = bus_space_vaddr(bst, romh); in sti_sgc_cnprobe()
[all …]