Lines Matching refs:baseAddr
460 void __iomem *baseAddr = brd->basemem; in moxa_load_bios() local
463 writeb(HW_reset, baseAddr + Control_reg); /* reset */ in moxa_load_bios()
465 memset_io(baseAddr, 0, 4096); in moxa_load_bios()
466 memcpy_toio(baseAddr, buf, len); /* download BIOS */ in moxa_load_bios()
467 writeb(0, baseAddr + Control_reg); /* restart */ in moxa_load_bios()
474 tmp = readw(baseAddr + C218_key); in moxa_load_bios()
479 tmp = readw(baseAddr + C218_key); in moxa_load_bios()
484 tmp = readw(baseAddr + C320_key); in moxa_load_bios()
487 tmp = readw(baseAddr + C320_status); in moxa_load_bios()
505 void __iomem *baseAddr = brd->basemem; in moxa_load_320b() local
512 writew(len - 7168 - 2, baseAddr + C320bapi_len); in moxa_load_320b()
513 writeb(1, baseAddr + Control_reg); /* Select Page 1 */ in moxa_load_320b()
514 memcpy_toio(baseAddr + DynPage_addr, ptr, 7168); in moxa_load_320b()
515 writeb(2, baseAddr + Control_reg); /* Select Page 2 */ in moxa_load_320b()
516 memcpy_toio(baseAddr + DynPage_addr, ptr + 7168, len - 7168); in moxa_load_320b()
524 void __iomem *baseAddr = brd->basemem; in moxa_real_load_code() local
565 memcpy_toio(baseAddr + loadbuf, ptr + j, len2 << 1); in moxa_real_load_code()
568 writew(len2, baseAddr + loadlen); in moxa_real_load_code()
569 writew(0, baseAddr + key); in moxa_real_load_code()
571 if (readw(baseAddr + key) == keycode) in moxa_real_load_code()
575 if (readw(baseAddr + key) != keycode) in moxa_real_load_code()
578 writew(0, baseAddr + loadlen); in moxa_real_load_code()
579 writew(usum, baseAddr + checksum); in moxa_real_load_code()
580 writew(0, baseAddr + key); in moxa_real_load_code()
582 if (readw(baseAddr + key) == keycode) in moxa_real_load_code()
587 } while ((readb(baseAddr + checksum_ok) != 1) && (retry < 3)); in moxa_real_load_code()
588 if (readb(baseAddr + checksum_ok) != 1) in moxa_real_load_code()
591 writew(0, baseAddr + key); in moxa_real_load_code()
593 if (readw(baseAddr + Magic_no) == Magic_code) in moxa_real_load_code()
597 if (readw(baseAddr + Magic_no) != Magic_code) in moxa_real_load_code()
602 writew(0x3800, baseAddr + TMS320_PORT1); in moxa_real_load_code()
603 writew(0x3900, baseAddr + TMS320_PORT2); in moxa_real_load_code()
604 writew(28499, baseAddr + TMS320_CLOCK); in moxa_real_load_code()
606 writew(0x3200, baseAddr + TMS320_PORT1); in moxa_real_load_code()
607 writew(0x3400, baseAddr + TMS320_PORT2); in moxa_real_load_code()
608 writew(19999, baseAddr + TMS320_CLOCK); in moxa_real_load_code()
611 writew(1, baseAddr + Disable_IRQ); in moxa_real_load_code()
612 writew(0, baseAddr + Magic_no); in moxa_real_load_code()
614 if (readw(baseAddr + Magic_no) == Magic_code) in moxa_real_load_code()
618 if (readw(baseAddr + Magic_no) != Magic_code) in moxa_real_load_code()
622 j = readw(baseAddr + Module_cnt); in moxa_real_load_code()
626 writew(j, baseAddr + Module_no); in moxa_real_load_code()
627 writew(0, baseAddr + Magic_no); in moxa_real_load_code()
629 if (readw(baseAddr + Magic_no) == Magic_code) in moxa_real_load_code()
633 if (readw(baseAddr + Magic_no) != Magic_code) in moxa_real_load_code()
636 brd->intNdx = baseAddr + IRQindex; in moxa_real_load_code()
637 brd->intPend = baseAddr + IRQpending; in moxa_real_load_code()
638 brd->intTable = baseAddr + IRQtable; in moxa_real_load_code()
646 void __iomem *ofsAddr, *baseAddr = brd->basemem; in moxa_load_code() local
667 port->tableAddr = baseAddr + Extern_table + in moxa_load_code()
685 port->tableAddr = baseAddr + Extern_table + in moxa_load_code()
1870 void __iomem *baseAddr, *ofsAddr, *ofs; in MoxaPortWriteData() local
1876 baseAddr = port->board->basemem; in MoxaPortWriteData()
1889 writew(spage, baseAddr + Control_reg); in MoxaPortWriteData()
1896 ofs = baseAddr + DynPage_addr + bufhead + tail; in MoxaPortWriteData()
1909 writeb(pageno, baseAddr + Control_reg); in MoxaPortWriteData()
1910 ofs = baseAddr + DynPage_addr + pageofs; in MoxaPortWriteData()
1929 void __iomem *baseAddr, *ofsAddr, *ofs; in MoxaPortReadData() local
1935 baseAddr = port->board->basemem; in MoxaPortReadData()
1949 writew(spage, baseAddr + Control_reg); in MoxaPortReadData()
1951 ofs = baseAddr + DynPage_addr + bufhead + head; in MoxaPortReadData()
1964 writew(pageno, baseAddr + Control_reg); in MoxaPortReadData()
1965 ofs = baseAddr + DynPage_addr + pageofs; in MoxaPortReadData()