Lines Matching refs:bios
372 static int tosh_get_machine_id(void __iomem *bios) in tosh_get_machine_id() argument
379 id = (0x100*(int) readb(bios+0xfffe))+((int) readb(bios+0xfffa)); in tosh_get_machine_id()
406 cx = readw(bios + address); in tosh_get_machine_id()
408 cx = readw(bios + address); in tosh_get_machine_id()
410 cx = readw(bios + address); in tosh_get_machine_id()
433 void __iomem *bios = ioremap_cache(0xf0000, 0x10000); in tosh_probe() local
435 if (!bios) in tosh_probe()
442 if (readb(bios+0xe010+i)!=signature[i]) { in tosh_probe()
444 iounmap(bios); in tosh_probe()
460 iounmap(bios); in tosh_probe()
470 tosh_id = tosh_get_machine_id(bios); in tosh_probe()
474 major = readb(bios+0xe009)-'0'; in tosh_probe()
475 minor = ((readb(bios+0xe00b)-'0')*10)+(readb(bios+0xe00c)-'0'); in tosh_probe()
480 day = ((readb(bios+0xfff5)-'0')*10)+(readb(bios+0xfff6)-'0'); in tosh_probe()
481 month = ((readb(bios+0xfff8)-'0')*10)+(readb(bios+0xfff9)-'0'); in tosh_probe()
482 year = ((readb(bios+0xfffb)-'0')*10)+(readb(bios+0xfffc)-'0'); in tosh_probe()
499 iounmap(bios); in tosh_probe()