Lines Matching refs:rom_base
4088 static int sisfb_check_rom(void __iomem *rom_base, in sisfb_check_rom() argument
4094 if((readb(rom_base) != 0x55) || (readb(rom_base + 1) != 0xaa)) in sisfb_check_rom()
4097 romptr = (readb(rom_base + 0x18) | (readb(rom_base + 0x19) << 8)); in sisfb_check_rom()
4101 rom = rom_base + romptr; in sisfb_check_rom()
4119 void __iomem *rom_base; in sisfb_find_rom() local
4129 if((rom_base = pci_map_rom(pdev, &romsize))) { in sisfb_find_rom()
4131 if(sisfb_check_rom(rom_base, ivideo)) { in sisfb_find_rom()
4134 memcpy_fromio(myrombase, rom_base, in sisfb_find_rom()
4138 pci_unmap_rom(pdev, rom_base); in sisfb_find_rom()
4152 rom_base = ioremap(temp, 65536); in sisfb_find_rom()
4153 if (!rom_base) in sisfb_find_rom()
4156 if (!sisfb_check_rom(rom_base, ivideo)) { in sisfb_find_rom()
4157 iounmap(rom_base); in sisfb_find_rom()
4162 memcpy_fromio(myrombase, rom_base, 65536); in sisfb_find_rom()
4164 iounmap(rom_base); in sisfb_find_rom()