apbs 94 drivers/char/applicom.c } apbs[MAX_BOARD]; apbs 152 drivers/char/applicom.c if (apbs[boardno - 1].RamIO) { apbs 154 drivers/char/applicom.c boardno, physloc, boardno, apbs[boardno-1].PhysIO); apbs 160 drivers/char/applicom.c apbs[boardno].PhysIO = physloc; apbs 161 drivers/char/applicom.c apbs[boardno].RamIO = loc; apbs 162 drivers/char/applicom.c init_waitqueue_head(&apbs[boardno].FlagSleepSend); apbs 163 drivers/char/applicom.c spin_lock_init(&apbs[boardno].mutex); apbs 178 drivers/char/applicom.c if (!apbs[i].RamIO) apbs 181 drivers/char/applicom.c if (apbs[i].irq) apbs 182 drivers/char/applicom.c free_irq(apbs[i].irq, &dummy); apbs 184 drivers/char/applicom.c iounmap(apbs[i].RamIO); apbs 235 drivers/char/applicom.c apbs[boardno - 1].RamIO = NULL; apbs 241 drivers/char/applicom.c writeb(0x40, apbs[boardno - 1].RamIO + RAM_IT_FROM_PC); apbs 243 drivers/char/applicom.c apbs[boardno - 1].irq = dev->irq; apbs 281 drivers/char/applicom.c apbs[boardno - 1].RamIO = NULL; apbs 284 drivers/char/applicom.c apbs[boardno - 1].irq = irq; apbs 287 drivers/char/applicom.c apbs[boardno - 1].irq = 0; apbs 313 drivers/char/applicom.c if (!apbs[i].RamIO) apbs 317 drivers/char/applicom.c boardname[serial] = readb(apbs[i].RamIO + TYPE_CARD + serial); apbs 324 drivers/char/applicom.c (int)(readb(apbs[i].RamIO + VERS) >> 4), apbs 325 drivers/char/applicom.c (int)(readb(apbs[i].RamIO + VERS) & 0xF)); apbs 327 drivers/char/applicom.c serial = (readb(apbs[i].RamIO + SERIAL_NUMBER) << 16) + apbs 328 drivers/char/applicom.c (readb(apbs[i].RamIO + SERIAL_NUMBER + 1) << 8) + apbs 329 drivers/char/applicom.c (readb(apbs[i].RamIO + SERIAL_NUMBER + 2) ); apbs 344 drivers/char/applicom.c if (!apbs[i].RamIO) apbs 346 drivers/char/applicom.c if (apbs[i].irq) apbs 347 drivers/char/applicom.c free_irq(apbs[i].irq, &dummy); apbs 348 drivers/char/applicom.c iounmap(apbs[i].RamIO); apbs 395 drivers/char/applicom.c if (!apbs[IndexCard].RamIO) apbs 424 drivers/char/applicom.c spin_lock_irqsave(&apbs[IndexCard].mutex, flags); apbs 427 drivers/char/applicom.c if(readb(apbs[IndexCard].RamIO + DATA_FROM_PC_READY) > 2) { apbs 428 drivers/char/applicom.c Dummy = readb(apbs[IndexCard].RamIO + VERS); apbs 429 drivers/char/applicom.c spin_unlock_irqrestore(&apbs[IndexCard].mutex, flags); apbs 431 drivers/char/applicom.c IndexCard,(int)readb(apbs[IndexCard].RamIO + DATA_FROM_PC_READY)); apbs 438 drivers/char/applicom.c add_wait_queue(&apbs[IndexCard].FlagSleepSend, &wait); apbs 441 drivers/char/applicom.c while (readb(apbs[IndexCard].RamIO + DATA_FROM_PC_READY) != 0) { apbs 442 drivers/char/applicom.c Dummy = readb(apbs[IndexCard].RamIO + VERS); apbs 445 drivers/char/applicom.c spin_unlock_irqrestore(&apbs[IndexCard].mutex, flags); apbs 448 drivers/char/applicom.c remove_wait_queue(&apbs[IndexCard].FlagSleepSend, apbs 452 drivers/char/applicom.c spin_lock_irqsave(&apbs[IndexCard].mutex, flags); apbs 458 drivers/char/applicom.c remove_wait_queue(&apbs[IndexCard].FlagSleepSend, &wait); apbs 460 drivers/char/applicom.c writeb(1, apbs[IndexCard].RamIO + DATA_FROM_PC_READY); apbs 467 drivers/char/applicom.c void __iomem *to = apbs[IndexCard].RamIO + RAM_FROM_PC; apbs 474 drivers/char/applicom.c writeb(0x20, apbs[IndexCard].RamIO + TIC_OWNER_FROM_PC); apbs 475 drivers/char/applicom.c writeb(0xff, apbs[IndexCard].RamIO + NUMCARD_OWNER_FROM_PC); apbs 476 drivers/char/applicom.c writeb(TicCard, apbs[IndexCard].RamIO + TIC_DES_FROM_PC); apbs 477 drivers/char/applicom.c writeb(NumCard, apbs[IndexCard].RamIO + NUMCARD_DES_FROM_PC); apbs 478 drivers/char/applicom.c writeb(2, apbs[IndexCard].RamIO + DATA_FROM_PC_READY); apbs 479 drivers/char/applicom.c writeb(1, apbs[IndexCard].RamIO + RAM_IT_FROM_PC); apbs 480 drivers/char/applicom.c Dummy = readb(apbs[IndexCard].RamIO + VERS); apbs 481 drivers/char/applicom.c spin_unlock_irqrestore(&apbs[IndexCard].mutex, flags); apbs 488 drivers/char/applicom.c void __iomem *from = apbs[IndexCard].RamIO + RAM_TO_PC; apbs 494 drivers/char/applicom.c st_loc->tic_owner_to_pc = readb(apbs[IndexCard].RamIO + TIC_OWNER_TO_PC); apbs 495 drivers/char/applicom.c st_loc->numcard_owner_to_pc = readb(apbs[IndexCard].RamIO + NUMCARD_OWNER_TO_PC); apbs 504 drivers/char/applicom.c writeb(1, apbs[IndexCard].RamIO + ACK_FROM_PC_READY); apbs 505 drivers/char/applicom.c writeb(1, apbs[IndexCard].RamIO + TYP_ACK_FROM_PC); apbs 506 drivers/char/applicom.c writeb(IndexCard+1, apbs[IndexCard].RamIO + NUMCARD_ACK_FROM_PC); apbs 507 drivers/char/applicom.c writeb(readb(apbs[IndexCard].RamIO + TIC_OWNER_TO_PC), apbs 508 drivers/char/applicom.c apbs[IndexCard].RamIO + TIC_ACK_FROM_PC); apbs 509 drivers/char/applicom.c writeb(2, apbs[IndexCard].RamIO + ACK_FROM_PC_READY); apbs 510 drivers/char/applicom.c writeb(0, apbs[IndexCard].RamIO + DATA_TO_PC_READY); apbs 511 drivers/char/applicom.c writeb(2, apbs[IndexCard].RamIO + RAM_IT_FROM_PC); apbs 512 drivers/char/applicom.c Dummy = readb(apbs[IndexCard].RamIO + VERS); apbs 563 drivers/char/applicom.c if (!apbs[i].RamIO) apbs 565 drivers/char/applicom.c spin_lock_irqsave(&apbs[i].mutex, flags); apbs 567 drivers/char/applicom.c tmp = readb(apbs[i].RamIO + DATA_TO_PC_READY); apbs 576 drivers/char/applicom.c spin_unlock_irqrestore(&apbs[i].mutex, flags); apbs 589 drivers/char/applicom.c Dummy = readb(apbs[i].RamIO + VERS); apbs 591 drivers/char/applicom.c spin_unlock_irqrestore(&apbs[i].mutex, flags); apbs 596 drivers/char/applicom.c i,(int)readb(apbs[i].RamIO + DATA_TO_PC_READY)); apbs 602 drivers/char/applicom.c Dummy = readb(apbs[i].RamIO + VERS); apbs 603 drivers/char/applicom.c spin_unlock_irqrestore(&apbs[i].mutex, flags); apbs 639 drivers/char/applicom.c if (!apbs[i].RamIO) apbs 642 drivers/char/applicom.c spin_lock(&apbs[i].mutex); apbs 645 drivers/char/applicom.c if(readb(apbs[i].RamIO + RAM_IT_TO_PC) == 0) { apbs 646 drivers/char/applicom.c spin_unlock(&apbs[i].mutex); apbs 652 drivers/char/applicom.c writeb(0, apbs[i].RamIO + RAM_IT_TO_PC); apbs 654 drivers/char/applicom.c if (readb(apbs[i].RamIO + DATA_TO_PC_READY) > 2) { apbs 656 drivers/char/applicom.c i+1,(int)readb(apbs[i].RamIO + DATA_TO_PC_READY)); apbs 660 drivers/char/applicom.c if((readb(apbs[i].RamIO + DATA_FROM_PC_READY) > 2) && apbs 661 drivers/char/applicom.c (readb(apbs[i].RamIO + DATA_FROM_PC_READY) != 6)) { apbs 664 drivers/char/applicom.c i+1,(int)readb(apbs[i].RamIO + DATA_FROM_PC_READY)); apbs 668 drivers/char/applicom.c if (readb(apbs[i].RamIO + DATA_TO_PC_READY) == 2) { /* mailbox sent by the card ? */ apbs 674 drivers/char/applicom.c if (readb(apbs[i].RamIO + DATA_FROM_PC_READY) == 0) { /* ram i/o free for write by pc ? */ apbs 675 drivers/char/applicom.c if (waitqueue_active(&apbs[i].FlagSleepSend)) { /* process sleep during read ? */ apbs 676 drivers/char/applicom.c wake_up_interruptible(&apbs[i].FlagSleepSend); apbs 679 drivers/char/applicom.c Dummy = readb(apbs[i].RamIO + VERS); apbs 681 drivers/char/applicom.c if(readb(apbs[i].RamIO + RAM_IT_TO_PC)) { apbs 683 drivers/char/applicom.c spin_unlock(&apbs[i].mutex); apbs 686 drivers/char/applicom.c spin_unlock(&apbs[i].mutex); apbs 725 drivers/char/applicom.c if (cmd != 6 && !apbs[IndexCard].RamIO) apbs 731 drivers/char/applicom.c pmem = apbs[IndexCard].RamIO; apbs 738 drivers/char/applicom.c pmem = apbs[IndexCard].RamIO + CONF_END_TEST; apbs 745 drivers/char/applicom.c pmem = apbs[IndexCard].RamIO + VERS; apbs 747 drivers/char/applicom.c pmem = apbs[IndexCard].RamIO + TYPE_CARD; apbs 751 drivers/char/applicom.c (readb(apbs[IndexCard].RamIO + SERIAL_NUMBER) << 16) + apbs 752 drivers/char/applicom.c (readb(apbs[IndexCard].RamIO + SERIAL_NUMBER + 1) << 8) + apbs 753 drivers/char/applicom.c (readb(apbs[IndexCard].RamIO + SERIAL_NUMBER + 2) ); apbs 759 drivers/char/applicom.c pmem = apbs[IndexCard].RamIO + CONF_END_TEST; apbs 763 drivers/char/applicom.c apbs[IndexCard].RamIO + DATA_FROM_PC_READY); apbs 765 drivers/char/applicom.c writeb(1, apbs[IndexCard].RamIO + RAM_IT_FROM_PC); apbs 768 drivers/char/applicom.c if (apbs[i].RamIO) { apbs 769 drivers/char/applicom.c byte_reset_it = readb(apbs[i].RamIO + RAM_IT_TO_PC); apbs 774 drivers/char/applicom.c pmem = apbs[IndexCard].RamIO + TIC_DES_FROM_PC; apbs 778 drivers/char/applicom.c pmem = apbs[IndexCard].RamIO + TIC_OWNER_TO_PC; apbs 785 drivers/char/applicom.c writeb(adgl->num_card, apbs[IndexCard].RamIO + NUMCARD_OWNER_TO_PC); apbs 786 drivers/char/applicom.c writeb(adgl->num_card, apbs[IndexCard].RamIO + NUMCARD_DES_FROM_PC); apbs 787 drivers/char/applicom.c writeb(adgl->num_card, apbs[IndexCard].RamIO + NUMCARD_ACK_FROM_PC); apbs 788 drivers/char/applicom.c writeb(4, apbs[IndexCard].RamIO + DATA_FROM_PC_READY); apbs 789 drivers/char/applicom.c writeb(1, apbs[IndexCard].RamIO + RAM_IT_FROM_PC); apbs 800 drivers/char/applicom.c if (!apbs[i].RamIO) apbs 804 drivers/char/applicom.c boardname[serial] = readb(apbs[i].RamIO + TYPE_CARD + serial); apbs 809 drivers/char/applicom.c (int)(readb(apbs[i].RamIO + VERS) >> 4), apbs 810 drivers/char/applicom.c (int)(readb(apbs[i].RamIO + VERS) & 0xF), apbs 814 drivers/char/applicom.c serial = (readb(apbs[i].RamIO + SERIAL_NUMBER) << 16) + apbs 815 drivers/char/applicom.c (readb(apbs[i].RamIO + SERIAL_NUMBER + 1) << 8) + apbs 816 drivers/char/applicom.c (readb(apbs[i].RamIO + SERIAL_NUMBER + 2) ); apbs 832 drivers/char/applicom.c if (apbs[i].RamIO && waitqueue_active(&apbs[i].FlagSleepSend)) apbs 840 drivers/char/applicom.c Dummy = readb(apbs[IndexCard].RamIO + VERS);