Lines Matching defs:rom
407 * This covers ROM as well. We allow any user-specified
617 /* Enable the ROM address decoder, if necessary. */
684 * no upper bound check; i cannot imagine a 4GB ROM, but
692 struct pci_rom rom;
699 /* no warning: quite possibly ROM is simply not populated */
706 printf("pci_find_rom: rom data ptr out of range\n");
710 rom.rom_signature = bus_space_read_4(bst, bsh, ptr);
711 rom.rom_vendor = bus_space_read_2(bst, bsh, ptr +
713 rom.rom_product = bus_space_read_2(bst, bsh, ptr +
715 rom.rom_class = bus_space_read_1(bst, bsh,
717 rom.rom_subclass = bus_space_read_1(bst, bsh,
719 rom.rom_interface = bus_space_read_1(bst, bsh,
721 rom.rom_len = bus_space_read_2(bst, bsh,
723 rom.rom_code_type = bus_space_read_1(bst, bsh,
725 rom.rom_indicator = bus_space_read_1(bst, bsh,
728 if (rom.rom_signature != PCI_ROM_SIGNATURE) {
729 printf("pci_find_rom: bad rom data signature\n");
733 imagesz = rom.rom_len * 512;
735 if ((rom.rom_vendor == PCI_VENDOR(pa->pa_id)) &&
736 (rom.rom_product == PCI_PRODUCT(pa->pa_id)) &&
737 (rom.rom_class == PCI_CLASS(pa->pa_class)) &&
738 (rom.rom_subclass == PCI_SUBCLASS(pa->pa_class)) &&
739 (rom.rom_interface == PCI_INTERFACE(pa->pa_class)) &&
740 (rom.rom_code_type == type)) {
747 if (rom.rom_indicator & PCI_ROM_INDICATOR_LAST)