Home | History | Annotate | Download | only in dev

Lines Matching defs:rom

71 	/* stuff we need in order to use the STI ROM */
195 struct sti_rom *rom = sc->sc_base.sc_rom;
196 bus_space_tag_t memt = rom->memt;
197 bus_space_handle_t memh = rom->regh[2];
205 struct sti_rom *rom = sc->sc_base.sc_rom;
206 bus_space_tag_t memt = rom->memt;
207 bus_space_handle_t memh = rom->regh[2];
237 struct sti_rom *rom;
262 rom = kmem_zalloc(sizeof(*rom), KM_SLEEP);
263 rom->rom_softc = &sc->sc_base;
264 ret = sti_rom_setup(rom, paa->pa_iot, paa->pa_memt, sc->sc_romh,
267 kmem_free(rom, sizeof(*rom));
271 sc->sc_base.sc_rom = rom;
272 dd = &rom->rom_dd;
370 * Grovel the STI ROM image.
394 * Map the complete ROM for now.
397 DPRINTF(("%s: mapping rom @ %lx for %lx\n", __func__,
403 aprint_error_dev(sc->sc_dev, "can't map PCI ROM (%d)\n", rc);
410 * Iterate over the ROM images, pick the best candidate.
416 * Check for a valid ROM header.
424 "invalid PCI ROM header signature"
432 * Check ROM type.
436 if (tmp != 0x00000001) { /* 1 == STI ROM */
440 "invalid PCI ROM type (%08x)\n", tmp);
452 DPRINTF(("ROM offset %08x size %08x type %08x",
458 * Check for a valid ROM data structure.
459 * We do not need it except to know what architecture the ROM
506 aprint_error_dev(sc->sc_dev, "found no ROM with "
527 * Find out where the STI ROM itself lies, and its size.
541 DPRINTF(("remapping rom @ %lx for %lx\n",
547 aprint_error_dev(sc->sc_dev, "can't map STI ROM (%d)\n",
609 * Enable PCI ROM.
635 * Disable PCI ROM.
900 struct sti_rom *rom = sc->sc_base.sc_rom;
908 pa = bus_space_mmap(rom->memt, sc->sc_scr.fbaddr, offset,
912 pa = bus_space_mmap(rom->memt, rom->regh[0],
1588 strcpy(fontbuf + sizeof(struct wsdisplay_font), "HP ROM");