• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/char/

Lines Matching refs:CtlP

230 static void rmSpeakerReset(CONTROLLER_T * CtlP, unsigned long model);
234 static int sInitChan(CONTROLLER_T * CtlP, CHANNEL_T * ChP, int AiopNum,
241 static void sModemReset(CONTROLLER_T * CtlP, int chan, int on);
242 static void sPCIModemReset(CONTROLLER_T * CtlP, int chan, int on);
244 static int sPCIInitController(CONTROLLER_T * CtlP, int CtlNum,
249 static int sInitController(CONTROLLER_T * CtlP, int CtlNum, ByteIO_t MudbacIO,
850 if (cp->CtlP->boardType == ROCKET_TYPE_PC104) {
1151 CONTROLLER_t *CtlP = ChP->CtlP;
1155 if (CtlP->UPCIRingInd)
1156 RingInd = !(sInB(CtlP->UPCIRingInd) & sBitMapSetTbl[ChanNum]);
1157 else if (CtlP->AltChanRingIndicator)
1159 else if (CtlP->boardType == ROCKET_TYPE_PC104)
1160 RingInd = !(sInB(CtlP->AiopIO[3]) & sBitMapSetTbl[ChanNum]);
2423 Call: sInitController(CtlP,CtlNum,MudbacIO,AiopIOList,AiopIOListSize,
2425 CONTROLLER_T *CtlP; Ptr to controller structure
2489 static int sInitController(CONTROLLER_T * CtlP, int CtlNum, ByteIO_t MudbacIO,
2497 CtlP->AiopIntrBits = aiop_intr_bits;
2498 CtlP->AltChanRingIndicator = 0;
2499 CtlP->CtlNum = CtlNum;
2500 CtlP->CtlID = CTLID_0001; /* controller release 1 */
2501 CtlP->BusType = isISA;
2502 CtlP->MBaseIO = MudbacIO;
2503 CtlP->MReg1IO = MudbacIO + 1;
2504 CtlP->MReg2IO = MudbacIO + 2;
2505 CtlP->MReg3IO = MudbacIO + 3;
2506 CtlP->MReg2 = 0; /* interrupt disable */
2507 CtlP->MReg3 = 0; /* no periodic interrupts */
2508 sOutB(CtlP->MReg2IO, CtlP->MReg2);
2509 sOutB(CtlP->MReg3IO, CtlP->MReg3);
2510 sControllerEOI(CtlP); /* clear EOI if warm init */
2512 CtlP->NumAiop = 0;
2515 CtlP->AiopIO[i] = (WordIO_t) io;
2516 CtlP->AiopIntChanIO[i] = io + _INT_CHAN;
2517 sOutB(CtlP->MReg2IO, CtlP->MReg2 | (i & 0x03)); /* AIOP index */
2521 sEnAiop(CtlP, i); /* enable the AIOP */
2522 CtlP->AiopID[i] = sReadAiopID(io); /* read AIOP ID */
2523 if (CtlP->AiopID[i] == AIOPID_NULL) /* if AIOP does not exist */
2526 CtlP->AiopNumChan[i] = sReadAiopNumChan((WordIO_t) io); /* num channels in AIOP */
2529 CtlP->NumAiop++; /* bump count of AIOPs */
2531 sDisAiop(CtlP, i); /* disable AIOP */
2534 if (CtlP->NumAiop == 0)
2537 return (CtlP->NumAiop);
2544 Call: sPCIInitController(CtlP,CtlNum,AiopIOList,AiopIOListSize,
2546 CONTROLLER_T *CtlP; Ptr to controller structure
2609 static int sPCIInitController(CONTROLLER_T * CtlP, int CtlNum,
2618 CtlP->AltChanRingIndicator = altChanRingIndicator;
2619 CtlP->UPCIRingInd = UPCIRingInd;
2620 CtlP->CtlNum = CtlNum;
2621 CtlP->CtlID = CTLID_0001; /* controller release 1 */
2622 CtlP->BusType = isPCI; /* controller release 1 */
2625 CtlP->isUPCI = 1;
2626 CtlP->PCIIO = ConfigIO + _PCI_9030_INT_CTRL;
2627 CtlP->PCIIO2 = ConfigIO + _PCI_9030_GPIO_CTRL;
2628 CtlP->AiopIntrBits = upci_aiop_intr_bits;
2630 CtlP->isUPCI = 0;
2631 CtlP->PCIIO =
2633 CtlP->AiopIntrBits = aiop_intr_bits;
2636 sPCIControllerEOI(CtlP); /* clear EOI if warm init */
2638 CtlP->NumAiop = 0;
2641 CtlP->AiopIO[i] = (WordIO_t) io;
2642 CtlP->AiopIntChanIO[i] = io + _INT_CHAN;
2644 CtlP->AiopID[i] = sReadAiopID(io); /* read AIOP ID */
2645 if (CtlP->AiopID[i] == AIOPID_NULL) /* if AIOP does not exist */
2648 CtlP->AiopNumChan[i] = sReadAiopNumChan((WordIO_t) io); /* num channels in AIOP */
2651 CtlP->NumAiop++; /* bump count of AIOPs */
2654 if (CtlP->NumAiop == 0)
2657 return (CtlP->NumAiop);
2716 Call: sInitChan(CtlP,ChP,AiopNum,ChanNum)
2717 CONTROLLER_T *CtlP; Ptr to controller structure
2728 static int sInitChan(CONTROLLER_T * CtlP, CHANNEL_T * ChP, int AiopNum,
2739 if (ChanNum >= CtlP->AiopNumChan[AiopNum])
2743 ChP->CtlP = CtlP;
2744 ChP->ChanID = CtlP->AiopID[AiopNum];
2749 AiopIO = CtlP->AiopIO[AiopNum];
3107 sOutB(ChP->CtlP->AiopIO[2], (mode & 0x18) | ChP->ChanNum);
3114 static void sModemReset(CONTROLLER_T * CtlP, int chan, int on)
3119 addr = CtlP->AiopIO[0] + 0x400;
3120 val = sInB(CtlP->MReg3IO);
3123 val = sInB(CtlP->MReg2IO);
3124 sOutB(CtlP->MReg2IO, (val & 0xfc) | (1 & 0x03));
3125 sOutB(CtlP->MBaseIO, (unsigned char) (addr >> 6));
3128 sEnAiop(CtlP, 1);
3132 sDisAiop(CtlP, 1);
3139 static void sPCIModemReset(CONTROLLER_T * CtlP, int chan, int on)
3143 addr = CtlP->AiopIO[0] + 0x40; /* 2nd AIOP */
3150 static void rmSpeakerReset(CONTROLLER_T * CtlP, unsigned long model)
3156 addr = CtlP->AiopIO[0] + 0x4F;
3163 addr = CtlP->AiopIO[0] + 0x88;