Commit d539cfb0 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: epl: remove DWORD

It's u32 in kernelspace, not DWORD.

Cc: Daniel Krueger <daniel.krueger@systec-electronic.com>
Cc: Ronald Sieber <Ronald.Sieber@systec-electronic.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a5c30d94
...@@ -666,7 +666,7 @@ extern "C" { ...@@ -666,7 +666,7 @@ extern "C" {
DEBUG_LVL_ASSERT_TRACE4 ( \ DEBUG_LVL_ASSERT_TRACE4 ( \
"Assertion failed: line %d file '%s'\n" \ "Assertion failed: line %d file '%s'\n" \
" -> '%s'\n" \ " -> '%s'\n" \
" -> 0x%08lX\n", __LINE__, __FILE__, str, (DWORD) p1); \ " -> 0x%08lX\n", __LINE__, __FILE__, str, (u32) p1); \
while (1); } while (1); }
......
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
// TracePoint support for realtime-debugging // TracePoint support for realtime-debugging
#ifdef _DBG_TRACE_POINTS_ #ifdef _DBG_TRACE_POINTS_
void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); void TgtDbgSignalTracePoint(u8 bTracePointNumber_p);
void TgtDbgPostTraceValue(DWORD dwTraceValue_p); void TgtDbgPostTraceValue(u32 dwTraceValue_p);
#define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p) #define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p)
#define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v) #define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v)
#else #else
...@@ -456,7 +456,7 @@ tEplKernel EdrvShutdown(void) ...@@ -456,7 +456,7 @@ tEplKernel EdrvShutdown(void)
tEplKernel EdrvDefineRxMacAddrEntry(u8 * pbMacAddr_p) tEplKernel EdrvDefineRxMacAddrEntry(u8 * pbMacAddr_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
DWORD dwData; u32 dwData;
u8 bHash; u8 bHash;
bHash = EdrvCalcHash(pbMacAddr_p); bHash = EdrvCalcHash(pbMacAddr_p);
...@@ -497,7 +497,7 @@ tEplKernel EdrvDefineRxMacAddrEntry(u8 * pbMacAddr_p) ...@@ -497,7 +497,7 @@ tEplKernel EdrvDefineRxMacAddrEntry(u8 * pbMacAddr_p)
tEplKernel EdrvUndefineRxMacAddrEntry(u8 * pbMacAddr_p) tEplKernel EdrvUndefineRxMacAddrEntry(u8 * pbMacAddr_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
DWORD dwData; u32 dwData;
u8 bHash; u8 bHash;
bHash = EdrvCalcHash(pbMacAddr_p); bHash = EdrvCalcHash(pbMacAddr_p);
...@@ -532,7 +532,7 @@ tEplKernel EdrvUndefineRxMacAddrEntry(u8 * pbMacAddr_p) ...@@ -532,7 +532,7 @@ tEplKernel EdrvUndefineRxMacAddrEntry(u8 * pbMacAddr_p)
tEplKernel EdrvAllocTxMsgBuffer(tEdrvTxBuffer * pBuffer_p) tEplKernel EdrvAllocTxMsgBuffer(tEdrvTxBuffer * pBuffer_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
DWORD i; u32 i;
if (pBuffer_p->m_uiMaxBufferLen > EDRV_MAX_FRAME_SIZE) { if (pBuffer_p->m_uiMaxBufferLen > EDRV_MAX_FRAME_SIZE) {
Ret = kEplEdrvNoFreeBufEntry; Ret = kEplEdrvNoFreeBufEntry;
...@@ -605,7 +605,7 @@ tEplKernel EdrvSendTxMsg(tEdrvTxBuffer * pBuffer_p) ...@@ -605,7 +605,7 @@ tEplKernel EdrvSendTxMsg(tEdrvTxBuffer * pBuffer_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
unsigned int uiBufferNumber; unsigned int uiBufferNumber;
DWORD dwTemp; u32 dwTemp;
uiBufferNumber = pBuffer_p->m_uiBufferNumber; uiBufferNumber = pBuffer_p->m_uiBufferNumber;
...@@ -620,8 +620,8 @@ tEplKernel EdrvSendTxMsg(tEdrvTxBuffer * pBuffer_p) ...@@ -620,8 +620,8 @@ tEplKernel EdrvSendTxMsg(tEdrvTxBuffer * pBuffer_p)
dwTemp = dwTemp =
EDRV_REGDW_READ((EDRV_REGDW_TSD0 + EDRV_REGDW_READ((EDRV_REGDW_TSD0 +
(EdrvInstance_l.m_uiCurTxDesc * (EdrvInstance_l.m_uiCurTxDesc *
sizeof(DWORD)))); sizeof(u32))));
printk("%s InvOp TSD%u = 0x%08lX", __func__, printk("%s InvOp TSD%u = 0x%08X", __func__,
EdrvInstance_l.m_uiCurTxDesc, dwTemp); EdrvInstance_l.m_uiCurTxDesc, dwTemp);
printk(" Cmd = 0x%02X\n", printk(" Cmd = 0x%02X\n",
(WORD) EDRV_REGB_READ(EDRV_REGB_COMMAND)); (WORD) EDRV_REGB_READ(EDRV_REGB_COMMAND));
...@@ -640,22 +640,22 @@ tEplKernel EdrvSendTxMsg(tEdrvTxBuffer * pBuffer_p) ...@@ -640,22 +640,22 @@ tEplKernel EdrvSendTxMsg(tEdrvTxBuffer * pBuffer_p)
} }
// set DMA address of buffer // set DMA address of buffer
EDRV_REGDW_WRITE((EDRV_REGDW_TSAD0 + EDRV_REGDW_WRITE((EDRV_REGDW_TSAD0 +
(EdrvInstance_l.m_uiCurTxDesc * sizeof(DWORD))), (EdrvInstance_l.m_uiCurTxDesc * sizeof(u32))),
(EdrvInstance_l.m_pTxBufDma + (EdrvInstance_l.m_pTxBufDma +
(uiBufferNumber * EDRV_MAX_FRAME_SIZE))); (uiBufferNumber * EDRV_MAX_FRAME_SIZE)));
dwTemp = dwTemp =
EDRV_REGDW_READ((EDRV_REGDW_TSAD0 + EDRV_REGDW_READ((EDRV_REGDW_TSAD0 +
(EdrvInstance_l.m_uiCurTxDesc * sizeof(DWORD)))); (EdrvInstance_l.m_uiCurTxDesc * sizeof(u32))));
// printk("%s TSAD%u = 0x%08lX", __func__, EdrvInstance_l.m_uiCurTxDesc, dwTemp); // printk("%s TSAD%u = 0x%08lX", __func__, EdrvInstance_l.m_uiCurTxDesc, dwTemp);
// start transmission // start transmission
EDRV_REGDW_WRITE((EDRV_REGDW_TSD0 + EDRV_REGDW_WRITE((EDRV_REGDW_TSD0 +
(EdrvInstance_l.m_uiCurTxDesc * sizeof(DWORD))), (EdrvInstance_l.m_uiCurTxDesc * sizeof(u32))),
(EDRV_REGDW_TSD_TXTH_DEF | pBuffer_p->m_uiTxMsgLen)); (EDRV_REGDW_TSD_TXTH_DEF | pBuffer_p->m_uiTxMsgLen));
dwTemp = dwTemp =
EDRV_REGDW_READ((EDRV_REGDW_TSD0 + EDRV_REGDW_READ((EDRV_REGDW_TSD0 +
(EdrvInstance_l.m_uiCurTxDesc * sizeof(DWORD)))); (EdrvInstance_l.m_uiCurTxDesc * sizeof(u32))));
// printk(" TSD%u = 0x%08lX / 0x%08lX\n", EdrvInstance_l.m_uiCurTxDesc, dwTemp, (DWORD)(EDRV_REGDW_TSD_TXTH_DEF | pBuffer_p->m_uiTxMsgLen)); // printk(" TSD%u = 0x%08lX / 0x%08lX\n", EdrvInstance_l.m_uiCurTxDesc, dwTemp, (u32)(EDRV_REGDW_TSD_TXTH_DEF | pBuffer_p->m_uiTxMsgLen));
Exit: Exit:
return Ret; return Ret;
...@@ -762,8 +762,8 @@ static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p, ...@@ -762,8 +762,8 @@ static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p,
tEdrvRxBuffer RxBuffer; tEdrvRxBuffer RxBuffer;
tEdrvTxBuffer *pTxBuffer; tEdrvTxBuffer *pTxBuffer;
WORD wStatus; WORD wStatus;
DWORD dwTxStatus; u32 dwTxStatus;
DWORD dwRxStatus; u32 dwRxStatus;
WORD wCurRx; WORD wCurRx;
u8 *pbRxBuf; u8 *pbRxBuf;
unsigned int uiLength; unsigned int uiLength;
...@@ -793,7 +793,7 @@ static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p, ...@@ -793,7 +793,7 @@ static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p,
dwTxStatus = dwTxStatus =
EDRV_REGDW_READ((EDRV_REGDW_TSD0 + EDRV_REGDW_READ((EDRV_REGDW_TSD0 +
(EdrvInstance_l.m_uiCurTxDesc * (EdrvInstance_l.m_uiCurTxDesc *
sizeof(DWORD)))); sizeof(u32))));
if ((dwTxStatus & (EDRV_REGDW_TSD_TOK | EDRV_REGDW_TSD_TABT | EDRV_REGDW_TSD_TUN)) != 0) { // transmit finished if ((dwTxStatus & (EDRV_REGDW_TSD_TOK | EDRV_REGDW_TSD_TABT | EDRV_REGDW_TSD_TUN)) != 0) { // transmit finished
EdrvInstance_l.m_uiCurTxDesc = EdrvInstance_l.m_uiCurTxDesc =
(EdrvInstance_l.m_uiCurTxDesc + 1) & 0x03; (EdrvInstance_l.m_uiCurTxDesc + 1) & 0x03;
...@@ -855,8 +855,8 @@ static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p, ...@@ -855,8 +855,8 @@ static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p,
// calculate pointer to current frame in receive buffer // calculate pointer to current frame in receive buffer
pbRxBuf = EdrvInstance_l.m_pbRxBuf + wCurRx; pbRxBuf = EdrvInstance_l.m_pbRxBuf + wCurRx;
// read receive status DWORD // read receive status u32
dwRxStatus = le32_to_cpu(*((DWORD *) pbRxBuf)); dwRxStatus = le32_to_cpu(*((u32 *) pbRxBuf));
// calculate length of received frame // calculate length of received frame
uiLength = dwRxStatus >> 16; uiLength = dwRxStatus >> 16;
...@@ -896,7 +896,7 @@ static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p, ...@@ -896,7 +896,7 @@ static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p,
m_pfnRxHandler(&RxBuffer); m_pfnRxHandler(&RxBuffer);
} }
// calulate new offset (DWORD aligned) // calulate new offset (u32 aligned)
wCurRx = wCurRx =
(WORD) ((wCurRx + uiLength + sizeof(dwRxStatus) + (WORD) ((wCurRx + uiLength + sizeof(dwRxStatus) +
3) & ~0x3); 3) & ~0x3);
...@@ -941,7 +941,7 @@ static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p, ...@@ -941,7 +941,7 @@ static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p,
static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId) static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId)
{ {
int iResult = 0; int iResult = 0;
DWORD dwTemp; u32 dwTemp;
if (EdrvInstance_l.m_pPciDev != NULL) { // Edrv is already connected to a PCI device if (EdrvInstance_l.m_pPciDev != NULL) { // Edrv is already connected to a PCI device
printk("%s device %s discarded\n", __func__, printk("%s device %s discarded\n", __func__,
...@@ -1008,7 +1008,7 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId) ...@@ -1008,7 +1008,7 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId)
dwTemp = EDRV_REGDW_READ(EDRV_REGDW_TCR); dwTemp = EDRV_REGDW_READ(EDRV_REGDW_TCR);
if (((dwTemp & EDRV_REGDW_TCR_VER_MASK) != EDRV_REGDW_TCR_VER_C) if (((dwTemp & EDRV_REGDW_TCR_VER_MASK) != EDRV_REGDW_TCR_VER_C)
&& ((dwTemp & EDRV_REGDW_TCR_VER_MASK) != EDRV_REGDW_TCR_VER_D)) { // unsupported chip && ((dwTemp & EDRV_REGDW_TCR_VER_MASK) != EDRV_REGDW_TCR_VER_D)) { // unsupported chip
printk("%s Unsupported chip! TCR = 0x%08lX\n", __func__, printk("%s Unsupported chip! TCR = 0x%08X\n", __func__,
dwTemp); dwTemp);
iResult = -ENODEV; iResult = -ENODEV;
goto Exit; goto Exit;
...@@ -1043,11 +1043,11 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId) ...@@ -1043,11 +1043,11 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId)
printk("%s set local MAC address\n", __func__); printk("%s set local MAC address\n", __func__);
// write this MAC address to controller // write this MAC address to controller
EDRV_REGDW_WRITE(EDRV_REGDW_IDR0, EDRV_REGDW_WRITE(EDRV_REGDW_IDR0,
le32_to_cpu(*((DWORD*)&EdrvInstance_l.m_InitParam.m_abMyMacAddr[0]))); le32_to_cpu(*((u32*)&EdrvInstance_l.m_InitParam.m_abMyMacAddr[0])));
dwTemp = EDRV_REGDW_READ(EDRV_REGDW_IDR0); dwTemp = EDRV_REGDW_READ(EDRV_REGDW_IDR0);
EDRV_REGDW_WRITE(EDRV_REGDW_IDR4, EDRV_REGDW_WRITE(EDRV_REGDW_IDR4,
le32_to_cpu(*((DWORD*)&EdrvInstance_l.m_InitParam.m_abMyMacAddr[4]))); le32_to_cpu(*((u32*)&EdrvInstance_l.m_InitParam.m_abMyMacAddr[4])));
dwTemp = EDRV_REGDW_READ(EDRV_REGDW_IDR4); dwTemp = EDRV_REGDW_READ(EDRV_REGDW_IDR4);
break; break;
} }
...@@ -1217,11 +1217,11 @@ static void EdrvRemoveOne(struct pci_dev *pPciDev) ...@@ -1217,11 +1217,11 @@ static void EdrvRemoveOne(struct pci_dev *pPciDev)
static u8 EdrvCalcHash(u8 * pbMAC_p) static u8 EdrvCalcHash(u8 * pbMAC_p)
{ {
DWORD dwByteCounter; u32 dwByteCounter;
DWORD dwBitCounter; u32 dwBitCounter;
DWORD dwData; u32 dwData;
DWORD dwCrc; u32 dwCrc;
DWORD dwCarry; u32 dwCarry;
u8 *pbData; u8 *pbData;
u8 bHash; u8 bHash;
......
...@@ -142,22 +142,22 @@ typedef struct { ...@@ -142,22 +142,22 @@ typedef struct {
u8 m_abMacAddress[6]; // local MAC address u8 m_abMacAddress[6]; // local MAC address
// 0x1F82: NMT_FeatureFlags_U32 // 0x1F82: NMT_FeatureFlags_U32
DWORD m_dwFeatureFlags; u32 m_dwFeatureFlags;
// Cycle Length (0x1006: NMT_CycleLen_U32) in [us] // Cycle Length (0x1006: NMT_CycleLen_U32) in [us]
DWORD m_dwCycleLen; // required for error detection u32 m_dwCycleLen; // required for error detection
// 0x1F98: NMT_CycleTiming_REC // 0x1F98: NMT_CycleTiming_REC
// 0x1F98.1: IsochrTxMaxPayload_U16 // 0x1F98.1: IsochrTxMaxPayload_U16
unsigned int m_uiIsochrTxMaxPayload; // const unsigned int m_uiIsochrTxMaxPayload; // const
// 0x1F98.2: IsochrRxMaxPayload_U16 // 0x1F98.2: IsochrRxMaxPayload_U16
unsigned int m_uiIsochrRxMaxPayload; // const unsigned int m_uiIsochrRxMaxPayload; // const
// 0x1F98.3: PResMaxLatency_U32 // 0x1F98.3: PResMaxLatency_U32
DWORD m_dwPresMaxLatency; // const in [ns], only required for IdentRes u32 m_dwPresMaxLatency; // const in [ns], only required for IdentRes
// 0x1F98.4: PReqActPayloadLimit_U16 // 0x1F98.4: PReqActPayloadLimit_U16
unsigned int m_uiPreqActPayloadLimit; // required for initialisation (+28 bytes) unsigned int m_uiPreqActPayloadLimit; // required for initialisation (+28 bytes)
// 0x1F98.5: PResActPayloadLimit_U16 // 0x1F98.5: PResActPayloadLimit_U16
unsigned int m_uiPresActPayloadLimit; // required for initialisation of Pres frame (+28 bytes) unsigned int m_uiPresActPayloadLimit; // required for initialisation of Pres frame (+28 bytes)
// 0x1F98.6: ASndMaxLatency_U32 // 0x1F98.6: ASndMaxLatency_U32
DWORD m_dwAsndMaxLatency; // const in [ns], only required for IdentRes u32 m_dwAsndMaxLatency; // const in [ns], only required for IdentRes
// 0x1F98.7: MultiplCycleCnt_U8 // 0x1F98.7: MultiplCycleCnt_U8
unsigned int m_uiMultiplCycleCnt; // required for error detection unsigned int m_uiMultiplCycleCnt; // required for error detection
// 0x1F98.8: AsyncMTU_U16 // 0x1F98.8: AsyncMTU_U16
...@@ -167,28 +167,28 @@ typedef struct { ...@@ -167,28 +167,28 @@ typedef struct {
// $$$ Multiplexed Slot // $$$ Multiplexed Slot
// 0x1C14: DLL_LossOfFrameTolerance_U32 in [ns] // 0x1C14: DLL_LossOfFrameTolerance_U32 in [ns]
DWORD m_dwLossOfFrameTolerance; u32 m_dwLossOfFrameTolerance;
// 0x1F8A: NMT_MNCycleTiming_REC // 0x1F8A: NMT_MNCycleTiming_REC
// 0x1F8A.1: WaitSoCPReq_U32 in [ns] // 0x1F8A.1: WaitSoCPReq_U32 in [ns]
DWORD m_dwWaitSocPreq; u32 m_dwWaitSocPreq;
// 0x1F8A.2: AsyncSlotTimeout_U32 in [ns] // 0x1F8A.2: AsyncSlotTimeout_U32 in [ns]
DWORD m_dwAsyncSlotTimeout; u32 m_dwAsyncSlotTimeout;
DWORD m_dwDeviceType; // NMT_DeviceType_U32 u32 m_dwDeviceType; // NMT_DeviceType_U32
DWORD m_dwVendorId; // NMT_IdentityObject_REC.VendorId_U32 u32 m_dwVendorId; // NMT_IdentityObject_REC.VendorId_U32
DWORD m_dwProductCode; // NMT_IdentityObject_REC.ProductCode_U32 u32 m_dwProductCode; // NMT_IdentityObject_REC.ProductCode_U32
DWORD m_dwRevisionNumber; // NMT_IdentityObject_REC.RevisionNo_U32 u32 m_dwRevisionNumber; // NMT_IdentityObject_REC.RevisionNo_U32
DWORD m_dwSerialNumber; // NMT_IdentityObject_REC.SerialNo_U32 u32 m_dwSerialNumber; // NMT_IdentityObject_REC.SerialNo_U32
u64 m_qwVendorSpecificExt1; u64 m_qwVendorSpecificExt1;
DWORD m_dwVerifyConfigurationDate; // CFM_VerifyConfiguration_REC.ConfDate_U32 u32 m_dwVerifyConfigurationDate; // CFM_VerifyConfiguration_REC.ConfDate_U32
DWORD m_dwVerifyConfigurationTime; // CFM_VerifyConfiguration_REC.ConfTime_U32 u32 m_dwVerifyConfigurationTime; // CFM_VerifyConfiguration_REC.ConfTime_U32
DWORD m_dwApplicationSwDate; // PDL_LocVerApplSw_REC.ApplSwDate_U32 on programmable device or date portion of NMT_ManufactSwVers_VS on non-programmable device u32 m_dwApplicationSwDate; // PDL_LocVerApplSw_REC.ApplSwDate_U32 on programmable device or date portion of NMT_ManufactSwVers_VS on non-programmable device
DWORD m_dwApplicationSwTime; // PDL_LocVerApplSw_REC.ApplSwTime_U32 on programmable device or time portion of NMT_ManufactSwVers_VS on non-programmable device u32 m_dwApplicationSwTime; // PDL_LocVerApplSw_REC.ApplSwTime_U32 on programmable device or time portion of NMT_ManufactSwVers_VS on non-programmable device
DWORD m_dwIpAddress; u32 m_dwIpAddress;
DWORD m_dwSubnetMask; u32 m_dwSubnetMask;
DWORD m_dwDefaultGateway; u32 m_dwDefaultGateway;
u8 m_sHostname[32]; u8 m_sHostname[32];
u8 m_abVendorSpecificExt2[48]; u8 m_abVendorSpecificExt2[48];
......
...@@ -111,9 +111,9 @@ extern "C" { ...@@ -111,9 +111,9 @@ extern "C" {
#define AmiSetByteToLe(pAddr_p, bByteVal_p) {*(u8 *)(pAddr_p) = (bByteVal_p);} #define AmiSetByteToLe(pAddr_p, bByteVal_p) {*(u8 *)(pAddr_p) = (bByteVal_p);}
void AmiSetWordToBe(void *pAddr_p, WORD wWordVal_p); void AmiSetWordToBe(void *pAddr_p, WORD wWordVal_p);
void AmiSetDwordToBe(void *pAddr_p, DWORD dwDwordVal_p); void AmiSetDwordToBe(void *pAddr_p, u32 dwDwordVal_p);
void AmiSetWordToLe(void *pAddr_p, WORD wWordVal_p); void AmiSetWordToLe(void *pAddr_p, WORD wWordVal_p);
void AmiSetDwordToLe(void *pAddr_p, DWORD dwDwordVal_p); void AmiSetDwordToLe(void *pAddr_p, u32 dwDwordVal_p);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
...@@ -127,9 +127,9 @@ void AmiSetDwordToLe(void *pAddr_p, DWORD dwDwordVal_p); ...@@ -127,9 +127,9 @@ void AmiSetDwordToLe(void *pAddr_p, DWORD dwDwordVal_p);
#define AmiGetByteFromLe(pAddr_p) (*(u8 *)(pAddr_p)) #define AmiGetByteFromLe(pAddr_p) (*(u8 *)(pAddr_p))
WORD AmiGetWordFromBe(void *pAddr_p); WORD AmiGetWordFromBe(void *pAddr_p);
DWORD AmiGetDwordFromBe(void *pAddr_p); u32 AmiGetDwordFromBe(void *pAddr_p);
WORD AmiGetWordFromLe(void *pAddr_p); WORD AmiGetWordFromLe(void *pAddr_p);
DWORD AmiGetDwordFromLe(void *pAddr_p); u32 AmiGetDwordFromLe(void *pAddr_p);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
...@@ -144,8 +144,8 @@ DWORD AmiGetDwordFromLe(void *pAddr_p); ...@@ -144,8 +144,8 @@ DWORD AmiGetDwordFromLe(void *pAddr_p);
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void AmiSetDword24ToBe(void *pAddr_p, DWORD dwDwordVal_p); void AmiSetDword24ToBe(void *pAddr_p, u32 dwDwordVal_p);
void AmiSetDword24ToLe(void *pAddr_p, DWORD dwDwordVal_p); void AmiSetDword24ToLe(void *pAddr_p, u32 dwDwordVal_p);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
...@@ -155,12 +155,12 @@ void AmiSetDword24ToLe(void *pAddr_p, DWORD dwDwordVal_p); ...@@ -155,12 +155,12 @@ void AmiSetDword24ToLe(void *pAddr_p, DWORD dwDwordVal_p);
// //
// Parameters: pAddr_p = pointer to source buffer // Parameters: pAddr_p = pointer to source buffer
// //
// Return: DWORD = read value // Return: u32 = read value
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
DWORD AmiGetDword24FromBe(void *pAddr_p); u32 AmiGetDword24FromBe(void *pAddr_p);
DWORD AmiGetDword24FromLe(void *pAddr_p); u32 AmiGetDword24FromLe(void *pAddr_p);
//#ifdef USE_VAR64 //#ifdef USE_VAR64
......
...@@ -997,8 +997,8 @@ tEplKernel EplApiCbObdAccess(tEplObdCbParam *pParam_p) ...@@ -997,8 +997,8 @@ tEplKernel EplApiCbObdAccess(tEplObdCbParam *pParam_p)
{ {
if ((pParam_p->m_ObdEvent == kEplObdEvPostWrite) if ((pParam_p->m_ObdEvent == kEplObdEvPostWrite)
&& (pParam_p->m_uiSubIndex == 3) && (pParam_p->m_uiSubIndex == 3)
&& (*((DWORD *) pParam_p->m_pArg) != 0)) { && (*((u32 *) pParam_p->m_pArg) != 0)) {
DWORD dwVerifyConfInvalid = 0; u32 dwVerifyConfInvalid = 0;
// set CFM_VerifyConfiguration_REC.VerifyConfInvalid_U32 to 0 // set CFM_VerifyConfiguration_REC.VerifyConfInvalid_U32 to 0
Ret = Ret =
EplObdWriteEntry(0x1020, 4, EplObdWriteEntry(0x1020, 4,
......
...@@ -135,22 +135,22 @@ typedef struct { ...@@ -135,22 +135,22 @@ typedef struct {
unsigned int m_uiNodeId; // local node ID unsigned int m_uiNodeId; // local node ID
// 0x1F82: NMT_FeatureFlags_U32 // 0x1F82: NMT_FeatureFlags_U32
DWORD m_dwFeatureFlags; u32 m_dwFeatureFlags;
// Cycle Length (0x1006: NMT_CycleLen_U32) in [us] // Cycle Length (0x1006: NMT_CycleLen_U32) in [us]
DWORD m_dwCycleLen; // required for error detection u32 m_dwCycleLen; // required for error detection
// 0x1F98: NMT_CycleTiming_REC // 0x1F98: NMT_CycleTiming_REC
// 0x1F98.1: IsochrTxMaxPayload_U16 // 0x1F98.1: IsochrTxMaxPayload_U16
unsigned int m_uiIsochrTxMaxPayload; // const unsigned int m_uiIsochrTxMaxPayload; // const
// 0x1F98.2: IsochrRxMaxPayload_U16 // 0x1F98.2: IsochrRxMaxPayload_U16
unsigned int m_uiIsochrRxMaxPayload; // const unsigned int m_uiIsochrRxMaxPayload; // const
// 0x1F98.3: PResMaxLatency_U32 // 0x1F98.3: PResMaxLatency_U32
DWORD m_dwPresMaxLatency; // const in [ns], only required for IdentRes u32 m_dwPresMaxLatency; // const in [ns], only required for IdentRes
// 0x1F98.4: PReqActPayloadLimit_U16 // 0x1F98.4: PReqActPayloadLimit_U16
unsigned int m_uiPreqActPayloadLimit; // required for initialisation (+24 bytes) unsigned int m_uiPreqActPayloadLimit; // required for initialisation (+24 bytes)
// 0x1F98.5: PResActPayloadLimit_U16 // 0x1F98.5: PResActPayloadLimit_U16
unsigned int m_uiPresActPayloadLimit; // required for initialisation of Pres frame (+24 bytes) unsigned int m_uiPresActPayloadLimit; // required for initialisation of Pres frame (+24 bytes)
// 0x1F98.6: ASndMaxLatency_U32 // 0x1F98.6: ASndMaxLatency_U32
DWORD m_dwAsndMaxLatency; // const in [ns], only required for IdentRes u32 m_dwAsndMaxLatency; // const in [ns], only required for IdentRes
// 0x1F98.7: MultiplCycleCnt_U8 // 0x1F98.7: MultiplCycleCnt_U8
unsigned int m_uiMultiplCycleCnt; // required for error detection unsigned int m_uiMultiplCycleCnt; // required for error detection
// 0x1F98.8: AsyncMTU_U16 // 0x1F98.8: AsyncMTU_U16
...@@ -159,32 +159,32 @@ typedef struct { ...@@ -159,32 +159,32 @@ typedef struct {
// $$$ Multiplexed Slot // $$$ Multiplexed Slot
// 0x1C14: DLL_LossOfFrameTolerance_U32 in [ns] // 0x1C14: DLL_LossOfFrameTolerance_U32 in [ns]
DWORD m_dwLossOfFrameTolerance; u32 m_dwLossOfFrameTolerance;
// 0x1F8A: NMT_MNCycleTiming_REC // 0x1F8A: NMT_MNCycleTiming_REC
// 0x1F8A.1: WaitSoCPReq_U32 in [ns] // 0x1F8A.1: WaitSoCPReq_U32 in [ns]
DWORD m_dwWaitSocPreq; u32 m_dwWaitSocPreq;
// 0x1F8A.2: AsyncSlotTimeout_U32 in [ns] // 0x1F8A.2: AsyncSlotTimeout_U32 in [ns]
DWORD m_dwAsyncSlotTimeout; u32 m_dwAsyncSlotTimeout;
} tEplDllConfigParam; } tEplDllConfigParam;
typedef struct { typedef struct {
unsigned int m_uiSizeOfStruct; unsigned int m_uiSizeOfStruct;
DWORD m_dwDeviceType; // NMT_DeviceType_U32 u32 m_dwDeviceType; // NMT_DeviceType_U32
DWORD m_dwVendorId; // NMT_IdentityObject_REC.VendorId_U32 u32 m_dwVendorId; // NMT_IdentityObject_REC.VendorId_U32
DWORD m_dwProductCode; // NMT_IdentityObject_REC.ProductCode_U32 u32 m_dwProductCode; // NMT_IdentityObject_REC.ProductCode_U32
DWORD m_dwRevisionNumber; // NMT_IdentityObject_REC.RevisionNo_U32 u32 m_dwRevisionNumber; // NMT_IdentityObject_REC.RevisionNo_U32
DWORD m_dwSerialNumber; // NMT_IdentityObject_REC.SerialNo_U32 u32 m_dwSerialNumber; // NMT_IdentityObject_REC.SerialNo_U32
u64 m_qwVendorSpecificExt1; u64 m_qwVendorSpecificExt1;
DWORD m_dwVerifyConfigurationDate; // CFM_VerifyConfiguration_REC.ConfDate_U32 u32 m_dwVerifyConfigurationDate; // CFM_VerifyConfiguration_REC.ConfDate_U32
DWORD m_dwVerifyConfigurationTime; // CFM_VerifyConfiguration_REC.ConfTime_U32 u32 m_dwVerifyConfigurationTime; // CFM_VerifyConfiguration_REC.ConfTime_U32
DWORD m_dwApplicationSwDate; // PDL_LocVerApplSw_REC.ApplSwDate_U32 on programmable device or date portion of NMT_ManufactSwVers_VS on non-programmable device u32 m_dwApplicationSwDate; // PDL_LocVerApplSw_REC.ApplSwDate_U32 on programmable device or date portion of NMT_ManufactSwVers_VS on non-programmable device
DWORD m_dwApplicationSwTime; // PDL_LocVerApplSw_REC.ApplSwTime_U32 on programmable device or time portion of NMT_ManufactSwVers_VS on non-programmable device u32 m_dwApplicationSwTime; // PDL_LocVerApplSw_REC.ApplSwTime_U32 on programmable device or time portion of NMT_ManufactSwVers_VS on non-programmable device
DWORD m_dwIpAddress; u32 m_dwIpAddress;
DWORD m_dwSubnetMask; u32 m_dwSubnetMask;
DWORD m_dwDefaultGateway; u32 m_dwDefaultGateway;
u8 m_sHostname[32]; u8 m_sHostname[32];
u8 m_abVendorSpecificExt2[48]; u8 m_abVendorSpecificExt2[48];
...@@ -194,7 +194,7 @@ typedef struct { ...@@ -194,7 +194,7 @@ typedef struct {
unsigned int m_uiNodeId; unsigned int m_uiNodeId;
WORD m_wPreqPayloadLimit; // object 0x1F8B: NMT_MNPReqPayloadLimitList_AU16 WORD m_wPreqPayloadLimit; // object 0x1F8B: NMT_MNPReqPayloadLimitList_AU16
WORD m_wPresPayloadLimit; // object 0x1F8D: NMT_PResPayloadLimitList_AU16 WORD m_wPresPayloadLimit; // object 0x1F8D: NMT_PResPayloadLimitList_AU16
DWORD m_dwPresTimeout; // object 0x1F92: NMT_MNCNPResTimeout_AU32 u32 m_dwPresTimeout; // object 0x1F92: NMT_MNCNPResTimeout_AU32
} tEplDllNodeInfo; } tEplDllNodeInfo;
......
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
// TracePoint support for realtime-debugging // TracePoint support for realtime-debugging
#ifdef _DBG_TRACE_POINTS_ #ifdef _DBG_TRACE_POINTS_
void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); void TgtDbgSignalTracePoint(u8 bTracePointNumber_p);
void TgtDbgPostTraceValue(DWORD dwTraceValue_p); void TgtDbgPostTraceValue(u32 dwTraceValue_p);
#define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p) #define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p)
#define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v) #define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v)
#else #else
...@@ -3154,7 +3154,7 @@ static void EplDllkCbFrameReceived(tEdrvRxBuffer * pRxBuffer_p) ...@@ -3154,7 +3154,7 @@ static void EplDllkCbFrameReceived(tEdrvRxBuffer * pRxBuffer_p)
Exit: Exit:
if (Ret != kEplSuccessful) { if (Ret != kEplSuccessful) {
DWORD dwArg; u32 dwArg;
BENCHMARK_MOD_02_TOGGLE(9); BENCHMARK_MOD_02_TOGGLE(9);
...@@ -3448,7 +3448,7 @@ static void EplDllkCbFrameTransmitted(tEdrvTxBuffer * pTxBuffer_p) ...@@ -3448,7 +3448,7 @@ static void EplDllkCbFrameTransmitted(tEdrvTxBuffer * pTxBuffer_p)
Exit: Exit:
if (Ret != kEplSuccessful) { if (Ret != kEplSuccessful) {
DWORD dwArg; u32 dwArg;
BENCHMARK_MOD_02_TOGGLE(9); BENCHMARK_MOD_02_TOGGLE(9);
...@@ -3582,7 +3582,7 @@ static tEplKernel EplDllkCbCnTimer(tEplTimerEventArg *pEventArg_p) ...@@ -3582,7 +3582,7 @@ static tEplKernel EplDllkCbCnTimer(tEplTimerEventArg *pEventArg_p)
Exit: Exit:
if (Ret != kEplSuccessful) { if (Ret != kEplSuccessful) {
DWORD dwArg; u32 dwArg;
BENCHMARK_MOD_02_TOGGLE(9); BENCHMARK_MOD_02_TOGGLE(9);
...@@ -3638,7 +3638,7 @@ static tEplKernel EplDllkCbMnTimerCycle(tEplTimerEventArg *pEventArg_p) ...@@ -3638,7 +3638,7 @@ static tEplKernel EplDllkCbMnTimerCycle(tEplTimerEventArg *pEventArg_p)
Exit: Exit:
if (Ret != kEplSuccessful) { if (Ret != kEplSuccessful) {
DWORD dwArg; u32 dwArg;
BENCHMARK_MOD_02_TOGGLE(9); BENCHMARK_MOD_02_TOGGLE(9);
...@@ -3691,7 +3691,7 @@ static tEplKernel EplDllkCbMnTimerResponse(tEplTimerEventArg *pEventArg_p) ...@@ -3691,7 +3691,7 @@ static tEplKernel EplDllkCbMnTimerResponse(tEplTimerEventArg *pEventArg_p)
Exit: Exit:
if (Ret != kEplSuccessful) { if (Ret != kEplSuccessful) {
DWORD dwArg; u32 dwArg;
BENCHMARK_MOD_02_TOGGLE(9); BENCHMARK_MOD_02_TOGGLE(9);
......
...@@ -97,9 +97,9 @@ ...@@ -97,9 +97,9 @@
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
typedef struct { typedef struct {
DWORD m_dwCumulativeCnt; // subindex 1 u32 m_dwCumulativeCnt; // subindex 1
DWORD m_dwThresholdCnt; // subindex 2 u32 m_dwThresholdCnt; // subindex 2
DWORD m_dwThreshold; // subindex 3 u32 m_dwThreshold; // subindex 3
} tEplErrorHandlerkErrorCounter; } tEplErrorHandlerkErrorCounter;
...@@ -112,9 +112,9 @@ typedef struct { ...@@ -112,9 +112,9 @@ typedef struct {
#if (((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0) #if (((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0)
tEplErrorHandlerkErrorCounter m_MnCrcErr; // object 0x1C00 tEplErrorHandlerkErrorCounter m_MnCrcErr; // object 0x1C00
tEplErrorHandlerkErrorCounter m_MnCycTimeExceed; // object 0x1C02 tEplErrorHandlerkErrorCounter m_MnCycTimeExceed; // object 0x1C02
DWORD m_adwMnCnLossPresCumCnt[254]; // object 0x1C07 u32 m_adwMnCnLossPresCumCnt[254]; // object 0x1C07
DWORD m_adwMnCnLossPresThrCnt[254]; // object 0x1C08 u32 m_adwMnCnLossPresThrCnt[254]; // object 0x1C08
DWORD m_adwMnCnLossPresThreshold[254]; // object 0x1C09 u32 m_adwMnCnLossPresThreshold[254]; // object 0x1C09
BOOL m_afMnCnLossPresEvent[254]; BOOL m_afMnCnLossPresEvent[254];
#endif #endif
...@@ -135,7 +135,7 @@ static tEplKernel EplErrorHandlerkLinkErrorCounter(tEplErrorHandlerkErrorCounter ...@@ -135,7 +135,7 @@ static tEplKernel EplErrorHandlerkLinkErrorCounter(tEplErrorHandlerkErrorCounter
unsigned int uiIndex_p); unsigned int uiIndex_p);
#if (((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0) #if (((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0)
static tEplKernel EplErrorHandlerkLinkArray(DWORD * pdwValue_p, static tEplKernel EplErrorHandlerkLinkArray(u32 * pdwValue_p,
unsigned int uiValueCount_p, unsigned int uiValueCount_p,
unsigned int uiIndex_p); unsigned int uiIndex_p);
#endif #endif
...@@ -713,7 +713,7 @@ static tEplKernel EplErrorHandlerkLinkErrorCounter(tEplErrorHandlerkErrorCounter ...@@ -713,7 +713,7 @@ static tEplKernel EplErrorHandlerkLinkErrorCounter(tEplErrorHandlerkErrorCounter
tEplVarParam VarParam; tEplVarParam VarParam;
VarParam.m_pData = &pErrorCounter_p->m_dwCumulativeCnt; VarParam.m_pData = &pErrorCounter_p->m_dwCumulativeCnt;
VarParam.m_Size = sizeof(DWORD); VarParam.m_Size = sizeof(u32);
VarParam.m_uiIndex = uiIndex_p; VarParam.m_uiIndex = uiIndex_p;
VarParam.m_uiSubindex = 0x01; VarParam.m_uiSubindex = 0x01;
VarParam.m_ValidFlag = kVarValidAll; VarParam.m_ValidFlag = kVarValidAll;
...@@ -723,7 +723,7 @@ static tEplKernel EplErrorHandlerkLinkErrorCounter(tEplErrorHandlerkErrorCounter ...@@ -723,7 +723,7 @@ static tEplKernel EplErrorHandlerkLinkErrorCounter(tEplErrorHandlerkErrorCounter
} }
VarParam.m_pData = &pErrorCounter_p->m_dwThresholdCnt; VarParam.m_pData = &pErrorCounter_p->m_dwThresholdCnt;
VarParam.m_Size = sizeof(DWORD); VarParam.m_Size = sizeof(u32);
VarParam.m_uiIndex = uiIndex_p; VarParam.m_uiIndex = uiIndex_p;
VarParam.m_uiSubindex = 0x02; VarParam.m_uiSubindex = 0x02;
VarParam.m_ValidFlag = kVarValidAll; VarParam.m_ValidFlag = kVarValidAll;
...@@ -733,7 +733,7 @@ static tEplKernel EplErrorHandlerkLinkErrorCounter(tEplErrorHandlerkErrorCounter ...@@ -733,7 +733,7 @@ static tEplKernel EplErrorHandlerkLinkErrorCounter(tEplErrorHandlerkErrorCounter
} }
VarParam.m_pData = &pErrorCounter_p->m_dwThreshold; VarParam.m_pData = &pErrorCounter_p->m_dwThreshold;
VarParam.m_Size = sizeof(DWORD); VarParam.m_Size = sizeof(u32);
VarParam.m_uiIndex = uiIndex_p; VarParam.m_uiIndex = uiIndex_p;
VarParam.m_uiSubindex = 0x03; VarParam.m_uiSubindex = 0x03;
VarParam.m_ValidFlag = kVarValidAll; VarParam.m_ValidFlag = kVarValidAll;
...@@ -763,7 +763,7 @@ static tEplKernel EplErrorHandlerkLinkErrorCounter(tEplErrorHandlerkErrorCounter ...@@ -763,7 +763,7 @@ static tEplKernel EplErrorHandlerkLinkErrorCounter(tEplErrorHandlerkErrorCounter
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#if (((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0) #if (((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0)
static tEplKernel EplErrorHandlerkLinkArray(DWORD * pdwValue_p, static tEplKernel EplErrorHandlerkLinkArray(u32 * pdwValue_p,
unsigned int uiValueCount_p, unsigned int uiValueCount_p,
unsigned int uiIndex_p) unsigned int uiIndex_p)
{ {
...@@ -786,7 +786,7 @@ static tEplKernel EplErrorHandlerkLinkArray(DWORD * pdwValue_p, ...@@ -786,7 +786,7 @@ static tEplKernel EplErrorHandlerkLinkArray(DWORD * pdwValue_p,
uiValueCount_p = bIndexEntries; uiValueCount_p = bIndexEntries;
} }
VarParam.m_Size = sizeof(DWORD); VarParam.m_Size = sizeof(u32);
VarParam.m_uiIndex = uiIndex_p; VarParam.m_uiIndex = uiIndex_p;
VarParam.m_ValidFlag = kVarValidAll; VarParam.m_ValidFlag = kVarValidAll;
......
...@@ -249,7 +249,7 @@ typedef struct { ...@@ -249,7 +249,7 @@ typedef struct {
tEplKernel m_EplError; // EPL error which occured tEplKernel m_EplError; // EPL error which occured
union { union {
u8 m_bArg; u8 m_bArg;
DWORD m_dwArg; u32 m_dwArg;
tEplEventSource m_EventSource; // from Eventk/u module (originating error source) tEplEventSource m_EventSource; // from Eventk/u module (originating error source)
tEplEventObdError m_ObdError; // from Obd module tEplEventObdError m_ObdError; // from Obd module
// tEplErrHistoryEntry m_HistoryEntry; // from Nmtk/u module // tEplErrHistoryEntry m_HistoryEntry; // from Nmtk/u module
......
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
// TracePoint support for realtime-debugging // TracePoint support for realtime-debugging
#ifdef _DBG_TRACE_POINTS_ #ifdef _DBG_TRACE_POINTS_
void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); void TgtDbgSignalTracePoint(u8 bTracePointNumber_p);
void TgtDbgPostTraceValue(DWORD dwTraceValue_p); void TgtDbgPostTraceValue(u32 dwTraceValue_p);
#define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p) #define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p)
#define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v) #define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v)
#else #else
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
// TracePoint support for realtime-debugging // TracePoint support for realtime-debugging
#ifdef _DBG_TRACE_POINTS_ #ifdef _DBG_TRACE_POINTS_
void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); void TgtDbgSignalTracePoint(u8 bTracePointNumber_p);
void TgtDbgPostTraceValue(DWORD dwTraceValue_p); void TgtDbgPostTraceValue(u32 dwTraceValue_p);
#define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p) #define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p)
#define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v) #define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v)
#else #else
......
...@@ -214,25 +214,25 @@ typedef struct { ...@@ -214,25 +214,25 @@ typedef struct {
u8 m_le_bIdentRespFlags; // Flags: FW u8 m_le_bIdentRespFlags; // Flags: FW
u8 m_le_bEplProfileVersion; u8 m_le_bEplProfileVersion;
u8 m_le_bRes1; u8 m_le_bRes1;
DWORD m_le_dwFeatureFlags; // NMT_FeatureFlags_U32 u32 m_le_dwFeatureFlags; // NMT_FeatureFlags_U32
WORD m_le_wMtu; // NMT_CycleTiming_REC.AsyncMTU_U16: C_IP_MIN_MTU - C_IP_MAX_MTU WORD m_le_wMtu; // NMT_CycleTiming_REC.AsyncMTU_U16: C_IP_MIN_MTU - C_IP_MAX_MTU
WORD m_le_wPollInSize; // NMT_CycleTiming_REC.PReqActPayload_U16 WORD m_le_wPollInSize; // NMT_CycleTiming_REC.PReqActPayload_U16
WORD m_le_wPollOutSize; // NMT_CycleTiming_REC.PResActPayload_U16 WORD m_le_wPollOutSize; // NMT_CycleTiming_REC.PResActPayload_U16
DWORD m_le_dwResponseTime; // NMT_CycleTiming_REC.PResMaxLatency_U32 u32 m_le_dwResponseTime; // NMT_CycleTiming_REC.PResMaxLatency_U32
WORD m_le_wRes2; WORD m_le_wRes2;
DWORD m_le_dwDeviceType; // NMT_DeviceType_U32 u32 m_le_dwDeviceType; // NMT_DeviceType_U32
DWORD m_le_dwVendorId; // NMT_IdentityObject_REC.VendorId_U32 u32 m_le_dwVendorId; // NMT_IdentityObject_REC.VendorId_U32
DWORD m_le_dwProductCode; // NMT_IdentityObject_REC.ProductCode_U32 u32 m_le_dwProductCode; // NMT_IdentityObject_REC.ProductCode_U32
DWORD m_le_dwRevisionNumber; // NMT_IdentityObject_REC.RevisionNo_U32 u32 m_le_dwRevisionNumber; // NMT_IdentityObject_REC.RevisionNo_U32
DWORD m_le_dwSerialNumber; // NMT_IdentityObject_REC.SerialNo_U32 u32 m_le_dwSerialNumber; // NMT_IdentityObject_REC.SerialNo_U32
u64 m_le_qwVendorSpecificExt1; u64 m_le_qwVendorSpecificExt1;
DWORD m_le_dwVerifyConfigurationDate; // CFM_VerifyConfiguration_REC.ConfDate_U32 u32 m_le_dwVerifyConfigurationDate; // CFM_VerifyConfiguration_REC.ConfDate_U32
DWORD m_le_dwVerifyConfigurationTime; // CFM_VerifyConfiguration_REC.ConfTime_U32 u32 m_le_dwVerifyConfigurationTime; // CFM_VerifyConfiguration_REC.ConfTime_U32
DWORD m_le_dwApplicationSwDate; // PDL_LocVerApplSw_REC.ApplSwDate_U32 on programmable device or date portion of NMT_ManufactSwVers_VS on non-programmable device u32 m_le_dwApplicationSwDate; // PDL_LocVerApplSw_REC.ApplSwDate_U32 on programmable device or date portion of NMT_ManufactSwVers_VS on non-programmable device
DWORD m_le_dwApplicationSwTime; // PDL_LocVerApplSw_REC.ApplSwTime_U32 on programmable device or time portion of NMT_ManufactSwVers_VS on non-programmable device u32 m_le_dwApplicationSwTime; // PDL_LocVerApplSw_REC.ApplSwTime_U32 on programmable device or time portion of NMT_ManufactSwVers_VS on non-programmable device
DWORD m_le_dwIpAddress; u32 m_le_dwIpAddress;
DWORD m_le_dwSubnetMask; u32 m_le_dwSubnetMask;
DWORD m_le_dwDefaultGateway; u32 m_le_dwDefaultGateway;
u8 m_le_sHostname[32]; u8 m_le_sHostname[32];
u8 m_le_abVendorSpecificExt2[48]; u8 m_le_abVendorSpecificExt2[48];
......
...@@ -386,9 +386,9 @@ tEplKernel EplIdentuRequestIdentResponse(unsigned int uiNodeId_p, ...@@ -386,9 +386,9 @@ tEplKernel EplIdentuRequestIdentResponse(unsigned int uiNodeId_p,
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
EPLDLLEXPORT DWORD EplIdentuGetRunningRequests(void) EPLDLLEXPORT u32 EplIdentuGetRunningRequests(void)
{ {
DWORD dwReqs = 0; u32 dwReqs = 0;
unsigned int uiIndex; unsigned int uiIndex;
for (uiIndex = 0; uiIndex < 32; uiIndex++) { for (uiIndex = 0; uiIndex < 32; uiIndex++) {
......
...@@ -140,8 +140,8 @@ ...@@ -140,8 +140,8 @@
// IEEE 1588 conformant net time structure // IEEE 1588 conformant net time structure
typedef struct { typedef struct {
DWORD m_dwSec; u32 m_dwSec;
DWORD m_dwNanoSec; u32 m_dwNanoSec;
} tEplNetTime; } tEplNetTime;
...@@ -154,8 +154,8 @@ typedef struct { ...@@ -154,8 +154,8 @@ typedef struct {
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
#define EPL_SPEC_VERSION 0x20 // ETHERNET Powerlink V. 2.0 #define EPL_SPEC_VERSION 0x20 // ETHERNET Powerlink V. 2.0
#define EPL_STACK_VERSION(ver,rev,rel) ((((DWORD)(ver)) & 0xFF)|((((DWORD)(rev))&0xFF)<<8)|(((DWORD)(rel))<<16)) #define EPL_STACK_VERSION(ver,rev,rel) ((((u32)(ver)) & 0xFF)|((((u32)(rev))&0xFF)<<8)|(((u32)(rel))<<16))
#define EPL_OBJ1018_VERSION(ver,rev,rel) ((((DWORD)(ver))<<16) |(((DWORD)(rev))&0xFFFF)) #define EPL_OBJ1018_VERSION(ver,rev,rel) ((((u32)(ver))<<16) |(((u32)(rev))&0xFFFF))
#define EPL_STRING_VERSION(ver,rev,rel) "V" #ver "." #rev " r" #rel #define EPL_STRING_VERSION(ver,rev,rel) "V" #ver "." #rev " r" #rel
#include "EplVersion.h" #include "EplVersion.h"
......
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
// TracePoint support for realtime-debugging // TracePoint support for realtime-debugging
#ifdef _DBG_TRACE_POINTS_ #ifdef _DBG_TRACE_POINTS_
void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); void TgtDbgSignalTracePoint(u8 bTracePointNumber_p);
void TgtDbgPostTraceValue(DWORD dwTraceValue_p); void TgtDbgPostTraceValue(u32 dwTraceValue_p);
#define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p) #define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p)
#define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v) #define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v)
#else #else
...@@ -211,7 +211,7 @@ typedef struct { ...@@ -211,7 +211,7 @@ typedef struct {
tEplTimerHdl m_TimerHdlStatReq; // timer to delay StatusRequests and IdentRequests tEplTimerHdl m_TimerHdlStatReq; // timer to delay StatusRequests and IdentRequests
tEplTimerHdl m_TimerHdlLonger; // 2nd timer for NMT command EnableReadyToOp and CheckCommunication tEplTimerHdl m_TimerHdlLonger; // 2nd timer for NMT command EnableReadyToOp and CheckCommunication
tEplNmtMnuNodeState m_NodeState; // internal node state (kind of sub state of NMT state) tEplNmtMnuNodeState m_NodeState; // internal node state (kind of sub state of NMT state)
DWORD m_dwNodeCfg; // subindex from 0x1F81 u32 m_dwNodeCfg; // subindex from 0x1F81
WORD m_wFlags; // flags: CN is being accessed isochronously WORD m_wFlags; // flags: CN is being accessed isochronously
} tEplNmtMnuNodeInfo; } tEplNmtMnuNodeInfo;
...@@ -225,7 +225,7 @@ typedef struct { ...@@ -225,7 +225,7 @@ typedef struct {
unsigned long m_ulTimeoutReadyToOp; // in [ms] (object 0x1F89/5) unsigned long m_ulTimeoutReadyToOp; // in [ms] (object 0x1F89/5)
unsigned long m_ulTimeoutCheckCom; // in [ms] (object 0x1006 * MultiplexedCycleCount) unsigned long m_ulTimeoutCheckCom; // in [ms] (object 0x1006 * MultiplexedCycleCount)
WORD m_wFlags; // global flags WORD m_wFlags; // global flags
DWORD m_dwNmtStartup; // object 0x1F80 NMT_StartUp_U32 u32 m_dwNmtStartup; // object 0x1F80 NMT_StartUp_U32
tEplNmtMnuCbNodeEvent m_pfnCbNodeEvent; tEplNmtMnuCbNodeEvent m_pfnCbNodeEvent;
tEplNmtMnuCbBootEvent m_pfnCbBootEvent; tEplNmtMnuCbBootEvent m_pfnCbBootEvent;
...@@ -673,7 +673,7 @@ tEplKernel EplNmtMnuCbNmtStateChange(tEplEventNmtStateChange NmtStateChange_p) ...@@ -673,7 +673,7 @@ tEplKernel EplNmtMnuCbNmtStateChange(tEplEventNmtStateChange NmtStateChange_p)
// build the configuration with infos from OD // build the configuration with infos from OD
case kEplNmtGsResetConfiguration: case kEplNmtGsResetConfiguration:
{ {
DWORD dwTimeout; u32 dwTimeout;
tEplObdSize ObdSize; tEplObdSize ObdSize;
// read object 0x1F80 NMT_StartUp_U32 // read object 0x1F80 NMT_StartUp_U32
...@@ -785,7 +785,7 @@ tEplKernel EplNmtMnuCbNmtStateChange(tEplEventNmtStateChange NmtStateChange_p) ...@@ -785,7 +785,7 @@ tEplKernel EplNmtMnuCbNmtStateChange(tEplEventNmtStateChange NmtStateChange_p)
// node processes only async frames // node processes only async frames
case kEplNmtMsPreOperational1: case kEplNmtMsPreOperational1:
{ {
DWORD dwTimeout; u32 dwTimeout;
tEplTimerArg TimerArg; tEplTimerArg TimerArg;
tEplObdSize ObdSize; tEplObdSize ObdSize;
tEplEvent Event; tEplEvent Event;
...@@ -1291,7 +1291,7 @@ tEplKernel EplNmtMnuGetDiagnosticInfo(unsigned int *puiMandatorySlaveCount_p, ...@@ -1291,7 +1291,7 @@ tEplKernel EplNmtMnuGetDiagnosticInfo(unsigned int *puiMandatorySlaveCount_p,
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
/* /*
DWORD EplNmtMnuGetRunningTimerStatReq(void) u32 EplNmtMnuGetRunningTimerStatReq(void)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
unsigned int uiIndex; unsigned int uiIndex;
...@@ -1376,7 +1376,7 @@ static tEplKernel EplNmtMnuCbIdentResponse(unsigned int uiNodeId_p, ...@@ -1376,7 +1376,7 @@ static tEplKernel EplNmtMnuCbIdentResponse(unsigned int uiNodeId_p,
kEplNmtMnuIntNodeEventNoIdentResponse); kEplNmtMnuIntNodeEventNoIdentResponse);
} else { // node answered IdentRequest } else { // node answered IdentRequest
tEplObdSize ObdSize; tEplObdSize ObdSize;
DWORD dwDevType; u32 dwDevType;
WORD wErrorCode = EPL_E_NO_ERROR; WORD wErrorCode = EPL_E_NO_ERROR;
tEplNmtState NmtState = tEplNmtState NmtState =
(tEplNmtState) (AmiGetByteFromLe (tEplNmtState) (AmiGetByteFromLe
...@@ -1466,7 +1466,7 @@ static tEplKernel EplNmtMnuStartBootStep1(void) ...@@ -1466,7 +1466,7 @@ static tEplKernel EplNmtMnuStartBootStep1(void)
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
unsigned int uiSubIndex; unsigned int uiSubIndex;
unsigned int uiLocalNodeId; unsigned int uiLocalNodeId;
DWORD dwNodeCfg; u32 dwNodeCfg;
tEplObdSize ObdSize; tEplObdSize ObdSize;
// $$$ d.k.: save current time for 0x1F89/2 MNTimeoutPreOp1_U32 // $$$ d.k.: save current time for 0x1F89/2 MNTimeoutPreOp1_U32
...@@ -1626,7 +1626,7 @@ static tEplKernel EplNmtMnuNodeBootStep2(unsigned int uiNodeId_p, ...@@ -1626,7 +1626,7 @@ static tEplKernel EplNmtMnuNodeBootStep2(unsigned int uiNodeId_p,
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
tEplDllNodeInfo DllNodeInfo; tEplDllNodeInfo DllNodeInfo;
DWORD dwNodeCfg; u32 dwNodeCfg;
tEplObdSize ObdSize; tEplObdSize ObdSize;
tEplTimerArg TimerArg; tEplTimerArg TimerArg;
...@@ -1775,7 +1775,7 @@ static tEplKernel EplNmtMnuNodeCheckCom(unsigned int uiNodeId_p, ...@@ -1775,7 +1775,7 @@ static tEplKernel EplNmtMnuNodeCheckCom(unsigned int uiNodeId_p,
tEplNmtMnuNodeInfo * pNodeInfo_p) tEplNmtMnuNodeInfo * pNodeInfo_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
DWORD dwNodeCfg; u32 dwNodeCfg;
tEplTimerArg TimerArg; tEplTimerArg TimerArg;
dwNodeCfg = pNodeInfo_p->m_dwNodeCfg; dwNodeCfg = pNodeInfo_p->m_dwNodeCfg;
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
// TracePoint support for realtime-debugging // TracePoint support for realtime-debugging
#ifdef _DBG_TRACE_POINTS_ #ifdef _DBG_TRACE_POINTS_
void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); void TgtDbgSignalTracePoint(u8 bTracePointNumber_p);
void TgtDbgPostTraceValue(DWORD dwTraceValue_p); void TgtDbgPostTraceValue(u32 dwTraceValue_p);
#define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p) #define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p)
#define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v) #define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v)
#else #else
......
...@@ -382,7 +382,7 @@ EPLDLLEXPORT tEplKernel EplNmtuProcessEvent(tEplEvent *pEplEvent_p) ...@@ -382,7 +382,7 @@ EPLDLLEXPORT tEplKernel EplNmtuProcessEvent(tEplEvent *pEplEvent_p)
// node listens for EPL-Frames and check timeout // node listens for EPL-Frames and check timeout
case kEplNmtCsNotActive: case kEplNmtCsNotActive:
{ {
DWORD dwBuffer; u32 dwBuffer;
tEplObdSize ObdSize; tEplObdSize ObdSize;
tEplTimerArg TimerArg; tEplTimerArg TimerArg;
...@@ -475,7 +475,7 @@ EPLDLLEXPORT tEplKernel EplNmtuProcessEvent(tEplEvent *pEplEvent_p) ...@@ -475,7 +475,7 @@ EPLDLLEXPORT tEplKernel EplNmtuProcessEvent(tEplEvent *pEplEvent_p)
// node listens for EPL-Frames and check timeout // node listens for EPL-Frames and check timeout
case kEplNmtMsNotActive: case kEplNmtMsNotActive:
{ {
DWORD dwBuffer; u32 dwBuffer;
tEplObdSize ObdSize; tEplObdSize ObdSize;
tEplTimerArg TimerArg; tEplTimerArg TimerArg;
...@@ -544,7 +544,7 @@ EPLDLLEXPORT tEplKernel EplNmtuProcessEvent(tEplEvent *pEplEvent_p) ...@@ -544,7 +544,7 @@ EPLDLLEXPORT tEplKernel EplNmtuProcessEvent(tEplEvent *pEplEvent_p)
// node processes only async frames // node processes only async frames
case kEplNmtMsPreOperational1: case kEplNmtMsPreOperational1:
{ {
DWORD dwBuffer = 0; u32 dwBuffer = 0;
tEplObdSize ObdSize; tEplObdSize ObdSize;
tEplTimerArg TimerArg; tEplTimerArg TimerArg;
......
...@@ -1088,7 +1088,7 @@ EPLDLLEXPORT tEplKernel EplObdReadEntryToLe(EPL_MCO_DECL_INSTANCE_PTR_ unsigned ...@@ -1088,7 +1088,7 @@ EPLDLLEXPORT tEplKernel EplObdReadEntryToLe(EPL_MCO_DECL_INSTANCE_PTR_ unsigned
case kEplObdTypInt24: case kEplObdTypInt24:
case kEplObdTypUInt24: case kEplObdTypUInt24:
{ {
AmiSetDword24ToLe(pDstData_p, *((DWORD *) pSrcData)); AmiSetDword24ToLe(pDstData_p, *((u32 *) pSrcData));
break; break;
} }
...@@ -1097,7 +1097,7 @@ EPLDLLEXPORT tEplKernel EplObdReadEntryToLe(EPL_MCO_DECL_INSTANCE_PTR_ unsigned ...@@ -1097,7 +1097,7 @@ EPLDLLEXPORT tEplKernel EplObdReadEntryToLe(EPL_MCO_DECL_INSTANCE_PTR_ unsigned
case kEplObdTypUInt32: case kEplObdTypUInt32:
case kEplObdTypReal32: case kEplObdTypReal32:
{ {
AmiSetDwordToLe(pDstData_p, *((DWORD *) pSrcData)); AmiSetDwordToLe(pDstData_p, *((u32 *) pSrcData));
break; break;
} }
...@@ -1238,7 +1238,7 @@ EPLDLLEXPORT tEplKernel EplObdWriteEntryFromLe(EPL_MCO_DECL_INSTANCE_PTR_ unsign ...@@ -1238,7 +1238,7 @@ EPLDLLEXPORT tEplKernel EplObdWriteEntryFromLe(EPL_MCO_DECL_INSTANCE_PTR_ unsign
case kEplObdTypInt24: case kEplObdTypInt24:
case kEplObdTypUInt24: case kEplObdTypUInt24:
{ {
*((DWORD *) pBuffer) = AmiGetDword24FromLe(pSrcData_p); *((u32 *) pBuffer) = AmiGetDword24FromLe(pSrcData_p);
break; break;
} }
...@@ -1247,7 +1247,7 @@ EPLDLLEXPORT tEplKernel EplObdWriteEntryFromLe(EPL_MCO_DECL_INSTANCE_PTR_ unsign ...@@ -1247,7 +1247,7 @@ EPLDLLEXPORT tEplKernel EplObdWriteEntryFromLe(EPL_MCO_DECL_INSTANCE_PTR_ unsign
case kEplObdTypUInt32: case kEplObdTypUInt32:
case kEplObdTypReal32: case kEplObdTypReal32:
{ {
*((DWORD *) pBuffer) = AmiGetDwordFromLe(pSrcData_p); *((u32 *) pBuffer) = AmiGetDwordFromLe(pSrcData_p);
break; break;
} }
......
...@@ -370,7 +370,7 @@ typedef struct { ...@@ -370,7 +370,7 @@ typedef struct {
unsigned int m_uiIndex; unsigned int m_uiIndex;
unsigned int m_uiSubIndex; unsigned int m_uiSubIndex;
void *m_pArg; void *m_pArg;
DWORD m_dwAbortCode; u32 m_dwAbortCode;
} tEplObdCbParam; } tEplObdCbParam;
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
// #pragma message ("EPL_OBD_CREATE_ROM_DATA") // #pragma message ("EPL_OBD_CREATE_ROM_DATA")
#define EPL_OBD_BEGIN() static DWORD dwObd_OBK_g = 0x0000; #define EPL_OBD_BEGIN() static u32 dwObd_OBK_g = 0x0000;
#define EPL_OBD_END() #define EPL_OBD_END()
//--------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------
......
...@@ -160,7 +160,7 @@ static void EplPdouDecodeObjectMapping(u64 qwObjectMapping_p, ...@@ -160,7 +160,7 @@ static void EplPdouDecodeObjectMapping(u64 qwObjectMapping_p,
static tEplKernel EplPdouCheckObjectMapping(u64 qwObjectMapping_p, static tEplKernel EplPdouCheckObjectMapping(u64 qwObjectMapping_p,
tEplObdAccess AccessType_p, tEplObdAccess AccessType_p,
DWORD * pdwAbortCode_p, u32 * pdwAbortCode_p,
unsigned int *puiPdoSize_p); unsigned int *puiPdoSize_p);
//=========================================================================// //=========================================================================//
...@@ -482,7 +482,7 @@ static void EplPdouDecodeObjectMapping(u64 qwObjectMapping_p, ...@@ -482,7 +482,7 @@ static void EplPdouDecodeObjectMapping(u64 qwObjectMapping_p,
static tEplKernel EplPdouCheckObjectMapping(u64 qwObjectMapping_p, static tEplKernel EplPdouCheckObjectMapping(u64 qwObjectMapping_p,
tEplObdAccess AccessType_p, tEplObdAccess AccessType_p,
DWORD * pdwAbortCode_p, u32 * pdwAbortCode_p,
unsigned int *puiPdoSize_p) unsigned int *puiPdoSize_p)
{ {
tEplKernel Ret = kEplSuccessful; tEplKernel Ret = kEplSuccessful;
......
...@@ -207,7 +207,7 @@ typedef enum { ...@@ -207,7 +207,7 @@ typedef enum {
typedef struct { typedef struct {
tEplSdoComConHdl m_SdoComConHdl; tEplSdoComConHdl m_SdoComConHdl;
tEplSdoComConState m_SdoComConState; tEplSdoComConState m_SdoComConState;
DWORD m_dwAbortCode; u32 m_dwAbortCode;
tEplSdoAccessType m_SdoAccessType; tEplSdoAccessType m_SdoAccessType;
unsigned int m_uiNodeId; // NodeId of the target unsigned int m_uiNodeId; // NodeId of the target
unsigned int m_uiTargetIndex; // index which was accessed unsigned int m_uiTargetIndex; // index which was accessed
......
...@@ -321,7 +321,7 @@ tEplKernel EplSdoAsnduInitCon(tEplSdoConHdl *pSdoConHandle_p, ...@@ -321,7 +321,7 @@ tEplKernel EplSdoAsnduInitCon(tEplSdoConHdl *pSdoConHandle_p,
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
tEplKernel EplSdoAsnduSendData(tEplSdoConHdl SdoConHandle_p, tEplKernel EplSdoAsnduSendData(tEplSdoConHdl SdoConHandle_p,
tEplFrame *pSrcData_p, tEplFrame *pSrcData_p,
DWORD dwDataSize_p) u32 dwDataSize_p)
{ {
tEplKernel Ret; tEplKernel Ret;
unsigned int uiArray; unsigned int uiArray;
......
...@@ -174,7 +174,7 @@ typedef struct { ...@@ -174,7 +174,7 @@ typedef struct {
// the SDO transfer // the SDO transfer
void *m_pUserArg; // user definable argument pointer void *m_pUserArg; // user definable argument pointer
DWORD m_dwLastAbortCode; // save the last abort code u32 m_dwLastAbortCode; // save the last abort code
#if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_SDOC)) != 0) #if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_SDOC)) != 0)
// only for client // only for client
unsigned int m_uiTargetIndex; // index to access unsigned int m_uiTargetIndex; // index to access
...@@ -246,7 +246,7 @@ static tEplKernel EplSdoComClientProcessFrame(tEplSdoComConHdl SdoComCon_p, ...@@ -246,7 +246,7 @@ static tEplKernel EplSdoComClientProcessFrame(tEplSdoComConHdl SdoComCon_p,
tEplAsySdoCom * pAsySdoCom_p); tEplAsySdoCom * pAsySdoCom_p);
static tEplKernel EplSdoComClientSendAbort(tEplSdoComCon * pSdoComCon_p, static tEplKernel EplSdoComClientSendAbort(tEplSdoComCon * pSdoComCon_p,
DWORD dwAbortCode_p); u32 dwAbortCode_p);
#endif #endif
/***************************************************************************/ /***************************************************************************/
...@@ -747,7 +747,7 @@ tEplKernel EplSdoComGetState(tEplSdoComConHdl SdoComConHdl_p, ...@@ -747,7 +747,7 @@ tEplKernel EplSdoComGetState(tEplSdoComConHdl SdoComConHdl_p,
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_SDOC)) != 0) #if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_SDOC)) != 0)
tEplKernel EplSdoComSdoAbort(tEplSdoComConHdl SdoComConHdl_p, tEplKernel EplSdoComSdoAbort(tEplSdoComConHdl SdoComConHdl_p,
DWORD dwAbortCode_p) u32 dwAbortCode_p)
{ {
tEplKernel Ret; tEplKernel Ret;
tEplSdoComCon *pSdoComCon; tEplSdoComCon *pSdoComCon;
...@@ -1001,7 +1001,7 @@ static tEplKernel EplSdoComProcessIntern(tEplSdoComConHdl SdoComCon_p, ...@@ -1001,7 +1001,7 @@ static tEplKernel EplSdoComProcessIntern(tEplSdoComConHdl SdoComCon_p,
u8 bFlag; u8 bFlag;
#if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_SDOS)) != 0) #if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_SDOS)) != 0)
DWORD dwAbortCode; u32 dwAbortCode;
unsigned int uiSize; unsigned int uiSize;
#endif #endif
...@@ -1666,7 +1666,7 @@ static tEplKernel EplSdoComProcessIntern(tEplSdoComConHdl SdoComCon_p, ...@@ -1666,7 +1666,7 @@ static tEplKernel EplSdoComProcessIntern(tEplSdoComConHdl SdoComCon_p,
case kEplSdoComConEventAbort: case kEplSdoComConEventAbort:
{ {
EplSdoComClientSendAbort(pSdoComCon, EplSdoComClientSendAbort(pSdoComCon,
*((DWORD *) *((u32 *)
pSdoComCon-> pSdoComCon->
m_pData)); m_pData));
...@@ -1674,7 +1674,7 @@ static tEplKernel EplSdoComProcessIntern(tEplSdoComConHdl SdoComCon_p, ...@@ -1674,7 +1674,7 @@ static tEplKernel EplSdoComProcessIntern(tEplSdoComConHdl SdoComCon_p,
pSdoComCon->m_bTransactionId++; pSdoComCon->m_bTransactionId++;
// call callback of application // call callback of application
pSdoComCon->m_dwLastAbortCode = pSdoComCon->m_dwLastAbortCode =
*((DWORD *) pSdoComCon->m_pData); *((u32 *) pSdoComCon->m_pData);
Ret = Ret =
EplSdoComTransferFinished EplSdoComTransferFinished
(SdoComCon_p, pSdoComCon, (SdoComCon_p, pSdoComCon,
...@@ -1868,7 +1868,7 @@ static tEplKernel EplSdoComProcessIntern(tEplSdoComConHdl SdoComCon_p, ...@@ -1868,7 +1868,7 @@ static tEplKernel EplSdoComProcessIntern(tEplSdoComConHdl SdoComCon_p,
case kEplSdoComConEventAbort: case kEplSdoComConEventAbort:
{ {
EplSdoComClientSendAbort(pSdoComCon, EplSdoComClientSendAbort(pSdoComCon,
*((DWORD *) *((u32 *)
pSdoComCon-> pSdoComCon->
m_pData)); m_pData));
...@@ -1879,7 +1879,7 @@ static tEplKernel EplSdoComProcessIntern(tEplSdoComConHdl SdoComCon_p, ...@@ -1879,7 +1879,7 @@ static tEplKernel EplSdoComProcessIntern(tEplSdoComConHdl SdoComCon_p,
kEplSdoComStateClientConnected; kEplSdoComStateClientConnected;
// call callback of application // call callback of application
pSdoComCon->m_dwLastAbortCode = pSdoComCon->m_dwLastAbortCode =
*((DWORD *) pSdoComCon->m_pData); *((u32 *) pSdoComCon->m_pData);
Ret = Ret =
EplSdoComTransferFinished EplSdoComTransferFinished
(SdoComCon_p, pSdoComCon, (SdoComCon_p, pSdoComCon,
...@@ -1964,7 +1964,7 @@ static tEplKernel EplSdoComServerInitReadByIndex(tEplSdoComCon * pSdoComCon_p, ...@@ -1964,7 +1964,7 @@ static tEplKernel EplSdoComServerInitReadByIndex(tEplSdoComCon * pSdoComCon_p,
unsigned int uiSubindex; unsigned int uiSubindex;
tEplObdSize EntrySize; tEplObdSize EntrySize;
tEplObdAccess AccessType; tEplObdAccess AccessType;
DWORD dwAbortCode; u32 dwAbortCode;
dwAbortCode = 0; dwAbortCode = 0;
...@@ -2323,18 +2323,18 @@ static tEplKernel EplSdoComServerSendFrameIntern(tEplSdoComCon * pSdoComCon_p, ...@@ -2323,18 +2323,18 @@ static tEplKernel EplSdoComServerSendFrameIntern(tEplSdoComCon * pSdoComCon_p,
// copy abortcode to frame // copy abortcode to frame
AmiSetDwordToLe(&pCommandFrame->m_le_abCommandData[0], AmiSetDwordToLe(&pCommandFrame->m_le_abCommandData[0],
*((DWORD *) pSdoComCon_p->m_pData)); *((u32 *) pSdoComCon_p->m_pData));
// set size of segment // set size of segment
AmiSetWordToLe(&pCommandFrame->m_le_wSegmentSize, AmiSetWordToLe(&pCommandFrame->m_le_wSegmentSize,
sizeof(DWORD)); sizeof(u32));
// update counter // update counter
pSdoComCon_p->m_uiTransferredByte = sizeof(DWORD); pSdoComCon_p->m_uiTransferredByte = sizeof(u32);
pSdoComCon_p->m_uiTransSize = 0; pSdoComCon_p->m_uiTransSize = 0;
// calc framesize // calc framesize
uiSizeOfFrame += sizeof(DWORD); uiSizeOfFrame += sizeof(u32);
Ret = EplSdoAsySeqSendData(pSdoComCon_p->m_SdoSeqConHdl, Ret = EplSdoAsySeqSendData(pSdoComCon_p->m_SdoSeqConHdl,
uiSizeOfFrame, pFrame); uiSizeOfFrame, pFrame);
break; break;
...@@ -2372,7 +2372,7 @@ static tEplKernel EplSdoComServerInitWriteByIndex(tEplSdoComCon * pSdoComCon_p, ...@@ -2372,7 +2372,7 @@ static tEplKernel EplSdoComServerInitWriteByIndex(tEplSdoComCon * pSdoComCon_p,
unsigned int uiBytesToTransfer; unsigned int uiBytesToTransfer;
tEplObdSize EntrySize; tEplObdSize EntrySize;
tEplObdAccess AccessType; tEplObdAccess AccessType;
DWORD dwAbortCode; u32 dwAbortCode;
u8 *pbSrcData; u8 *pbSrcData;
dwAbortCode = 0; dwAbortCode = 0;
...@@ -3216,7 +3216,7 @@ static tEplKernel EplSdoComClientProcessFrame(tEplSdoComConHdl SdoComCon_p, ...@@ -3216,7 +3216,7 @@ static tEplKernel EplSdoComClientProcessFrame(tEplSdoComConHdl SdoComCon_p,
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_SDOC)) != 0) #if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_SDOC)) != 0)
static tEplKernel EplSdoComClientSendAbort(tEplSdoComCon * pSdoComCon_p, static tEplKernel EplSdoComClientSendAbort(tEplSdoComCon * pSdoComCon_p,
DWORD dwAbortCode_p) u32 dwAbortCode_p)
{ {
tEplKernel Ret; tEplKernel Ret;
u8 abFrame[EPL_MAX_SDO_FRAME_SIZE]; u8 abFrame[EPL_MAX_SDO_FRAME_SIZE];
...@@ -3249,14 +3249,14 @@ static tEplKernel EplSdoComClientSendAbort(tEplSdoComCon * pSdoComCon_p, ...@@ -3249,14 +3249,14 @@ static tEplKernel EplSdoComClientSendAbort(tEplSdoComCon * pSdoComCon_p,
AmiSetDwordToLe(&pCommandFrame->m_le_abCommandData[0], dwAbortCode_p); AmiSetDwordToLe(&pCommandFrame->m_le_abCommandData[0], dwAbortCode_p);
// set size of segment // set size of segment
AmiSetWordToLe(&pCommandFrame->m_le_wSegmentSize, sizeof(DWORD)); AmiSetWordToLe(&pCommandFrame->m_le_wSegmentSize, sizeof(u32));
// update counter // update counter
pSdoComCon_p->m_uiTransferredByte = sizeof(DWORD); pSdoComCon_p->m_uiTransferredByte = sizeof(u32);
pSdoComCon_p->m_uiTransSize = 0; pSdoComCon_p->m_uiTransSize = 0;
// calc framesize // calc framesize
uiSizeOfFrame += sizeof(DWORD); uiSizeOfFrame += sizeof(u32);
// save abort code // save abort code
pSdoComCon_p->m_dwLastAbortCode = dwAbortCode_p; pSdoComCon_p->m_dwLastAbortCode = dwAbortCode_p;
......
...@@ -431,7 +431,7 @@ tEplKernel EplSdoUdpuInitCon(tEplSdoConHdl *pSdoConHandle_p, ...@@ -431,7 +431,7 @@ tEplKernel EplSdoUdpuInitCon(tEplSdoConHdl *pSdoConHandle_p,
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
tEplKernel EplSdoUdpuSendData(tEplSdoConHdl SdoConHandle_p, tEplKernel EplSdoUdpuSendData(tEplSdoConHdl SdoConHandle_p,
tEplFrame *pSrcData_p, DWORD dwDataSize_p) tEplFrame *pSrcData_p, u32 dwDataSize_p)
{ {
tEplKernel Ret; tEplKernel Ret;
int iError; int iError;
...@@ -536,7 +536,7 @@ tEplKernel EplSdoUdpuDelCon(tEplSdoConHdl SdoConHandle_p) ...@@ -536,7 +536,7 @@ tEplKernel EplSdoUdpuDelCon(tEplSdoConHdl SdoConHandle_p)
// Parameters: lpParameter = pointer to parameter type tEplSdoUdpThreadPara // Parameters: lpParameter = pointer to parameter type tEplSdoUdpThreadPara
// //
// //
// Returns: DWORD = errorcode // Returns: u32 = errorcode
// //
// //
// State: // State:
......
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
// currently no Timer functions are needed by EPL stack // currently no Timer functions are needed by EPL stack
// so they are not implemented yet // so they are not implemented yet
//void TgtTimerInit(void); //void TgtTimerInit(void);
//DWORD TgtGetTickCount(void); //u32 TgtGetTickCount(void);
//void TgtGetNetTime(tEplNetTime * pNetTime_p); //void TgtGetNetTime(tEplNetTime * pNetTime_p);
// functions for ethernet driver // functions for ethernet driver
......
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
// TracePoint support for realtime-debugging // TracePoint support for realtime-debugging
#ifdef _DBG_TRACE_POINTS_ #ifdef _DBG_TRACE_POINTS_
void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); void TgtDbgSignalTracePoint(u8 bTracePointNumber_p);
void TgtDbgPostTraceValue(DWORD dwTraceValue_p); void TgtDbgPostTraceValue(u32 dwTraceValue_p);
#define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p) #define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p)
#define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v) #define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v)
#else #else
......
...@@ -84,7 +84,7 @@ typedef struct { ...@@ -84,7 +84,7 @@ typedef struct {
} twStruct; } twStruct;
typedef struct { typedef struct {
DWORD m_dwDword; u32 m_dwDword;
} tdwStruct; } tdwStruct;
...@@ -140,9 +140,9 @@ void AmiSetWordToBe(void * pAddr_p, WORD wWordVal_p) ...@@ -140,9 +140,9 @@ void AmiSetWordToBe(void * pAddr_p, WORD wWordVal_p)
} }
//------------< write DWORD in big endian >------------------------- //------------< write u32 in big endian >-------------------------
void AmiSetDwordToBe(void *pAddr_p, DWORD dwDwordVal_p) void AmiSetDwordToBe(void *pAddr_p, u32 dwDwordVal_p)
{ {
tdwStruct *pdwStruct; tdwStruct *pdwStruct;
tdwStruct dwValue; tdwStruct dwValue;
...@@ -194,9 +194,9 @@ void AmiSetWordToLe(void *pAddr_p, WORD wWordVal_p) ...@@ -194,9 +194,9 @@ void AmiSetWordToLe(void *pAddr_p, WORD wWordVal_p)
} }
//------------< write DWORD in little endian >------------------------- //------------< write u32 in little endian >-------------------------
void AmiSetDwordToLe(void *pAddr_p, DWORD dwDwordVal_p) void AmiSetDwordToLe(void *pAddr_p, u32 dwDwordVal_p)
{ {
tdwStruct *pdwStruct; tdwStruct *pdwStruct;
...@@ -246,9 +246,9 @@ WORD AmiGetWordFromBe(void *pAddr_p) ...@@ -246,9 +246,9 @@ WORD AmiGetWordFromBe(void *pAddr_p)
} }
//------------< read DWORD in big endian >-------------------------- //------------< read u32 in big endian >--------------------------
DWORD AmiGetDwordFromBe(void *pAddr_p) u32 AmiGetDwordFromBe(void *pAddr_p)
{ {
tdwStruct *pdwStruct; tdwStruct *pdwStruct;
tdwStruct dwValue; tdwStruct dwValue;
...@@ -299,9 +299,9 @@ WORD AmiGetWordFromLe(void *pAddr_p) ...@@ -299,9 +299,9 @@ WORD AmiGetWordFromLe(void *pAddr_p)
return (pwStruct->m_wWord); return (pwStruct->m_wWord);
} }
//------------< read DWORD in little endian >-------------------------- //------------< read u32 in little endian >--------------------------
DWORD AmiGetDwordFromLe(void *pAddr_p) u32 AmiGetDwordFromLe(void *pAddr_p)
{ {
tdwStruct *pdwStruct; tdwStruct *pdwStruct;
...@@ -324,7 +324,7 @@ DWORD AmiGetDwordFromLe(void *pAddr_p) ...@@ -324,7 +324,7 @@ DWORD AmiGetDwordFromLe(void *pAddr_p)
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void AmiSetDword24ToBe(void *pAddr_p, DWORD dwDwordVal_p) void AmiSetDword24ToBe(void *pAddr_p, u32 dwDwordVal_p)
{ {
((u8 *) pAddr_p)[0] = ((u8 *) & dwDwordVal_p)[2]; ((u8 *) pAddr_p)[0] = ((u8 *) & dwDwordVal_p)[2];
((u8 *) pAddr_p)[1] = ((u8 *) & dwDwordVal_p)[1]; ((u8 *) pAddr_p)[1] = ((u8 *) & dwDwordVal_p)[1];
...@@ -346,7 +346,7 @@ void AmiSetDword24ToBe(void *pAddr_p, DWORD dwDwordVal_p) ...@@ -346,7 +346,7 @@ void AmiSetDword24ToBe(void *pAddr_p, DWORD dwDwordVal_p)
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void AmiSetDword24ToLe(void *pAddr_p, DWORD dwDwordVal_p) void AmiSetDword24ToLe(void *pAddr_p, u32 dwDwordVal_p)
{ {
((u8 *) pAddr_p)[0] = ((u8 *) & dwDwordVal_p)[0]; ((u8 *) pAddr_p)[0] = ((u8 *) & dwDwordVal_p)[0];
((u8 *) pAddr_p)[1] = ((u8 *) & dwDwordVal_p)[1]; ((u8 *) pAddr_p)[1] = ((u8 *) & dwDwordVal_p)[1];
...@@ -361,12 +361,12 @@ void AmiSetDword24ToLe(void *pAddr_p, DWORD dwDwordVal_p) ...@@ -361,12 +361,12 @@ void AmiSetDword24ToLe(void *pAddr_p, DWORD dwDwordVal_p)
// //
// Parameters: pAddr_p = pointer to source buffer // Parameters: pAddr_p = pointer to source buffer
// //
// Return: DWORD = read value // Return: u32 = read value
// //
// State: not tested // State: not tested
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
DWORD AmiGetDword24FromBe(void *pAddr_p) u32 AmiGetDword24FromBe(void *pAddr_p)
{ {
tdwStruct dwStruct; tdwStruct dwStruct;
...@@ -384,12 +384,12 @@ DWORD AmiGetDword24FromBe(void *pAddr_p) ...@@ -384,12 +384,12 @@ DWORD AmiGetDword24FromBe(void *pAddr_p)
// //
// Parameters: pAddr_p = pointer to source buffer // Parameters: pAddr_p = pointer to source buffer
// //
// Return: DWORD = read value // Return: u32 = read value
// //
// State: not tested // State: not tested
// //
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
DWORD AmiGetDword24FromLe(void *pAddr_p) u32 AmiGetDword24FromLe(void *pAddr_p)
{ {
tdwStruct dwStruct; tdwStruct dwStruct;
...@@ -546,7 +546,7 @@ void AmiSetQword40ToBe(void *pAddr_p, u64 qwQwordVal_p) ...@@ -546,7 +546,7 @@ void AmiSetQword40ToBe(void *pAddr_p, u64 qwQwordVal_p)
void AmiSetQword40ToLe(void *pAddr_p, u64 qwQwordVal_p) void AmiSetQword40ToLe(void *pAddr_p, u64 qwQwordVal_p)
{ {
((DWORD *) pAddr_p)[0] = ((DWORD *) & qwQwordVal_p)[0]; ((u32 *) pAddr_p)[0] = ((u32 *) & qwQwordVal_p)[0];
((u8 *) pAddr_p)[4] = ((u8 *) & qwQwordVal_p)[4]; ((u8 *) pAddr_p)[4] = ((u8 *) & qwQwordVal_p)[4];
} }
...@@ -648,7 +648,7 @@ void AmiSetQword48ToBe(void *pAddr_p, u64 qwQwordVal_p) ...@@ -648,7 +648,7 @@ void AmiSetQword48ToBe(void *pAddr_p, u64 qwQwordVal_p)
void AmiSetQword48ToLe(void *pAddr_p, u64 qwQwordVal_p) void AmiSetQword48ToLe(void *pAddr_p, u64 qwQwordVal_p)
{ {
((DWORD *) pAddr_p)[0] = ((DWORD *) & qwQwordVal_p)[0]; ((u32 *) pAddr_p)[0] = ((u32 *) & qwQwordVal_p)[0];
((WORD *) pAddr_p)[2] = ((WORD *) & qwQwordVal_p)[2]; ((WORD *) pAddr_p)[2] = ((WORD *) & qwQwordVal_p)[2];
} }
...@@ -751,7 +751,7 @@ void AmiSetQword56ToBe(void *pAddr_p, u64 qwQwordVal_p) ...@@ -751,7 +751,7 @@ void AmiSetQword56ToBe(void *pAddr_p, u64 qwQwordVal_p)
void AmiSetQword56ToLe(void *pAddr_p, u64 qwQwordVal_p) void AmiSetQword56ToLe(void *pAddr_p, u64 qwQwordVal_p)
{ {
((DWORD *) pAddr_p)[0] = ((DWORD *) & qwQwordVal_p)[0]; ((u32 *) pAddr_p)[0] = ((u32 *) & qwQwordVal_p)[0];
((WORD *) pAddr_p)[2] = ((WORD *) & qwQwordVal_p)[2]; ((WORD *) pAddr_p)[2] = ((WORD *) & qwQwordVal_p)[2];
((u8 *) pAddr_p)[6] = ((u8 *) & qwQwordVal_p)[6]; ((u8 *) pAddr_p)[6] = ((u8 *) & qwQwordVal_p)[6];
......
...@@ -156,12 +156,12 @@ u8 bVarOut1Old_l; ...@@ -156,12 +156,12 @@ u8 bVarOut1Old_l;
u8 bModeSelect_l; // state of the pushbuttons to select the mode u8 bModeSelect_l; // state of the pushbuttons to select the mode
u8 bSpeedSelect_l; // state of the pushbuttons to increase/decrease the speed u8 bSpeedSelect_l; // state of the pushbuttons to increase/decrease the speed
u8 bSpeedSelectOld_l; // old state of the pushbuttons u8 bSpeedSelectOld_l; // old state of the pushbuttons
DWORD dwLeds_l; // current state of all LEDs u32 dwLeds_l; // current state of all LEDs
u8 bLedsRow1_l; // current state of the LEDs in row 1 u8 bLedsRow1_l; // current state of the LEDs in row 1
u8 bLedsRow2_l; // current state of the LEDs in row 2 u8 bLedsRow2_l; // current state of the LEDs in row 2
u8 abSelect_l[3]; // pushbuttons from CNs u8 abSelect_l[3]; // pushbuttons from CNs
DWORD dwMode_l; // current mode u32 dwMode_l; // current mode
int iCurCycleCount_l; // current cycle count int iCurCycleCount_l; // current cycle count
int iMaxCycleCount_l; // maximum cycle count (i.e. number of cycles until next light movement step) int iMaxCycleCount_l; // maximum cycle count (i.e. number of cycles until next light movement step)
int iToggle; // indicates the light movement direction int iToggle; // indicates the light movement direction
...@@ -171,7 +171,7 @@ u8 abDomain_l[3000]; ...@@ -171,7 +171,7 @@ u8 abDomain_l[3000];
static wait_queue_head_t WaitQueueShutdown_g; // wait queue for tEplNmtEventSwitchOff static wait_queue_head_t WaitQueueShutdown_g; // wait queue for tEplNmtEventSwitchOff
static atomic_t AtomicShutdown_g = ATOMIC_INIT(FALSE); static atomic_t AtomicShutdown_g = ATOMIC_INIT(FALSE);
static DWORD dw_le_CycleLen_g; static u32 dw_le_CycleLen_g;
static uint uiNodeId_g = EPL_C_ADR_INVALID; static uint uiNodeId_g = EPL_C_ADR_INVALID;
module_param_named(nodeid, uiNodeId_g, uint, 0); module_param_named(nodeid, uiNodeId_g, uint, 0);
...@@ -401,7 +401,7 @@ static int __init EplLinInit(void) ...@@ -401,7 +401,7 @@ static int __init EplLinInit(void)
// configure IP address of virtual network interface // configure IP address of virtual network interface
// for TCP/IP communication over the POWERLINK network // for TCP/IP communication over the POWERLINK network
sprintf(sBuffer, "%lu.%lu.%lu.%lu", sprintf(sBuffer, "%u.%u.%u.%u",
(EplApiInitParam.m_dwIpAddress >> 24), (EplApiInitParam.m_dwIpAddress >> 24),
((EplApiInitParam.m_dwIpAddress >> 16) & 0xFF), ((EplApiInitParam.m_dwIpAddress >> 16) & 0xFF),
((EplApiInitParam.m_dwIpAddress >> 8) & 0xFF), ((EplApiInitParam.m_dwIpAddress >> 8) & 0xFF),
...@@ -515,7 +515,7 @@ tEplKernel AppCbEvent(tEplApiEventType EventType_p, // IN: event type (enum) ...@@ -515,7 +515,7 @@ tEplKernel AppCbEvent(tEplApiEventType EventType_p, // IN: event type (enum)
case kEplNmtGsResetCommunication: case kEplNmtGsResetCommunication:
{ {
DWORD dwBuffer; u32 dwBuffer;
// configure OD for MN in state ResetComm after reseting the OD // configure OD for MN in state ResetComm after reseting the OD
// TODO: setup your own network configuration here // TODO: setup your own network configuration here
...@@ -677,8 +677,8 @@ tEplKernel AppCbEvent(tEplApiEventType EventType_p, // IN: event type (enum) ...@@ -677,8 +677,8 @@ tEplKernel AppCbEvent(tEplApiEventType EventType_p, // IN: event type (enum)
case kEplEventSourceDllk: case kEplEventSourceDllk:
{ // error occured within the data link layer (e.g. interrupt processing) { // error occured within the data link layer (e.g. interrupt processing)
// the DWORD argument contains the DLL state and the NMT event // the u32 argument contains the DLL state and the NMT event
printk(" val=%lX\n", printk(" val=%X\n",
pEventArg_p->m_InternalError. pEventArg_p->m_InternalError.
m_Arg.m_dwArg); m_Arg.m_dwArg);
break; break;
......
...@@ -29,9 +29,6 @@ ...@@ -29,9 +29,6 @@
#ifndef WORD #ifndef WORD
#define WORD unsigned short int #define WORD unsigned short int
#endif #endif
#ifndef DWORD
#define DWORD unsigned long int
#endif
#ifndef BOOL #ifndef BOOL
#define BOOL unsigned char #define BOOL unsigned char
#endif #endif
......
...@@ -96,7 +96,7 @@ struct _tEplDllkNodeInfo { ...@@ -96,7 +96,7 @@ struct _tEplDllkNodeInfo {
struct _tEplDllkNodeInfo *m_pNextNodeInfo; struct _tEplDllkNodeInfo *m_pNextNodeInfo;
struct _tEdrvTxBuffer *m_pPreqTxBuffer; struct _tEdrvTxBuffer *m_pPreqTxBuffer;
unsigned int m_uiNodeId; unsigned int m_uiNodeId;
DWORD m_dwPresTimeout; u32 m_dwPresTimeout;
unsigned long m_ulDllErrorEvents; unsigned long m_ulDllErrorEvents;
tEplNmtState m_NmtState; tEplNmtState m_NmtState;
WORD m_wPresPayloadLimit; WORD m_wPresPayloadLimit;
......
...@@ -129,8 +129,8 @@ ...@@ -129,8 +129,8 @@
#ifdef _DBG_TRACE_POINTS_ #ifdef _DBG_TRACE_POINTS_
atomic_t aatmDbgTracePoint_l[DBG_TRACE_POINTS]; atomic_t aatmDbgTracePoint_l[DBG_TRACE_POINTS];
DWORD adwDbgTraceValue_l[DBG_TRACE_VALUES]; u32 adwDbgTraceValue_l[DBG_TRACE_VALUES];
DWORD dwDbgTraceValueOld_l; u32 dwDbgTraceValueOld_l;
unsigned int uiDbgTraceValuePos_l; unsigned int uiDbgTraceValuePos_l;
spinlock_t spinlockDbgTraceValue_l; spinlock_t spinlockDbgTraceValue_l;
unsigned long ulDbTraceValueFlags_l; unsigned long ulDbTraceValueFlags_l;
...@@ -146,9 +146,9 @@ static int EplLinProcWrite(struct file *file, const char __user * buffer, ...@@ -146,9 +146,9 @@ static int EplLinProcWrite(struct file *file, const char __user * buffer,
unsigned long count, void *data); unsigned long count, void *data);
void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); void TgtDbgSignalTracePoint(u8 bTracePointNumber_p);
void TgtDbgPostTraceValue(DWORD dwTraceValue_p); void TgtDbgPostTraceValue(u32 dwTraceValue_p);
EPLDLLEXPORT DWORD EplIdentuGetRunningRequests(void); EPLDLLEXPORT u32 EplIdentuGetRunningRequests(void);
//=========================================================================// //=========================================================================//
// // // //
...@@ -207,7 +207,7 @@ void TgtDbgSignalTracePoint(u8 bTracePointNumber_p) ...@@ -207,7 +207,7 @@ void TgtDbgSignalTracePoint(u8 bTracePointNumber_p)
} }
void TgtDbgPostTraceValue(DWORD dwTraceValue_p) void TgtDbgPostTraceValue(u32 dwTraceValue_p)
{ {
spin_lock_irqsave(&spinlockDbgTraceValue_l, ulDbTraceValueFlags_l); spin_lock_irqsave(&spinlockDbgTraceValue_l, ulDbTraceValueFlags_l);
...@@ -279,7 +279,7 @@ static int EplLinProcRead(char *pcBuffer_p, ...@@ -279,7 +279,7 @@ static int EplLinProcRead(char *pcBuffer_p,
#if (((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0) #if (((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0)
// fetch running IdentRequests // fetch running IdentRequests
nSize += snprintf(pcBuffer_p + nSize, nBufferSize_p - nSize, nSize += snprintf(pcBuffer_p + nSize, nBufferSize_p - nSize,
"running IdentRequests: 0x%08lX\n", "running IdentRequests: 0x%08X\n",
EplIdentuGetRunningRequests()); EplIdentuGetRunningRequests());
// fetch state of NmtMnu module // fetch state of NmtMnu module
......
...@@ -131,13 +131,13 @@ typedef enum { ...@@ -131,13 +131,13 @@ typedef enum {
typedef struct { typedef struct {
tEplCfgState m_CfgState; // state of the configuration state maschine tEplCfgState m_CfgState; // state of the configuration state maschine
tEplSdoComConHdl m_SdoComConHdl; // handle for sdo connection tEplSdoComConHdl m_SdoComConHdl; // handle for sdo connection
DWORD m_dwLastAbortCode; u32 m_dwLastAbortCode;
unsigned int m_uiLastIndex; // last index of configuration, to compair with actual index unsigned int m_uiLastIndex; // last index of configuration, to compair with actual index
u8 *m_pbConcise; // Ptr to concise DCF u8 *m_pbConcise; // Ptr to concise DCF
u8 *m_pbActualIndex; // Ptr to actual index in the DCF segment u8 *m_pbActualIndex; // Ptr to actual index in the DCF segment
tfpEplCfgMaCb m_pfnCfgMaCb; // Ptr to CfgMa Callback, is call if configuration finished tfpEplCfgMaCb m_pfnCfgMaCb; // Ptr to CfgMa Callback, is call if configuration finished
tEplKernel m_EplKernelError; // errorcode tEplKernel m_EplKernelError; // errorcode
DWORD m_dwNumValueCopy; // numeric values are copied in this variable u32 m_dwNumValueCopy; // numeric values are copied in this variable
unsigned int m_uiPdoNodeId; // buffer for PDO node id unsigned int m_uiPdoNodeId; // buffer for PDO node id
u8 m_bNrOfMappedObject; // number of mapped objects u8 m_bNrOfMappedObject; // number of mapped objects
unsigned int m_uiNodeId; // Epl node addresse unsigned int m_uiNodeId; // Epl node addresse
...@@ -145,7 +145,7 @@ typedef struct { ...@@ -145,7 +145,7 @@ typedef struct {
unsigned int m_uiLastSubIndex; // last subindex of configuration unsigned int m_uiLastSubIndex; // last subindex of configuration
BOOL m_fOneTranferOk; // atleased one transfer was successful BOOL m_fOneTranferOk; // atleased one transfer was successful
u8 m_bEventFlag; // for Eventsignaling to the State Maschine u8 m_bEventFlag; // for Eventsignaling to the State Maschine
DWORD m_dwCntObjectInDcf; // number of Objects in DCF u32 m_dwCntObjectInDcf; // number of Objects in DCF
tEplCfgMaIndexType m_SkipCfg; // TRUE if a adsitional Configurationprocess tEplCfgMaIndexType m_SkipCfg; // TRUE if a adsitional Configurationprocess
// have to insert e.g. PDO-mapping // have to insert e.g. PDO-mapping
WORD m_wTimeOutCnt; // Timeout Counter, break configuration is WORD m_wTimeOutCnt; // Timeout Counter, break configuration is
......
...@@ -98,7 +98,7 @@ tEplKernel EplSdoAsnduInitCon(tEplSdoConHdl *pSdoConHandle_p, ...@@ -98,7 +98,7 @@ tEplKernel EplSdoAsnduInitCon(tEplSdoConHdl *pSdoConHandle_p,
tEplKernel EplSdoAsnduSendData(tEplSdoConHdl SdoConHandle_p, tEplKernel EplSdoAsnduSendData(tEplSdoConHdl SdoConHandle_p,
tEplFrame *pSrcData_p, tEplFrame *pSrcData_p,
DWORD dwDataSize_p); u32 dwDataSize_p);
tEplKernel EplSdoAsnduDelCon(tEplSdoConHdl SdoConHandle_p); tEplKernel EplSdoAsnduDelCon(tEplSdoConHdl SdoConHandle_p);
......
...@@ -108,7 +108,7 @@ tEplKernel EplSdoComGetState(tEplSdoComConHdl SdoComConHdl_p, ...@@ -108,7 +108,7 @@ tEplKernel EplSdoComGetState(tEplSdoComConHdl SdoComConHdl_p,
tEplSdoComFinished *pSdoComFinished_p); tEplSdoComFinished *pSdoComFinished_p);
tEplKernel EplSdoComSdoAbort(tEplSdoComConHdl SdoComConHdl_p, tEplKernel EplSdoComSdoAbort(tEplSdoComConHdl SdoComConHdl_p,
DWORD dwAbortCode_p); u32 dwAbortCode_p);
#endif #endif
......
...@@ -99,7 +99,7 @@ tEplKernel EplSdoUdpuInitCon(tEplSdoConHdl *pSdoConHandle_p, ...@@ -99,7 +99,7 @@ tEplKernel EplSdoUdpuInitCon(tEplSdoConHdl *pSdoConHandle_p,
unsigned int uiTargetNodeId_p); unsigned int uiTargetNodeId_p);
tEplKernel EplSdoUdpuSendData(tEplSdoConHdl SdoConHandle_p, tEplKernel EplSdoUdpuSendData(tEplSdoConHdl SdoConHandle_p,
tEplFrame *pSrcData_p, DWORD dwDataSize_p); tEplFrame *pSrcData_p, u32 dwDataSize_p);
tEplKernel EplSdoUdpuDelCon(tEplSdoConHdl SdoConHandle_p); tEplKernel EplSdoUdpuDelCon(tEplSdoConHdl SdoConHandle_p);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment