int sPCIInitController(CONTROLLER_T * CtlP, int CtlNum, ByteIO_t * AiopIOList, int AiopIOListSize, WordIO_t ConfigIO, int IRQNum, Byte_t Frequency, int PeriodicOnly, int altChanRingIndicator, int UPCIRingInd) 
static int sPCIInitController(CONTROLLER_T * CtlP, int CtlNum, ByteIO_t * AiopIOList, int AiopIOListSize, WordIO_t ConfigIO, int IRQNum, Byte_t Frequency, int PeriodicOnly, int altChanRingIndicator, int UPCIRingInd) 
int sPCIInitController(CONTROLLER_T * CtlP, int CtlNum,		       ByteIO_t * AiopIOList, int AiopIOListSize,		       WordIO_t ConfigIO, int IRQNum, Byte_t Frequency,		       int PeriodicOnly, int altChanRingIndicator,		       int UPCIRingInd){	int i;	ByteIO_t io;	CtlP->AltChanRingIndicator = altChanRingIndicator;	CtlP->UPCIRingInd = UPCIRingInd;	CtlP->CtlNum = CtlNum;	CtlP->CtlID = CTLID_0001;	/* controller release 1 */	CtlP->BusType = isPCI;	/* controller release 1 */	if (ConfigIO) {		CtlP->isUPCI = 1;		CtlP->PCIIO = ConfigIO + _PCI_9030_INT_CTRL;		CtlP->PCIIO2 = ConfigIO + _PCI_9030_GPIO_CTRL;		CtlP->AiopIntrBits = upci_aiop_intr_bits;	} else {		CtlP->isUPCI = 0;		CtlP->PCIIO =		    (WordIO_t) ((ByteIO_t) AiopIOList[0] + _PCI_INT_FUNC);		CtlP->AiopIntrBits = aiop_intr_bits;	}	sPCIControllerEOI(CtlP);	/* clear EOI if warm init */	/* Init AIOPs */	CtlP->NumAiop = 0;	for (i = 0; i < AiopIOListSize; i++) {		io = AiopIOList[i];		CtlP->AiopIO[i] = (WordIO_t) io;		CtlP->AiopIntChanIO[i] = io + _INT_CHAN;		CtlP->AiopID[i] = sReadAiopID(io);	/* read AIOP ID */		if (CtlP->AiopID[i] == AIOPID_NULL)	/* if AIOP does not exist */			break;	/* done looking for AIOPs */		CtlP->AiopNumChan[i] = sReadAiopNumChan((WordIO_t) io);	/* num channels in AIOP */		sOutW((WordIO_t) io + _INDX_ADDR, _CLK_PRE);	/* clock prescaler */		sOutB(io + _INDX_DATA, sClockPrescale);		CtlP->NumAiop++;	/* bump count of AIOPs */	}	if (CtlP->NumAiop == 0)		return (-1);	else		return (CtlP->NumAiop);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/f15313bf42337ade55376303932d8b6a62e6be43/rocket.c/buggy/drivers/char/rocket.c