Lines Matching refs:rom
637 struct pci_setup_rom *rom; in pcibios_device_add() local
644 data = memremap(pa_data, sizeof(*rom), MEMREMAP_WB); in pcibios_device_add()
649 rom = (struct pci_setup_rom *)data; in pcibios_device_add()
651 if ((pci_domain_nr(dev->bus) == rom->segment) && in pcibios_device_add()
652 (dev->bus->number == rom->bus) && in pcibios_device_add()
653 (PCI_SLOT(dev->devfn) == rom->device) && in pcibios_device_add()
654 (PCI_FUNC(dev->devfn) == rom->function) && in pcibios_device_add()
655 (dev->vendor == rom->vendor) && in pcibios_device_add()
656 (dev->device == rom->devid)) { in pcibios_device_add()
657 dev->rom = pa_data + in pcibios_device_add()
659 dev->romlen = rom->pcilen; in pcibios_device_add()