Lines Matching +full:vendor +full:- +full:extension
1 // SPDX-License-Identifier: GPL-2.0
17 #include <asm/pci-direct.h>
34 .name = "Extension ROM",
82 static bool match_id(struct pci_dev *pdev, unsigned short vendor, unsigned short device) in match_id() argument
84 struct pci_driver *drv = to_pci_driver(pdev->dev.driver); in match_id()
87 if (pdev->vendor == vendor && pdev->device == device) in match_id()
90 for (id = drv ? drv->id_table : NULL; id && id->vendor; id++) in match_id()
91 if (id->vendor == vendor && id->device == device) in match_id()
94 return id && id->vendor; in match_id()
97 static bool probe_list(struct pci_dev *pdev, unsigned short vendor, in probe_list() argument
106 if (device && match_id(pdev, vendor, device)) in probe_list()
122 unsigned short offset, vendor, device, list, rev; in find_oprom() local
125 if (res->end == 0) in find_oprom()
128 rom = isa_bus_to_virt(res->start); in find_oprom()
132 if (get_kernel_nofault(vendor, rom + offset + 0x4) != 0) in find_oprom()
138 if (match_id(pdev, vendor, device)) { in find_oprom()
146 probe_list(pdev, vendor, rom + offset + list)) { in find_oprom()
162 return ioremap(oprom->start, resource_size(oprom)); in pci_map_biosrom()
194 for (sum = 0; length && get_kernel_nofault(c, rom++) == 0; length--) in romchecksum()
223 video_rom_resource.end = start + length - 1; in probe_roms()
237 /* check for extension rom (ignore length byte!) */ in probe_roms()
264 adapter_rom_resources[i].end = start + length - 1; in probe_roms()