Lines Matching refs:rom
645 struct pci_setup_rom *rom; in pcibios_device_add() local
652 data = memremap(pa_data, sizeof(*rom), MEMREMAP_WB); in pcibios_device_add()
657 rom = (struct pci_setup_rom *)data; in pcibios_device_add()
659 if ((pci_domain_nr(dev->bus) == rom->segment) && in pcibios_device_add()
660 (dev->bus->number == rom->bus) && in pcibios_device_add()
661 (PCI_SLOT(dev->devfn) == rom->device) && in pcibios_device_add()
662 (PCI_FUNC(dev->devfn) == rom->function) && in pcibios_device_add()
663 (dev->vendor == rom->vendor) && in pcibios_device_add()
664 (dev->device == rom->devid)) { in pcibios_device_add()
665 dev->rom = pa_data + in pcibios_device_add()
667 dev->romlen = rom->pcilen; in pcibios_device_add()