Lines Matching refs:RamIO

86 	void __iomem *RamIO;  member
148 if (apbs[boardno - 1].RamIO) { in ac_register_board()
157 apbs[boardno].RamIO = loc; in ac_register_board()
174 if (!apbs[i].RamIO) in applicom_exit()
180 iounmap(apbs[i].RamIO); in applicom_exit()
188 void __iomem *RamIO; in applicom_init() local
203 RamIO = ioremap(pci_resource_start(dev, 0), LEN_RAM_IO); in applicom_init()
205 if (!RamIO) { in applicom_init()
219 RamIO, 0); in applicom_init()
222 iounmap(RamIO); in applicom_init()
229 iounmap(RamIO); in applicom_init()
231 apbs[boardno - 1].RamIO = NULL; in applicom_init()
237 writeb(0x40, apbs[boardno - 1].RamIO + RAM_IT_FROM_PC); in applicom_init()
258 RamIO = ioremap(mem + (LEN_RAM_IO * i), LEN_RAM_IO); in applicom_init()
260 if (!RamIO) { in applicom_init()
266 RamIO,i+1))) { in applicom_init()
267 iounmap(RamIO); in applicom_init()
276 iounmap(RamIO); in applicom_init()
277 apbs[boardno - 1].RamIO = NULL; in applicom_init()
309 if (!apbs[i].RamIO) in applicom_init()
313 boardname[serial] = readb(apbs[i].RamIO + TYPE_CARD + serial); in applicom_init()
320 (int)(readb(apbs[i].RamIO + VERS) >> 4), in applicom_init()
321 (int)(readb(apbs[i].RamIO + VERS) & 0xF)); in applicom_init()
323 serial = (readb(apbs[i].RamIO + SERIAL_NUMBER) << 16) + in applicom_init()
324 (readb(apbs[i].RamIO + SERIAL_NUMBER + 1) << 8) + in applicom_init()
325 (readb(apbs[i].RamIO + SERIAL_NUMBER + 2) ); in applicom_init()
340 if (!apbs[i].RamIO) in applicom_init()
344 iounmap(apbs[i].RamIO); in applicom_init()
391 if (!apbs[IndexCard].RamIO) in ac_write()
423 if(readb(apbs[IndexCard].RamIO + DATA_FROM_PC_READY) > 2) { in ac_write()
424 Dummy = readb(apbs[IndexCard].RamIO + VERS); in ac_write()
427 IndexCard,(int)readb(apbs[IndexCard].RamIO + DATA_FROM_PC_READY)); in ac_write()
437 while (readb(apbs[IndexCard].RamIO + DATA_FROM_PC_READY) != 0) { in ac_write()
438 Dummy = readb(apbs[IndexCard].RamIO + VERS); in ac_write()
456 writeb(1, apbs[IndexCard].RamIO + DATA_FROM_PC_READY); in ac_write()
463 void __iomem *to = apbs[IndexCard].RamIO + RAM_FROM_PC; in ac_write()
470 writeb(0x20, apbs[IndexCard].RamIO + TIC_OWNER_FROM_PC); in ac_write()
471 writeb(0xff, apbs[IndexCard].RamIO + NUMCARD_OWNER_FROM_PC); in ac_write()
472 writeb(TicCard, apbs[IndexCard].RamIO + TIC_DES_FROM_PC); in ac_write()
473 writeb(NumCard, apbs[IndexCard].RamIO + NUMCARD_DES_FROM_PC); in ac_write()
474 writeb(2, apbs[IndexCard].RamIO + DATA_FROM_PC_READY); in ac_write()
475 writeb(1, apbs[IndexCard].RamIO + RAM_IT_FROM_PC); in ac_write()
476 Dummy = readb(apbs[IndexCard].RamIO + VERS); in ac_write()
484 void __iomem *from = apbs[IndexCard].RamIO + RAM_TO_PC; in do_ac_read()
490 st_loc->tic_owner_to_pc = readb(apbs[IndexCard].RamIO + TIC_OWNER_TO_PC); in do_ac_read()
491 st_loc->numcard_owner_to_pc = readb(apbs[IndexCard].RamIO + NUMCARD_OWNER_TO_PC); in do_ac_read()
500 writeb(1, apbs[IndexCard].RamIO + ACK_FROM_PC_READY); in do_ac_read()
501 writeb(1, apbs[IndexCard].RamIO + TYP_ACK_FROM_PC); in do_ac_read()
502 writeb(IndexCard+1, apbs[IndexCard].RamIO + NUMCARD_ACK_FROM_PC); in do_ac_read()
503 writeb(readb(apbs[IndexCard].RamIO + TIC_OWNER_TO_PC), in do_ac_read()
504 apbs[IndexCard].RamIO + TIC_ACK_FROM_PC); in do_ac_read()
505 writeb(2, apbs[IndexCard].RamIO + ACK_FROM_PC_READY); in do_ac_read()
506 writeb(0, apbs[IndexCard].RamIO + DATA_TO_PC_READY); in do_ac_read()
507 writeb(2, apbs[IndexCard].RamIO + RAM_IT_FROM_PC); in do_ac_read()
508 Dummy = readb(apbs[IndexCard].RamIO + VERS); in do_ac_read()
559 if (!apbs[i].RamIO) in ac_read()
563 tmp = readb(apbs[i].RamIO + DATA_TO_PC_READY); in ac_read()
585 Dummy = readb(apbs[i].RamIO + VERS); in ac_read()
592 i,(int)readb(apbs[i].RamIO + DATA_TO_PC_READY)); in ac_read()
598 Dummy = readb(apbs[i].RamIO + VERS); in ac_read()
635 if (!apbs[i].RamIO) in ac_interrupt()
641 if(readb(apbs[i].RamIO + RAM_IT_TO_PC) == 0) { in ac_interrupt()
648 writeb(0, apbs[i].RamIO + RAM_IT_TO_PC); in ac_interrupt()
650 if (readb(apbs[i].RamIO + DATA_TO_PC_READY) > 2) { in ac_interrupt()
652 i+1,(int)readb(apbs[i].RamIO + DATA_TO_PC_READY)); in ac_interrupt()
656 if((readb(apbs[i].RamIO + DATA_FROM_PC_READY) > 2) && in ac_interrupt()
657 (readb(apbs[i].RamIO + DATA_FROM_PC_READY) != 6)) { in ac_interrupt()
660 i+1,(int)readb(apbs[i].RamIO + DATA_FROM_PC_READY)); in ac_interrupt()
664 if (readb(apbs[i].RamIO + DATA_TO_PC_READY) == 2) { /* mailbox sent by the card ? */ in ac_interrupt()
670 if (readb(apbs[i].RamIO + DATA_FROM_PC_READY) == 0) { /* ram i/o free for write by pc ? */ in ac_interrupt()
675 Dummy = readb(apbs[i].RamIO + VERS); in ac_interrupt()
677 if(readb(apbs[i].RamIO + RAM_IT_TO_PC)) { in ac_interrupt()
721 if (cmd != 6 && !apbs[IndexCard].RamIO) in ac_ioctl()
727 pmem = apbs[IndexCard].RamIO; in ac_ioctl()
734 pmem = apbs[IndexCard].RamIO + CONF_END_TEST; in ac_ioctl()
741 pmem = apbs[IndexCard].RamIO + VERS; in ac_ioctl()
743 pmem = apbs[IndexCard].RamIO + TYPE_CARD; in ac_ioctl()
747 (readb(apbs[IndexCard].RamIO + SERIAL_NUMBER) << 16) + in ac_ioctl()
748 (readb(apbs[IndexCard].RamIO + SERIAL_NUMBER + 1) << 8) + in ac_ioctl()
749 (readb(apbs[IndexCard].RamIO + SERIAL_NUMBER + 2) ); in ac_ioctl()
755 pmem = apbs[IndexCard].RamIO + CONF_END_TEST; in ac_ioctl()
759 apbs[IndexCard].RamIO + DATA_FROM_PC_READY); in ac_ioctl()
761 writeb(1, apbs[IndexCard].RamIO + RAM_IT_FROM_PC); in ac_ioctl()
764 if (apbs[i].RamIO) { in ac_ioctl()
765 byte_reset_it = readb(apbs[i].RamIO + RAM_IT_TO_PC); in ac_ioctl()
770 pmem = apbs[IndexCard].RamIO + TIC_DES_FROM_PC; in ac_ioctl()
774 pmem = apbs[IndexCard].RamIO + TIC_OWNER_TO_PC; in ac_ioctl()
781 writeb(adgl->num_card, apbs[IndexCard].RamIO + NUMCARD_OWNER_TO_PC); in ac_ioctl()
782 writeb(adgl->num_card, apbs[IndexCard].RamIO + NUMCARD_DES_FROM_PC); in ac_ioctl()
783 writeb(adgl->num_card, apbs[IndexCard].RamIO + NUMCARD_ACK_FROM_PC); in ac_ioctl()
784 writeb(4, apbs[IndexCard].RamIO + DATA_FROM_PC_READY); in ac_ioctl()
785 writeb(1, apbs[IndexCard].RamIO + RAM_IT_FROM_PC); in ac_ioctl()
796 if (!apbs[i].RamIO) in ac_ioctl()
800 boardname[serial] = readb(apbs[i].RamIO + TYPE_CARD + serial); in ac_ioctl()
805 (int)(readb(apbs[i].RamIO + VERS) >> 4), in ac_ioctl()
806 (int)(readb(apbs[i].RamIO + VERS) & 0xF), in ac_ioctl()
810 serial = (readb(apbs[i].RamIO + SERIAL_NUMBER) << 16) + in ac_ioctl()
811 (readb(apbs[i].RamIO + SERIAL_NUMBER + 1) << 8) + in ac_ioctl()
812 (readb(apbs[i].RamIO + SERIAL_NUMBER + 2) ); in ac_ioctl()
828 if (apbs[i].RamIO && waitqueue_active(&apbs[i].FlagSleepSend)) in ac_ioctl()
836 Dummy = readb(apbs[IndexCard].RamIO + VERS); in ac_ioctl()