Lines Matching refs:baseAddr
472 void __iomem *baseAddr = brd->basemem; in moxa_load_bios() local
475 writeb(HW_reset, baseAddr + Control_reg); /* reset */ in moxa_load_bios()
477 memset_io(baseAddr, 0, 4096); in moxa_load_bios()
478 memcpy_toio(baseAddr, buf, len); /* download BIOS */ in moxa_load_bios()
479 writeb(0, baseAddr + Control_reg); /* restart */ in moxa_load_bios()
486 tmp = readw(baseAddr + C218_key); in moxa_load_bios()
491 tmp = readw(baseAddr + C218_key); in moxa_load_bios()
496 tmp = readw(baseAddr + C320_key); in moxa_load_bios()
499 tmp = readw(baseAddr + C320_status); in moxa_load_bios()
517 void __iomem *baseAddr = brd->basemem; in moxa_load_320b() local
524 writew(len - 7168 - 2, baseAddr + C320bapi_len); in moxa_load_320b()
525 writeb(1, baseAddr + Control_reg); /* Select Page 1 */ in moxa_load_320b()
526 memcpy_toio(baseAddr + DynPage_addr, ptr, 7168); in moxa_load_320b()
527 writeb(2, baseAddr + Control_reg); /* Select Page 2 */ in moxa_load_320b()
528 memcpy_toio(baseAddr + DynPage_addr, ptr + 7168, len - 7168); in moxa_load_320b()
536 void __iomem *baseAddr = brd->basemem; in moxa_real_load_code() local
577 memcpy_toio(baseAddr + loadbuf, ptr + j, len2 << 1); in moxa_real_load_code()
580 writew(len2, baseAddr + loadlen); in moxa_real_load_code()
581 writew(0, baseAddr + key); in moxa_real_load_code()
583 if (readw(baseAddr + key) == keycode) in moxa_real_load_code()
587 if (readw(baseAddr + key) != keycode) in moxa_real_load_code()
590 writew(0, baseAddr + loadlen); in moxa_real_load_code()
591 writew(usum, baseAddr + checksum); in moxa_real_load_code()
592 writew(0, baseAddr + key); in moxa_real_load_code()
594 if (readw(baseAddr + key) == keycode) in moxa_real_load_code()
599 } while ((readb(baseAddr + checksum_ok) != 1) && (retry < 3)); in moxa_real_load_code()
600 if (readb(baseAddr + checksum_ok) != 1) in moxa_real_load_code()
603 writew(0, baseAddr + key); in moxa_real_load_code()
605 if (readw(baseAddr + Magic_no) == Magic_code) in moxa_real_load_code()
609 if (readw(baseAddr + Magic_no) != Magic_code) in moxa_real_load_code()
614 writew(0x3800, baseAddr + TMS320_PORT1); in moxa_real_load_code()
615 writew(0x3900, baseAddr + TMS320_PORT2); in moxa_real_load_code()
616 writew(28499, baseAddr + TMS320_CLOCK); in moxa_real_load_code()
618 writew(0x3200, baseAddr + TMS320_PORT1); in moxa_real_load_code()
619 writew(0x3400, baseAddr + TMS320_PORT2); in moxa_real_load_code()
620 writew(19999, baseAddr + TMS320_CLOCK); in moxa_real_load_code()
623 writew(1, baseAddr + Disable_IRQ); in moxa_real_load_code()
624 writew(0, baseAddr + Magic_no); in moxa_real_load_code()
626 if (readw(baseAddr + Magic_no) == Magic_code) in moxa_real_load_code()
630 if (readw(baseAddr + Magic_no) != Magic_code) in moxa_real_load_code()
634 j = readw(baseAddr + Module_cnt); in moxa_real_load_code()
638 writew(j, baseAddr + Module_no); in moxa_real_load_code()
639 writew(0, baseAddr + Magic_no); in moxa_real_load_code()
641 if (readw(baseAddr + Magic_no) == Magic_code) in moxa_real_load_code()
645 if (readw(baseAddr + Magic_no) != Magic_code) in moxa_real_load_code()
648 brd->intNdx = baseAddr + IRQindex; in moxa_real_load_code()
649 brd->intPend = baseAddr + IRQpending; in moxa_real_load_code()
650 brd->intTable = baseAddr + IRQtable; in moxa_real_load_code()
658 void __iomem *ofsAddr, *baseAddr = brd->basemem; in moxa_load_code() local
679 port->tableAddr = baseAddr + Extern_table + in moxa_load_code()
697 port->tableAddr = baseAddr + Extern_table + in moxa_load_code()
1873 void __iomem *baseAddr, *ofsAddr, *ofs; in MoxaPortWriteData() local
1879 baseAddr = port->board->basemem; in MoxaPortWriteData()
1892 writew(spage, baseAddr + Control_reg); in MoxaPortWriteData()
1899 ofs = baseAddr + DynPage_addr + bufhead + tail; in MoxaPortWriteData()
1912 writeb(pageno, baseAddr + Control_reg); in MoxaPortWriteData()
1913 ofs = baseAddr + DynPage_addr + pageofs; in MoxaPortWriteData()
1932 void __iomem *baseAddr, *ofsAddr, *ofs; in MoxaPortReadData() local
1938 baseAddr = port->board->basemem; in MoxaPortReadData()
1952 writew(spage, baseAddr + Control_reg); in MoxaPortReadData()
1954 ofs = baseAddr + DynPage_addr + bufhead + head; in MoxaPortReadData()
1967 writew(pageno, baseAddr + Control_reg); in MoxaPortReadData()
1968 ofs = baseAddr + DynPage_addr + pageofs; in MoxaPortReadData()