Lines Matching refs:ulBase
88 LPCConfigSet(unsigned long ulBase, unsigned long ulConfig) in LPCConfigSet() argument
95 ASSERT(ulBase == LPC0_BASE); in LPCConfigSet()
101 ulTemp = HWREG(ulBase + LPC_O_CTL); in LPCConfigSet()
104 HWREG(ulBase + LPC_O_CTL) = ulTemp; in LPCConfigSet()
123 LPCConfigGet(unsigned long ulBase) in LPCConfigGet() argument
128 ASSERT(ulBase == LPC0_BASE); in LPCConfigGet()
133 return((HWREG(ulBase + LPC_O_CTL) & LPC_CTL_WAKE)); in LPCConfigGet()
152 LPCStatusBlockAddressSet(unsigned long ulBase, unsigned long ulAddress, in LPCStatusBlockAddressSet() argument
158 ASSERT(ulBase == LPC0_BASE); in LPCStatusBlockAddressSet()
164 HWREG(ulBase + LPC_O_STSADDR) = (ulAddress | (bEnabled ? 1 : 0)); in LPCStatusBlockAddressSet()
180 LPCStatusBlockAddressGet(unsigned long ulBase) in LPCStatusBlockAddressGet() argument
185 ASSERT(ulBase == LPC0_BASE); in LPCStatusBlockAddressGet()
190 return(HWREG(ulBase + LPC_O_STSADDR)); in LPCStatusBlockAddressGet()
209 LPCStatusGet(unsigned long ulBase, unsigned long *pulCount, in LPCStatusGet() argument
217 ASSERT(ulBase == LPC0_BASE); in LPCStatusGet()
222 ulStatus = HWREG(ulBase + LPC_O_STS); in LPCStatusGet()
262 LPCSCIAssert(unsigned long ulBase, unsigned long ulCount) in LPCSCIAssert() argument
267 ASSERT(ulBase == LPC0_BASE); in LPCSCIAssert()
274 while(HWREG(ulBase + LPC_O_CTL) & LPC_CTL_SCI) in LPCSCIAssert()
281 HWREG(ulBase + LPC_O_CTL) &= ~LPC_CTL_SCICNT_M; in LPCSCIAssert()
282 HWREG(ulBase + LPC_O_CTL) |= (ulCount << 10); in LPCSCIAssert()
287 HWREG(ulBase + LPC_O_CTL) |= LPC_CTL_SCI; in LPCSCIAssert()
309 LPCIRQConfig(unsigned long ulBase, tBoolean bIRQPulse, tBoolean bIRQOnChange) in LPCIRQConfig() argument
314 ASSERT(ulBase == LPC0_BASE); in LPCIRQConfig()
321 HWREG(ulBase + LPC_O_IRQCTL) |= LPC_IRQCTL_PULSE; in LPCIRQConfig()
325 HWREG(ulBase + LPC_O_IRQCTL) &= ~LPC_IRQCTL_PULSE; in LPCIRQConfig()
333 HWREG(ulBase + LPC_O_IRQCTL) |= LPC_IRQCTL_ONCHG; in LPCIRQConfig()
337 HWREG(ulBase + LPC_O_IRQCTL) &= ~LPC_IRQCTL_ONCHG; in LPCIRQConfig()
360 LPCIRQSet(unsigned long ulBase, unsigned long ulIRQ) in LPCIRQSet() argument
367 ASSERT(ulBase == LPC0_BASE); in LPCIRQSet()
374 ulTemp = HWREG(ulBase + LPC_O_IRQCTL); in LPCIRQSet()
376 HWREG(ulBase + LPC_O_IRQCTL) = ulTemp; in LPCIRQSet()
398 LPCIRQClear(unsigned long ulBase, unsigned long ulIRQ) in LPCIRQClear() argument
405 ASSERT(ulBase == LPC0_BASE); in LPCIRQClear()
412 ulTemp = HWREG(ulBase + LPC_O_IRQCTL); in LPCIRQClear()
414 HWREG(ulBase + LPC_O_IRQCTL) = ulTemp; in LPCIRQClear()
434 LPCIRQGet(unsigned long ulBase) in LPCIRQGet() argument
439 ASSERT(ulBase == LPC0_BASE); in LPCIRQGet()
444 return(HWREG(ulBase + LPC_O_IRQST)); in LPCIRQGet()
460 LPCIRQSend(unsigned long ulBase) in LPCIRQSend() argument
465 ASSERT(ulBase == LPC0_BASE); in LPCIRQSend()
470 HWREG(ulBase + LPC_O_IRQCTL) |= LPC_IRQCTL_SND; in LPCIRQSend()
494 LPCIntRegister(unsigned long ulBase, void (*pfnHandler)(void)) in LPCIntRegister() argument
499 ASSERT(ulBase == LPC0_BASE); in LPCIntRegister()
530 LPCIntUnregister(unsigned long ulBase) in LPCIntUnregister() argument
535 ASSERT(ulBase == LPC0_BASE); in LPCIntUnregister()
571 LPCIntEnable(unsigned long ulBase, unsigned long ulIntFlags) in LPCIntEnable() argument
576 ASSERT(ulBase == LPC0_BASE); in LPCIntEnable()
581 HWREG(ulBase + LPC_O_IM) |= ulIntFlags; in LPCIntEnable()
602 LPCIntDisable(unsigned long ulBase, unsigned long ulIntFlags) in LPCIntDisable() argument
607 ASSERT(ulBase == LPC0_BASE); in LPCIntDisable()
612 HWREG(ulBase + LPC_O_IM) &= ~ulIntFlags; in LPCIntDisable()
637 LPCIntStatus(unsigned long ulBase, tBoolean bMasked) in LPCIntStatus() argument
642 ASSERT(ulBase == LPC0_BASE); in LPCIntStatus()
650 return(HWREG(ulBase + LPC_O_MIS)); in LPCIntStatus()
654 return(HWREG(ulBase + LPC_O_RIS)); in LPCIntStatus()
685 LPCIntClear(unsigned long ulBase, unsigned long ulIntFlags) in LPCIntClear() argument
690 ASSERT(ulBase == LPC0_BASE); in LPCIntClear()
695 HWREG(ulBase + LPC_O_IC) = ulIntFlags; in LPCIntClear()
716 LPCChannelEnable(unsigned long ulBase, unsigned long ulChannel) in LPCChannelEnable() argument
721 ASSERT(ulBase == LPC0_BASE); in LPCChannelEnable()
727 HWREG(ulBase + LPC_O_CTL) |= (1 << ulChannel); in LPCChannelEnable()
746 LPCChannelDisable(unsigned long ulBase, unsigned long ulChannel) in LPCChannelDisable() argument
751 ASSERT(ulBase == LPC0_BASE); in LPCChannelDisable()
757 HWREG(ulBase + LPC_O_CTL) &= ~(1 << ulChannel); in LPCChannelDisable()
778 LPCChannelConfigEPSet(unsigned long ulBase, unsigned long ulChannel, in LPCChannelConfigEPSet() argument
785 ASSERT(ulBase == LPC0_BASE); in LPCChannelConfigEPSet()
790 ASSERT(ulOffset < ((((HWREG(ulBase + LPC_O_STS) & LPC_STS_POOLSZ_M) >> in LPCChannelConfigEPSet()
804 HWREG(ulBase + LPC_O_CH0CTL + (ulChannel * 0x10)) = ulConfig; in LPCChannelConfigEPSet()
809 HWREG(ulBase + LPC_O_CH0ADR + (ulChannel * 0x10)) = ulAddress; in LPCChannelConfigEPSet()
830 LPCChannelConfigMBSet(unsigned long ulBase, unsigned long ulChannel, in LPCChannelConfigMBSet() argument
837 ASSERT(ulBase == LPC0_BASE); in LPCChannelConfigMBSet()
845 ASSERT(ulOffset < ((((HWREG(ulBase + LPC_O_STS) & LPC_STS_POOLSZ_M) >> in LPCChannelConfigMBSet()
864 HWREG(ulBase + LPC_O_CH0CTL + (ulChannel * 0x10)) = ulConfig; in LPCChannelConfigMBSet()
869 HWREG(ulBase + LPC_O_CH0ADR + (ulChannel * 0x10)) = ulAddress; in LPCChannelConfigMBSet()
891 LPCChannelConfigCOMxSet(unsigned long ulBase, unsigned long ulChannel, in LPCChannelConfigCOMxSet() argument
900 ASSERT(ulBase == LPC0_BASE); in LPCChannelConfigCOMxSet()
907 ASSERT(ulOffset < ((((HWREG(ulBase + LPC_O_STS) & LPC_STS_POOLSZ_M) >> in LPCChannelConfigCOMxSet()
922 HWREG(ulBase + LPC_O_CH0CTL + (ulChannel * 0x10)) = ulConfig; in LPCChannelConfigCOMxSet()
927 HWREG(ulBase + LPC_O_CH0ADR + (ulChannel * 0x10)) = ulAddress; in LPCChannelConfigCOMxSet()
932 ulTemp = HWREG(ulBase + LPC_O_DMACX); in LPCChannelConfigCOMxSet()
936 HWREG(ulBase + LPC_O_DMACX) = ulTemp; in LPCChannelConfigCOMxSet()
956 LPCChannelConfigGet(unsigned long ulBase, unsigned long ulChannel, in LPCChannelConfigGet() argument
965 ASSERT(ulBase == LPC0_BASE); in LPCChannelConfigGet()
971 ulConfig = HWREG(ulBase + LPC_O_CH0CTL + (ulChannel * 0x10)); in LPCChannelConfigGet()
987 *pulAddress = HWREG(ulBase + LPC_O_CH0ADR + (ulChannel * 0x10)); in LPCChannelConfigGet()
995 *pulCOMxMode = (HWREG(ulBase + LPC_O_DMACX) & 0x00070000); in LPCChannelConfigGet()
1018 LPCChannelPoolAddressGet(unsigned long ulBase, unsigned long ulChannel) in LPCChannelPoolAddressGet() argument
1025 ASSERT(ulBase == LPC0_BASE); in LPCChannelPoolAddressGet()
1031 ulAddress = HWREG(ulBase + LPC_O_CH0CTL + (ulChannel * 0x10)); in LPCChannelPoolAddressGet()
1044 ulAddress += (ulBase + LPC_O_POOL); in LPCChannelPoolAddressGet()
1066 LPCChannelStatusGet(unsigned long ulBase, unsigned long ulChannel) in LPCChannelStatusGet() argument
1071 ASSERT(ulBase == LPC0_BASE); in LPCChannelStatusGet()
1077 return (HWREG(ulBase + LPC_O_CH0ST + (ulChannel * 0x10))); in LPCChannelStatusGet()
1095 LPCChannelStatusSet(unsigned long ulBase, unsigned long ulChannel, in LPCChannelStatusSet() argument
1103 ASSERT(ulBase == LPC0_BASE); in LPCChannelStatusSet()
1111 ulTemp = HWREG(ulBase + LPC_O_CH0ST + (ulChannel * 0x10)); in LPCChannelStatusSet()
1113 HWREG(ulBase + LPC_O_CH0ST + (ulChannel * 0x10)) = ulTemp; in LPCChannelStatusSet()
1131 LPCChannelStatusClear(unsigned long ulBase, unsigned long ulChannel, in LPCChannelStatusClear() argument
1139 ASSERT(ulBase == LPC0_BASE); in LPCChannelStatusClear()
1147 ulTemp = HWREG(ulBase + LPC_O_CH0ST + (ulChannel * 0x10)); in LPCChannelStatusClear()
1149 HWREG(ulBase + LPC_O_CH0ST + (ulChannel * 0x10)) = ulTemp; in LPCChannelStatusClear()
1167 LPCChannelDMAConfigSet(unsigned long ulBase, unsigned long ulConfig, in LPCChannelDMAConfigSet() argument
1175 ASSERT(ulBase == LPC0_BASE); in LPCChannelDMAConfigSet()
1186 ulTemp = HWREG(ulBase + LPC_O_DMACX); in LPCChannelDMAConfigSet()
1189 HWREG(ulBase + LPC_O_DMACX) = ulTemp; in LPCChannelDMAConfigSet()
1204 LPCChannelDMAConfigGet(unsigned long ulBase) in LPCChannelDMAConfigGet() argument
1209 ASSERT(ulBase == LPC0_BASE); in LPCChannelDMAConfigGet()
1214 return(HWREG(ulBase + LPC_O_DMACX) & 0x000000FF); in LPCChannelDMAConfigGet()
1231 LPCByteRead(unsigned long ulBase, unsigned long ulOffset) in LPCByteRead() argument
1236 ASSERT(ulBase == LPC0_BASE); in LPCByteRead()
1237 ASSERT(ulOffset < (((HWREG(ulBase + LPC_O_STS) & LPC_STS_POOLSZ_M) >> in LPCByteRead()
1243 return(HWREGB(ulBase + LPC_O_POOL + ulOffset)); in LPCByteRead()
1261 LPCByteWrite(unsigned long ulBase, unsigned long ulOffset, in LPCByteWrite() argument
1267 ASSERT(ulBase == LPC0_BASE); in LPCByteWrite()
1268 ASSERT(ulOffset < (((HWREG(ulBase + LPC_O_STS) & LPC_STS_POOLSZ_M) >> in LPCByteWrite()
1274 HWREGB(ulBase + LPC_O_POOL + ulOffset) = ucData; in LPCByteWrite()
1292 LPCHalfWordRead(unsigned long ulBase, unsigned long ulOffset) in LPCHalfWordRead() argument
1297 ASSERT(ulBase == LPC0_BASE); in LPCHalfWordRead()
1299 ASSERT(ulOffset < (((HWREG(ulBase + LPC_O_STS) & LPC_STS_POOLSZ_M) >> in LPCHalfWordRead()
1305 return(HWREGH(ulBase + LPC_O_POOL + ulOffset)); in LPCHalfWordRead()
1324 LPCHalfWordWrite(unsigned long ulBase, unsigned long ulOffset, in LPCHalfWordWrite() argument
1330 ASSERT(ulBase == LPC0_BASE); in LPCHalfWordWrite()
1332 ASSERT(ulOffset < (((HWREG(ulBase + LPC_O_STS) & LPC_STS_POOLSZ_M) >> in LPCHalfWordWrite()
1338 HWREGH(ulBase + LPC_O_POOL + ulOffset) = usData; in LPCHalfWordWrite()
1356 LPCWordRead(unsigned long ulBase, unsigned long ulOffset) in LPCWordRead() argument
1361 ASSERT(ulBase == LPC0_BASE); in LPCWordRead()
1363 ASSERT(ulOffset < (((HWREG(ulBase + LPC_O_STS) & LPC_STS_POOLSZ_M) >> in LPCWordRead()
1369 return(HWREG(ulBase + LPC_O_POOL + ulOffset)); in LPCWordRead()
1388 LPCWordWrite(unsigned long ulBase, unsigned long ulOffset, in LPCWordWrite() argument
1394 ASSERT(ulBase == LPC0_BASE); in LPCWordWrite()
1396 ASSERT(ulOffset < (((HWREG(ulBase + LPC_O_STS) & LPC_STS_POOLSZ_M) >> in LPCWordWrite()
1402 HWREG(ulBase + LPC_O_POOL + ulOffset) = ulData; in LPCWordWrite()
1419 LPCCOMxIntEnable(unsigned long ulBase, unsigned long ulIntFlags) in LPCCOMxIntEnable() argument
1424 ASSERT(ulBase == LPC0_BASE); in LPCCOMxIntEnable()
1431 HWREG(ulBase + LPC_O_DMACX) |= ulIntFlags; in LPCCOMxIntEnable()
1448 LPCCOMxIntDisable(unsigned long ulBase, unsigned long ulIntFlags) in LPCCOMxIntDisable() argument
1453 ASSERT(ulBase == LPC0_BASE); in LPCCOMxIntDisable()
1460 HWREG(ulBase + LPC_O_DMACX) &= ~ulIntFlags; in LPCCOMxIntDisable()
1477 LPCCOMxIntStatus(unsigned long ulBase, tBoolean bMasked) in LPCCOMxIntStatus() argument
1484 ASSERT(ulBase == LPC0_BASE); in LPCCOMxIntStatus()
1490 ulStatus = HWREG(ulBase + LPC_O_DMACX); in LPCCOMxIntStatus()
1513 LPCCOMxIntClear(unsigned long ulBase, unsigned long ulIntFlags) in LPCCOMxIntClear() argument
1518 ASSERT(ulBase == LPC0_BASE); in LPCCOMxIntClear()
1525 HWREG(ulBase + LPC_O_DMACX) |= ulIntFlags; in LPCCOMxIntClear()