Lines Matching refs:falcbase
403 void __iomem *falcbase = card->hw.falcbase;
406 while (cpc_readb(falcbase + F_REG(SIS, ch)) & SIS_CEC) {
413 cpc_writeb(falcbase + F_REG(CMDR, ch), cmd);
421 void __iomem *falcbase = card->hw.falcbase;
424 cpc_writeb(falcbase + F_REG(IPC, ch),
425 cpc_readb(falcbase + F_REG(IPC, ch)) & ~IPC_IC0);
427 cpc_writeb(falcbase + F_REG(FMR1, ch),
428 cpc_readb(falcbase + F_REG(FMR1, ch)) | FMR1_ECM);
430 cpc_writeb(falcbase + F_REG(IMR3, ch),
431 cpc_readb(falcbase + F_REG(IMR3, ch)) & ~(IMR3_SEC | IMR3_ES));
433 cpc_writeb(falcbase + F_REG(IMR4, ch),
434 cpc_readb(falcbase + F_REG(IMR4, ch)) & ~(IMR4_LOS));
436 cpc_writeb(falcbase + F_REG(IMR4, ch),
437 cpc_readb(falcbase + F_REG(IMR4, ch)) &
441 cpc_writeb(falcbase + F_REG(IMR3, ch),
442 cpc_readb(falcbase + F_REG(IMR3, ch)) & ~IMR3_LLBSC);
444 cpc_writeb(falcbase + F_REG(IPC, ch),
445 cpc_readb(falcbase + F_REG(IPC, ch)) | IPC_SCI);
447 cpc_writeb(falcbase + F_REG(IMR2, ch),
448 cpc_readb(falcbase + F_REG(IMR2, ch)) & ~(IMR2_LOS));
450 cpc_writeb(falcbase + F_REG(IMR2, ch),
451 cpc_readb(falcbase + F_REG(IMR2, ch)) &
454 cpc_writeb(falcbase + F_REG(IMR2, ch),
455 cpc_readb(falcbase + F_REG(IMR2, ch)) &
458 cpc_writeb(falcbase + F_REG(IMR2, ch),
459 cpc_readb(falcbase + F_REG(IMR2, ch)) |
468 void __iomem *falcbase = card->hw.falcbase;
471 cpc_writeb(falcbase + F_REG((ICB1 + (timeslot - tshf) / 8), ch),
472 cpc_readb(falcbase + F_REG((ICB1 + (timeslot - tshf) / 8), ch)) &
474 cpc_writeb(falcbase + F_REG((TTR1 + timeslot / 8), ch),
475 cpc_readb(falcbase + F_REG((TTR1 + timeslot / 8), ch)) |
477 cpc_writeb(falcbase + F_REG((RTR1 + timeslot / 8), ch),
478 cpc_readb(falcbase + F_REG((RTR1 + timeslot / 8), ch)) |
484 void __iomem *falcbase = card->hw.falcbase;
487 cpc_writeb(falcbase + F_REG((ICB1 + (timeslot - tshf) / 8), ch),
488 cpc_readb(falcbase + F_REG((ICB1 + (timeslot - tshf) / 8), ch)) |
490 cpc_writeb(falcbase + F_REG((TTR1 + timeslot / 8), ch),
491 cpc_readb(falcbase + F_REG((TTR1 + timeslot / 8), ch)) &
493 cpc_writeb(falcbase + F_REG((RTR1 + timeslot / 8), ch),
494 cpc_readb(falcbase + F_REG((RTR1 + timeslot / 8), ch)) &
502 void __iomem *falcbase = card->hw.falcbase;
504 cpc_writeb(falcbase + F_REG(ICB1, ch), 0xff);
505 cpc_writeb(falcbase + F_REG(TTR1, ch), 0);
506 cpc_writeb(falcbase + F_REG(RTR1, ch), 0);
507 cpc_writeb(falcbase + F_REG(ICB2, ch), 0xff);
508 cpc_writeb(falcbase + F_REG(TTR2, ch), 0);
509 cpc_writeb(falcbase + F_REG(RTR2, ch), 0);
510 cpc_writeb(falcbase + F_REG(ICB3, ch), 0xff);
511 cpc_writeb(falcbase + F_REG(TTR3, ch), 0);
512 cpc_writeb(falcbase + F_REG(RTR3, ch), 0);
514 cpc_writeb(falcbase + F_REG(ICB4, ch), 0xff);
515 cpc_writeb(falcbase + F_REG(TTR4, ch), 0);
516 cpc_writeb(falcbase + F_REG(RTR4, ch), 0);
524 void __iomem *falcbase = card->hw.falcbase;
526 cpc_writeb(falcbase + F_REG(ICB1, ch), 0);
528 cpc_writeb(falcbase + F_REG(TTR1, ch), 0xff);
529 cpc_writeb(falcbase + F_REG(RTR1, ch), 0xff);
532 cpc_writeb(falcbase + F_REG(TTR1, ch), 0x7f);
533 cpc_writeb(falcbase + F_REG(RTR1, ch), 0x7f);
535 cpc_writeb(falcbase + F_REG(ICB2, ch), 0);
536 cpc_writeb(falcbase + F_REG(TTR2, ch), 0xff);
537 cpc_writeb(falcbase + F_REG(RTR2, ch), 0xff);
538 cpc_writeb(falcbase + F_REG(ICB3, ch), 0);
539 cpc_writeb(falcbase + F_REG(TTR3, ch), 0xff);
540 cpc_writeb(falcbase + F_REG(RTR3, ch), 0xff);
542 cpc_writeb(falcbase + F_REG(ICB4, ch), 0);
543 cpc_writeb(falcbase + F_REG(TTR4, ch), 0xff);
544 cpc_writeb(falcbase + F_REG(RTR4, ch), 0xff);
546 cpc_writeb(falcbase + F_REG(ICB4, ch), 0xff);
547 cpc_writeb(falcbase + F_REG(TTR4, ch), 0x80);
548 cpc_writeb(falcbase + F_REG(RTR4, ch), 0x80);
581 cpc_writeb(card->hw.falcbase + card->hw.cpld_reg1,
582 cpc_readb(card->hw.falcbase + card->hw.cpld_reg1) &
595 cpc_writeb(card->hw.falcbase + card->hw.cpld_reg1,
596 cpc_readb(card->hw.falcbase + card->hw.cpld_reg1) |
605 void __iomem *falcbase = card->hw.falcbase;
609 cpc_writeb(falcbase + F_REG(FMR1, ch), FMR1_PMOD);
615 cpc_writeb(falcbase + F_REG(SIC1, ch), SIC1_XBS0);
619 cpc_writeb(falcbase + F_REG(LIM0, ch),
620 cpc_readb(falcbase + F_REG(LIM0, ch)) | LIM0_MAS);
622 cpc_writeb(falcbase + F_REG(LIM0, ch),
623 cpc_readb(falcbase + F_REG(LIM0, ch)) & ~LIM0_MAS);
624 cpc_writeb(falcbase + F_REG(LOOP, ch),
625 cpc_readb(falcbase + F_REG(LOOP, ch)) & ~LOOP_RTM);
628 cpc_writeb(falcbase + F_REG(IPC, ch), IPC_SCI);
629 cpc_writeb(falcbase + F_REG(FMR0, ch),
630 cpc_readb(falcbase + F_REG(FMR0, ch)) &
635 cpc_writeb(falcbase + F_REG(FMR0, ch),
636 cpc_readb(falcbase + F_REG(FMR0, ch)) |
639 cpc_writeb(falcbase + F_REG(CCB1, ch), 0xff);
640 cpc_writeb(falcbase + F_REG(CCB2, ch), 0xff);
641 cpc_writeb(falcbase + F_REG(CCB3, ch), 0xff);
645 cpc_writeb(falcbase + F_REG(FMR0, ch),
646 cpc_readb(falcbase + F_REG(FMR0, ch)) |
651 cpc_writeb(falcbase + F_REG(FMR0, ch),
652 cpc_readb(falcbase + F_REG(FMR0, ch)) | 0x00);
656 cpc_writeb(falcbase + F_REG(LIM0, ch),
657 cpc_readb(falcbase + F_REG(LIM0, ch)) | LIM0_ELOS);
658 cpc_writeb(falcbase + F_REG(LIM0, ch),
659 cpc_readb(falcbase + F_REG(LIM0, ch)) & ~(LIM0_SCL1 | LIM0_SCL0));
661 cpc_writeb(falcbase + F_REG(FMR1, ch),
662 cpc_readb(falcbase + F_REG(FMR1, ch)) | FMR1_IMOD);
667 cpc_writeb(falcbase + F_REG(FMR4, ch),
668 cpc_readb(falcbase + F_REG(FMR4, ch)) | FMR4_FM1);
669 cpc_writeb(falcbase + F_REG(FMR1, ch),
670 cpc_readb(falcbase + F_REG(FMR1, ch)) |
672 cpc_writeb(falcbase + F_REG(XDL1, ch), 0);
673 cpc_writeb(falcbase + F_REG(XDL2, ch), 0);
674 cpc_writeb(falcbase + F_REG(XDL3, ch), 0);
675 cpc_writeb(falcbase + F_REG(FMR0, ch),
676 cpc_readb(falcbase + F_REG(FMR0, ch)) & ~FMR0_SRAF);
677 cpc_writeb(falcbase + F_REG(FMR2, ch),
678 cpc_readb(falcbase + F_REG(FMR2,ch)) | FMR2_MCSP | FMR2_SSP);
683 cpc_writeb(falcbase + F_REG(FMR4, ch),
684 cpc_readb(falcbase + F_REG(FMR4, ch)) &
686 cpc_writeb(falcbase + F_REG(FMR0, ch),
687 cpc_readb(falcbase + F_REG(FMR0, ch)) | FMR0_SRAF);
688 cpc_writeb(falcbase + F_REG(FMR2, ch),
689 cpc_readb(falcbase + F_REG(FMR2, ch)) & ~FMR2_SSP);
694 cpc_writeb(falcbase + F_REG(FMR4, ch),
695 cpc_readb(falcbase + F_REG(FMR4, ch)) | FMR4_AUTO);
698 cpc_writeb(falcbase + F_REG(FMR2, ch),
699 cpc_readb(falcbase + F_REG(FMR2, ch)) | FMR2_AXRA);
702 cpc_writeb(falcbase + F_REG(FMR1, ch),
703 cpc_readb(falcbase + F_REG(FMR1, ch)) | FMR1_CTM);
706 cpc_writeb(falcbase + F_REG(FMR1, ch),
707 cpc_readb(falcbase + F_REG(FMR1, ch)) & ~FMR1_SIGM);
708 cpc_writeb(falcbase + F_REG(FMR5, ch),
709 cpc_readb(falcbase + F_REG(FMR5, ch)) &
711 cpc_writeb(falcbase + F_REG(CCR1, ch), 0);
713 cpc_writeb(falcbase + F_REG(LIM1, ch),
714 cpc_readb(falcbase + F_REG(LIM1, ch)) | LIM1_RIL0 | LIM1_RIL1);
719 cpc_writeb(falcbase + F_REG(LIM2, ch), (LIM2_LOS1 | dja));
720 cpc_writeb(falcbase + F_REG(XPM0, ch), 0x5a);
721 cpc_writeb(falcbase + F_REG(XPM1, ch), 0x8f);
722 cpc_writeb(falcbase + F_REG(XPM2, ch), 0x20);
725 cpc_writeb(falcbase + F_REG(LIM2, ch), (0x40 | LIM2_LOS1 | dja));
726 cpc_writeb(falcbase + F_REG(XPM0, ch), 0x11);
727 cpc_writeb(falcbase + F_REG(XPM1, ch), 0x02);
728 cpc_writeb(falcbase + F_REG(XPM2, ch), 0x20);
731 cpc_writeb(falcbase + F_REG(LIM2, ch), (0x80 | LIM2_LOS1 | dja));
732 cpc_writeb(falcbase + F_REG(XPM0, ch), 0x8e);
733 cpc_writeb(falcbase + F_REG(XPM1, ch), 0x01);
734 cpc_writeb(falcbase + F_REG(XPM2, ch), 0x20);
737 cpc_writeb(falcbase + F_REG(LIM2, ch), (0xc0 | LIM2_LOS1 | dja));
738 cpc_writeb(falcbase + F_REG(XPM0, ch), 0x09);
739 cpc_writeb(falcbase + F_REG(XPM1, ch), 0x01);
740 cpc_writeb(falcbase + F_REG(XPM2, ch), 0x20);
745 cpc_writeb(falcbase + F_REG(XC0, ch),
746 cpc_readb(falcbase + F_REG(XC0, ch)) | 0x01);
748 cpc_writeb(falcbase + F_REG(XC1, ch), 0x3e);
750 cpc_writeb(falcbase + F_REG(RC0, ch), 0x05);
752 cpc_writeb(falcbase + F_REG(RC1, ch), 0x00);
755 cpc_writeb(falcbase + F_REG(PCDR, ch), 0x0a);
757 cpc_writeb(falcbase + F_REG(PCRR, ch), 0x15);
759 cpc_writeb(falcbase + F_REG(IDLE, ch), 0x7f);
762 cpc_writeb(falcbase + F_REG(RC1, ch),
763 cpc_readb(falcbase + F_REG(RC1, ch)) | 0x80);
774 void __iomem *falcbase = card->hw.falcbase;
778 cpc_writeb(falcbase + F_REG(FMR1, ch),
779 cpc_readb(falcbase + F_REG(FMR1, ch)) & ~FMR1_PMOD);
783 cpc_writeb(falcbase + F_REG(LIM0, ch),
784 cpc_readb(falcbase + F_REG(LIM0, ch)) | LIM0_MAS);
786 cpc_writeb(falcbase + F_REG(LIM0, ch),
787 cpc_readb(falcbase + F_REG(LIM0, ch)) & ~LIM0_MAS);
789 cpc_writeb(falcbase + F_REG(LOOP, ch),
790 cpc_readb(falcbase + F_REG(LOOP, ch)) & ~LOOP_SFM);
792 cpc_writeb(falcbase + F_REG(IPC, ch), IPC_SCI);
793 cpc_writeb(falcbase + F_REG(FMR0, ch),
794 cpc_readb(falcbase + F_REG(FMR0, ch)) &
799 cpc_writeb(falcbase + F_REG(FMR0, ch),
800 cpc_readb(falcbase + F_REG(FMR0, ch)) |
805 cpc_writeb(falcbase + F_REG(FMR0, ch),
806 cpc_readb(falcbase + F_REG(FMR0, ch)) |
814 cpc_writeb(falcbase + F_REG(LIM0, ch),
815 cpc_readb(falcbase + F_REG(LIM0, ch)) & ~(LIM0_SCL1 | LIM0_SCL0));
817 cpc_writeb(falcbase + F_REG(FMR1, ch),
818 cpc_readb(falcbase + F_REG(FMR1, ch)) | FMR1_IMOD);
820 cpc_writeb(falcbase + F_REG(XPM0, ch), 0x18);
821 cpc_writeb(falcbase + F_REG(XPM1, ch), 0x03);
822 cpc_writeb(falcbase + F_REG(XPM2, ch), 0x00);
827 cpc_writeb(falcbase + F_REG(FMR1, ch),
828 cpc_readb(falcbase + F_REG(FMR1, ch)) | FMR1_XFS);
829 cpc_writeb(falcbase + F_REG(FMR2, ch),
830 cpc_readb(falcbase + F_REG(FMR2, ch)) | FMR2_RFS1);
831 cpc_writeb(falcbase + F_REG(FMR2, ch),
832 cpc_readb(falcbase + F_REG(FMR2, ch)) & ~FMR2_RFS0);
833 cpc_writeb(falcbase + F_REG(FMR3, ch),
834 cpc_readb(falcbase + F_REG(FMR3, ch)) & ~FMR3_EXTIW);
837 cpc_writeb(falcbase + F_REG(FMR1, ch),
838 cpc_readb(falcbase + F_REG(FMR1, ch)) | FMR1_MFCS);
841 cpc_writeb(falcbase + F_REG(FMR2, ch),
842 cpc_readb(falcbase + F_REG(FMR2, ch)) | FMR2_ALMF);
845 cpc_writeb(falcbase + F_REG(XSP, ch),
846 cpc_readb(falcbase + F_REG(XSP, ch)) & ~XSP_AXS);
847 cpc_writeb(falcbase + F_REG(XSP, ch),
848 cpc_readb(falcbase + F_REG(XSP, ch)) | XSP_EBP);
849 cpc_writeb(falcbase + F_REG(XSP, ch),
850 cpc_readb(falcbase + F_REG(XSP, ch)) | XSP_XS13 | XSP_XS15);
853 cpc_writeb(falcbase + F_REG(FMR1, ch),
854 cpc_readb(falcbase + F_REG(FMR1, ch)) | FMR1_AFR);
857 cpc_writeb(falcbase + F_REG(FMR2, ch),
858 cpc_readb(falcbase + F_REG(FMR2, ch)) | FMR2_AXRA);
861 cpc_writeb(falcbase + F_REG(XSW, ch),
862 cpc_readb(falcbase + F_REG(XSW, ch)) |
869 cpc_writeb(falcbase + F_REG(FMR1, ch),
870 cpc_readb(falcbase + F_REG(FMR1, ch)) & ~FMR1_XFS);
871 cpc_writeb(falcbase + F_REG(FMR2, ch),
872 cpc_readb(falcbase + F_REG(FMR2, ch)) &
874 cpc_writeb(falcbase + F_REG(XSW, ch),
875 cpc_readb(falcbase + F_REG(XSW, ch)) | XSW_XSIS);
876 cpc_writeb(falcbase + F_REG(XSP, ch),
877 cpc_readb(falcbase + F_REG(XSP, ch)) | XSP_XSIF);
880 cpc_writeb(falcbase + F_REG(FMR1, ch),
881 cpc_readb(falcbase + F_REG(FMR1, ch)) | FMR1_AFR);
884 cpc_writeb(falcbase + F_REG(FMR2, ch),
885 cpc_readb(falcbase + F_REG(FMR2, ch)) | FMR2_AXRA);
888 cpc_writeb(falcbase + F_REG(XSW, ch),
889 cpc_readb(falcbase + F_REG(XSW, ch)) |
895 cpc_writeb(falcbase + F_REG(FMR1, ch),
896 cpc_readb(falcbase + F_REG(FMR1, ch)) & ~FMR1_XFS);
897 cpc_writeb(falcbase + F_REG(FMR2, ch),
898 cpc_readb(falcbase + F_REG(FMR2, ch)) &
900 cpc_writeb(falcbase + F_REG(XSP, ch),
901 cpc_readb(falcbase + F_REG(XSP, ch)) | XSP_TT0);
902 cpc_writeb(falcbase + F_REG(XSW, ch),
903 cpc_readb(falcbase + F_REG(XSW, ch)) &
905 cpc_writeb(falcbase + F_REG(TSWM, ch), 0xff);
906 cpc_writeb(falcbase + F_REG(FMR2, ch),
907 cpc_readb(falcbase + F_REG(FMR2, ch)) |
909 cpc_writeb(falcbase + F_REG(FMR2, ch),
910 cpc_readb(falcbase + F_REG(FMR2, ch)) & ~FMR2_AXRA);
911 cpc_writeb(falcbase + F_REG(FMR1, ch),
912 cpc_readb(falcbase + F_REG(FMR1, ch)) & ~FMR1_AFR);
914 cpc_writeb(falcbase + card->hw.cpld_reg2,
915 cpc_readb(falcbase + card->hw.cpld_reg2) |
921 cpc_writeb(falcbase + F_REG(XSP, ch),
922 cpc_readb(falcbase + F_REG(XSP, ch)) & ~XSP_CASEN);
923 cpc_writeb(falcbase + F_REG(CCR1, ch), 0);
925 cpc_writeb(falcbase + F_REG(LIM1, ch),
926 cpc_readb(falcbase + F_REG(LIM1, ch)) | LIM1_RIL0 | LIM1_RIL1);
927 cpc_writeb(falcbase + F_REG(LIM2, ch), (LIM2_LOS1 | dja));
930 cpc_writeb(falcbase + F_REG(XC0, ch),
931 cpc_readb(falcbase + F_REG(XC0, ch)) | 0x01);
933 cpc_writeb(falcbase + F_REG(XC1, ch), 0x3e);
935 cpc_writeb(falcbase + F_REG(RC0, ch), 0x05);
937 cpc_writeb(falcbase + F_REG(RC1, ch), 0x00);
940 cpc_writeb(falcbase + F_REG(PCDR, ch), 0x0a);
942 cpc_writeb(falcbase + F_REG(PCRR, ch), 0x15);
944 cpc_writeb(falcbase + F_REG(IDLE, ch), 0x7f);
951 void __iomem *falcbase = card->hw.falcbase;
957 cpc_writeb(falcbase + F_REG(MODE, ch), 0);
959 cpc_writeb(falcbase + F_REG(MODE, ch),
960 cpc_readb(falcbase + F_REG(MODE, ch)) |
962 cpc_writeb(falcbase + F_REG(RAH2, ch), 0xff);
963 cpc_writeb(falcbase + F_REG(RAH1, ch), 0xff);
964 cpc_writeb(falcbase + F_REG(RAL2, ch), 0xff);
965 cpc_writeb(falcbase + F_REG(RAL1, ch), 0xff);
980 void __iomem *falcbase = card->hw.falcbase;
1002 cpc_writeb(card->hw.falcbase + card->hw.cpld_reg1,
1003 cpc_readb(card->hw.falcbase + card->hw.cpld_reg1) |
1006 cpc_writeb(card->hw.falcbase + card->hw.cpld_reg1,
1007 cpc_readb(card->hw.falcbase + card->hw.cpld_reg1) &
1017 cpc_writeb(falcbase + F_REG(LIM0, ch),
1018 cpc_readb(falcbase + F_REG(LIM0, ch)) & ~LIM0_EQON);
1020 cpc_writeb(falcbase + F_REG(LIM0, ch),
1021 cpc_readb(falcbase + F_REG(LIM0, ch)) | LIM0_EQON);
1023 cpc_writeb(card->hw.falcbase + card->hw.cpld_reg2,
1024 cpc_readb(card->hw.falcbase + card->hw.cpld_reg2) |
1028 dummy = cpc_readb(falcbase + F_REG(FISR0, ch)) +
1029 cpc_readb(falcbase + F_REG(FISR1, ch)) +
1030 cpc_readb(falcbase + F_REG(FISR2, ch)) +
1031 cpc_readb(falcbase + F_REG(FISR3, ch));
1040 void __iomem *falcbase = card->hw.falcbase;
1052 cpc_writeb(falcbase + F_REG(IMR0, ch),
1053 cpc_readb(falcbase + F_REG(IMR0, ch))
1076 cpc_writeb(falcbase + F_REG(IMR0, ch),
1077 cpc_readb(falcbase + F_REG(IMR0, ch)) | IMR0_PDEN);
1096 cpc_writeb(falcbase + F_REG(IMR0, ch),
1097 cpc_readb(falcbase + F_REG(IMR0, ch))
1123 cpc_writeb(falcbase + F_REG(IMR0, ch),
1124 cpc_readb(falcbase + F_REG(IMR0, ch))
1156 cpc_writeb(falcbase + card->hw.cpld_reg2,
1157 cpc_readb(falcbase + card->hw.cpld_reg2) &
1164 cpc_writeb(falcbase + card->hw.cpld_reg2,
1165 cpc_readb(falcbase + card->hw.cpld_reg2) |
1177 cpc_writeb(falcbase + F_REG(IMR0, ch),
1178 cpc_readb(falcbase + F_REG(IMR0, ch)) & ~IMR0_PDEN);
1196 void __iomem *falcbase = card->hw.falcbase;
1199 counter = cpc_readb(falcbase + F_REG(FECL, ch));
1200 counter |= cpc_readb(falcbase + F_REG(FECH, ch)) << 8;
1203 counter = cpc_readb(falcbase + F_REG(CVCL, ch));
1204 counter |= cpc_readb(falcbase + F_REG(CVCH, ch)) << 8;
1207 counter = cpc_readb(falcbase + F_REG(CECL, ch));
1208 counter |= cpc_readb(falcbase + F_REG(CECH, ch)) << 8;
1211 counter = cpc_readb(falcbase + F_REG(EBCL, ch));
1212 counter |= cpc_readb(falcbase + F_REG(EBCH, ch)) << 8;
1215 if (cpc_readb(falcbase + F_REG(LCR1, ch)) & LCR1_EPRM) {
1217 counter = cpc_readb(falcbase + F_REG(BECL, ch));
1218 counter |= cpc_readb(falcbase + F_REG(BECH, ch)) << 8;
1222 (cpc_readb(falcbase + F_REG(FRS1, ch)) & FRS1_LLBAD) &&
1223 (!(cpc_readb(falcbase + F_REG(FRS1, ch)) & FRS1_PDEN))) ||
1225 (cpc_readb(falcbase + F_REG(RSP, ch)) & RSP_LLBAD))) {
1248 void __iomem *falcbase = card->hw.falcbase;
1255 cpc_writeb(falcbase + F_REG(IMR0, ch),
1256 cpc_readb(falcbase + F_REG(IMR0, ch)) | IMR0_PDEN);
1260 cpc_writeb(falcbase + F_REG(LIM1, ch),
1261 cpc_readb(falcbase + F_REG(LIM1, ch)) | LIM1_RL);
1264 cpc_writeb(falcbase + F_REG(LIM1, ch),
1265 cpc_readb(falcbase + F_REG(LIM1, ch)) & ~LIM1_RL);
1267 cpc_writeb(falcbase + card->hw.cpld_reg2,
1268 cpc_readb(falcbase + card->hw.cpld_reg2) &
1292 void __iomem *falcbase = card->hw.falcbase;
1295 cpc_writeb(falcbase + F_REG(LIM0, ch),
1296 cpc_readb(falcbase + F_REG(LIM0, ch)) | LIM0_LL);
1299 cpc_writeb(falcbase + F_REG(LIM0, ch),
1300 cpc_readb(falcbase + F_REG(LIM0, ch)) & ~LIM0_LL);
1320 void __iomem *falcbase = card->hw.falcbase;
1327 cpc_writeb(falcbase + F_REG(IMR0, ch),
1328 cpc_readb(falcbase + F_REG(IMR0, ch)) | IMR0_PDEN);
1332 cpc_writeb(falcbase + F_REG(FMR2, ch),
1333 cpc_readb(falcbase + F_REG(FMR2, ch)) | FMR2_PLB);
1335 cpc_writeb(falcbase + F_REG(FMR4, ch),
1336 cpc_readb(falcbase + F_REG(FMR4, ch)) | FMR4_TM);
1338 cpc_writeb(falcbase + F_REG(FMR5, ch),
1339 cpc_readb(falcbase + F_REG(FMR5, ch)) | XSP_TT0);
1344 cpc_writeb(falcbase + F_REG(FMR2, ch),
1345 cpc_readb(falcbase + F_REG(FMR2, ch)) & ~FMR2_PLB);
1347 cpc_writeb(falcbase + F_REG(FMR4, ch),
1348 cpc_readb(falcbase + F_REG(FMR4, ch)) & ~FMR4_TM);
1350 cpc_writeb(falcbase + F_REG(FMR5, ch),
1351 cpc_readb(falcbase + F_REG(FMR5, ch)) & ~XSP_TT0);
1354 cpc_writeb(falcbase + card->hw.cpld_reg2,
1355 cpc_readb(falcbase + card->hw.cpld_reg2) &
1373 void __iomem *falcbase = card->hw.falcbase;
1376 cpc_writeb(falcbase + F_REG(FMR5, ch),
1377 cpc_readb(falcbase + F_REG(FMR5, ch)) & ~FMR5_XLU);
1379 cpc_writeb(falcbase + F_REG(FMR3, ch),
1380 cpc_readb(falcbase + F_REG(FMR3, ch)) & ~FMR3_XLU);
1394 void __iomem *falcbase = card->hw.falcbase;
1397 cpc_writeb(falcbase + F_REG(FMR5, ch),
1398 cpc_readb(falcbase + F_REG(FMR5, ch)) & ~FMR5_XLD);
1400 cpc_writeb(falcbase + F_REG(FMR3, ch),
1401 cpc_readb(falcbase + F_REG(FMR3, ch)) & ~FMR3_XLD);
1417 void __iomem *falcbase = card->hw.falcbase;
1420 cpc_writeb(falcbase + F_REG(FMR5, ch),
1421 cpc_readb(falcbase + F_REG(FMR5, ch)) | FMR5_XLU);
1423 cpc_writeb(falcbase + F_REG(FMR3, ch),
1424 cpc_readb(falcbase + F_REG(FMR3, ch)) | FMR3_XLU);
1430 cpc_writeb(falcbase + F_REG(IMR0, ch),
1431 cpc_readb(falcbase + F_REG(IMR0, ch)) | IMR0_PDEN);
1450 void __iomem *falcbase = card->hw.falcbase;
1453 cpc_writeb(falcbase + F_REG(FMR5, ch),
1454 cpc_readb(falcbase + F_REG(FMR5, ch)) | FMR5_XLD);
1456 cpc_writeb(falcbase + F_REG(FMR3, ch),
1457 cpc_readb(falcbase + F_REG(FMR3, ch)) | FMR3_XLD);
1460 cpc_writeb(falcbase + card->hw.cpld_reg2,
1461 cpc_readb(falcbase + card->hw.cpld_reg2) &
1480 void __iomem *falcbase = card->hw.falcbase;
1487 cpc_writeb(falcbase + F_REG(IMR3, ch),
1488 cpc_readb(falcbase + F_REG(IMR3, ch)) | IMR3_LLBSC);
1491 cpc_writeb(falcbase + F_REG(IMR1, ch),
1492 cpc_readb(falcbase + F_REG(IMR1, ch)) | IMR1_LLBSC);
1496 cpc_writeb(falcbase + F_REG(LCR1, ch),
1497 cpc_readb(falcbase + F_REG(LCR1, ch)) | LCR1_EPRM | LCR1_XPRBS);
1502 cpc_writeb(falcbase + F_REG(LCR1, ch),
1503 cpc_readb(falcbase+F_REG(LCR1,ch)) & ~(LCR1_EPRM | LCR1_XPRBS));
1506 cpc_writeb(falcbase + F_REG(IMR3, ch),
1507 cpc_readb(falcbase + F_REG(IMR3, ch)) & ~IMR3_LLBSC);
1510 cpc_writeb(falcbase + F_REG(IMR1, ch),
1511 cpc_readb(falcbase + F_REG(IMR1, ch)) & ~IMR1_LLBSC);
1580 cpc_writeb(card->hw.falcbase + card->hw.cpld_reg2,
1581 cpc_readb(card->hw.falcbase + card->hw.cpld_reg2) &
1615 cpc_writeb(card->hw.falcbase + card->hw.cpld_reg2,
1616 cpc_readb(card->hw.falcbase + card->hw.cpld_reg2) &
1656 cpc_writeb(card->hw.falcbase + card->hw.cpld_reg2,
1657 cpc_readb(card->hw.falcbase + card->hw.cpld_reg2) |
1842 cpc_writeb(card->hw.falcbase +
1844 cpc_readb (card->hw.falcbase +
1859 cpc_writeb(card->hw.falcbase +
1861 cpc_readb (card->hw.falcbase +
1893 cpc_writeb(card->hw.falcbase + card->hw.cpld_reg2,
1894 cpc_readb (card->hw.falcbase +
1910 cpc_writeb(card->hw.falcbase + card->hw.cpld_reg2,
1911 cpc_readb (card->hw.falcbase +
1968 void __iomem *falcbase = card->hw.falcbase;
1970 if (((cpc_readb(falcbase + F_REG(LCR1, ch)) & LCR1_XPRBS) == 0) &&
1979 ((cpc_readb(falcbase + F_REG(LCR1, ch)) & LCR1_EPRM) == 0)) {
1993 void __iomem *falcbase = card->hw.falcbase;
1995 if (((cpc_readb(falcbase + F_REG(LCR1, ch)) & LCR1_XPRBS) == 0) &&
2004 ((cpc_readb(falcbase + F_REG(LCR1, ch)) & LCR1_EPRM) == 0)) {
2018 void __iomem *falcbase = card->hw.falcbase;
2022 while ((gis = cpc_readb(falcbase + F_REG(GIS, ch))) != 0) {
2024 isr0 = cpc_readb(falcbase + F_REG(FISR0, ch));
2027 if (cpc_readb(falcbase + F_REG(FRS1, ch)) &
2035 dummy = cpc_readb(falcbase + F_REG(FISR1, ch));
2039 dummy = cpc_readb(falcbase + F_REG(FISR2, ch));
2043 isr3 = cpc_readb(falcbase + F_REG(FISR3, ch));
2048 cpc_readb(falcbase + F_REG(FRS0, ch)));
2055 cpc_readb(falcbase + F_REG(FRS1, ch)));
2065 void __iomem *falcbase = card->hw.falcbase;
2069 while ((gis = cpc_readb(falcbase + F_REG(GIS, ch))) != 0) {
2070 rsp = cpc_readb(falcbase + F_REG(RSP, ch));
2073 dummy = cpc_readb(falcbase + F_REG(FISR0, ch));
2076 isr1 = cpc_readb(falcbase + F_REG(FISR1, ch));
2080 if (cpc_readb (falcbase + F_REG(FRS0, ch)) &
2082 cpc_writeb(falcbase + F_REG(XSP, ch),
2083 cpc_readb(falcbase + F_REG(XSP, ch))
2086 cpc_writeb(falcbase + F_REG(XSP, ch),
2087 cpc_readb(falcbase + F_REG(XSP, ch))
2092 cpc_writeb(falcbase + F_REG(IMR1, ch),
2093 cpc_readb(falcbase + F_REG(IMR1, ch)) | IMR1_XMB);
2100 isr2 = cpc_readb(falcbase + F_REG(FISR2, ch));
2102 cpc_writeb(falcbase + F_REG(XSW, ch),
2103 cpc_readb(falcbase + F_REG(XSW, ch)) | XSW_XRA);
2106 cpc_writeb(falcbase + F_REG(XSW, ch),
2107 cpc_readb(falcbase + F_REG(XSW, ch)) & ~XSW_XRA);
2111 cpc_writeb(falcbase + F_REG(IMR1, ch),
2112 cpc_readb(falcbase + F_REG(IMR1, ch)) & ~IMR1_XMB);
2116 isr3 = cpc_readb(falcbase + F_REG(FISR3, ch));
2121 cpc_readb(falcbase + F_REG(FRS0, ch)));
2912 cpc_writeb(card->hw.falcbase + card->hw.cpld_reg2,
2913 cpc_readb(card->hw.falcbase + card->hw.cpld_reg2) &
2917 cpc_writeb(card->hw.falcbase + card->hw.cpld_reg1,
2918 cpc_readb(card->hw.falcbase + card->hw.cpld_reg1) |
2921 cpc_writeb(card->hw.falcbase + card->hw.cpld_reg1,
2922 cpc_readb(card->hw.falcbase + card->hw.cpld_reg1) &
3083 reg1 = cpc_readb(card->hw.falcbase + CPLD_REG1);
3084 cpc_writeb(card->hw.falcbase + CPLD_REG1, (reg1 + 0x5a));
3085 if (cpc_readb(card->hw.falcbase + CPLD_REG1) == reg1) {
3087 card->hw.cpld_id = cpc_readb(card->hw.falcbase + CPLD_ID_REG);
3095 cpc_writeb(card->hw.falcbase + CPLD_REG1, reg1);
3099 cpc_writeb(card->hw.falcbase + card->hw.cpld_reg1,
3100 cpc_readb(card->hw.falcbase + card->hw.cpld_reg1) |
3316 card->hw.falcbase = ioremap(card->hw.falcphys, card->hw.falcsize);
3322 card->hw.falcbase = NULL;
3330 card->hw.falcbase);
3392 iounmap(card->hw.falcbase);
3430 iounmap(card->hw.falcbase);