Lines Matching refs:rom
162 static int __init romsignature(const unsigned char *rom)
164 const unsigned short * const ptr = (const unsigned short *)rom;
170 static int __init romchecksum(const unsigned char *rom, unsigned long length)
174 for (sum = 0; length && probe_kernel_address(rom++, c) == 0; length--)
181 const unsigned char *rom;
186 /* video rom */
189 rom = isa_bus_to_virt(start);
190 if (!romsignature(rom))
195 if (probe_kernel_address(rom + 2, c) != 0)
202 if (length && romchecksum(rom, length))
213 /* system rom */
217 /* check for extension rom (ignore length byte!) */
218 rom = isa_bus_to_virt(extension_rom_resource.start);
219 if (romsignature(rom)) {
221 if (romchecksum(rom, length)) {
229 rom = isa_bus_to_virt(start);
230 if (!romsignature(rom))
233 if (probe_kernel_address(rom + 2, c) != 0)
240 if (!length || start + length > upper || !romchecksum(rom, length))