Staging: epl: remove DWORD
authorGreg Kroah-Hartman <gregkh@suse.de>
Mon, 23 Mar 2009 19:51:37 +0000 (12:51 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:54:21 +0000 (14:54 -0700)
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: Greg Kroah-Hartman <gregkh@suse.de>
36 files changed:
drivers/staging/epl/Debug.h
drivers/staging/epl/Edrv8139.c
drivers/staging/epl/Epl.h
drivers/staging/epl/EplAmi.h
drivers/staging/epl/EplApiGeneric.c
drivers/staging/epl/EplDll.h
drivers/staging/epl/EplDllk.c
drivers/staging/epl/EplErrorHandlerk.c
drivers/staging/epl/EplEvent.h
drivers/staging/epl/EplEventk.c
drivers/staging/epl/EplEventu.c
drivers/staging/epl/EplFrame.h
drivers/staging/epl/EplIdentu.c
drivers/staging/epl/EplInc.h
drivers/staging/epl/EplNmtMnu.c
drivers/staging/epl/EplNmtk.c
drivers/staging/epl/EplNmtu.c
drivers/staging/epl/EplObd.c
drivers/staging/epl/EplObd.h
drivers/staging/epl/EplObdMacro.h
drivers/staging/epl/EplPdou.c
drivers/staging/epl/EplSdo.h
drivers/staging/epl/EplSdoAsndu.c
drivers/staging/epl/EplSdoComu.c
drivers/staging/epl/EplSdoUdpu.c
drivers/staging/epl/EplTarget.h
drivers/staging/epl/TimerHighReskX86.c
drivers/staging/epl/amix86.c
drivers/staging/epl/demo_main.c
drivers/staging/epl/global.h
drivers/staging/epl/kernel/EplDllk.h
drivers/staging/epl/proc_fs.c
drivers/staging/epl/user/EplCfgMau.h
drivers/staging/epl/user/EplSdoAsndu.h
drivers/staging/epl/user/EplSdoComu.h
drivers/staging/epl/user/EplSdoUdpu.h

index 9a6a5c824b2c78b9f2e3dcaed3829ee2cf5f8f85..94646b28db3496d82ddbcd1c3b40a7332dbfd251 100644 (file)
@@ -666,7 +666,7 @@ extern "C" {
                                                     DEBUG_LVL_ASSERT_TRACE4 ( \
                                                         "Assertion failed: line %d file '%s'\n" \
                                                         "    -> '%s'\n" \
-                                                        "    -> 0x%08lX\n", __LINE__, __FILE__, str, (DWORD) p1); \
+                                                        "    -> 0x%08lX\n", __LINE__, __FILE__, str, (u32) p1); \
                                                     while (1); }
 
 
index 73e5c7cf69d3ce12b8dce14a4a7b29e0fc212229..c8fcc4e815b655bf694fda3690080c68e2a0cfba 100644 (file)
 // TracePoint support for realtime-debugging
 #ifdef _DBG_TRACE_POINTS_
 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_POST_TRACE_VALUE(v)     TgtDbgPostTraceValue(v)
 #else
@@ -456,7 +456,7 @@ tEplKernel EdrvShutdown(void)
 tEplKernel EdrvDefineRxMacAddrEntry(u8 * pbMacAddr_p)
 {
        tEplKernel Ret = kEplSuccessful;
-       DWORD dwData;
+       u32 dwData;
        u8 bHash;
 
        bHash = EdrvCalcHash(pbMacAddr_p);
@@ -497,7 +497,7 @@ tEplKernel EdrvDefineRxMacAddrEntry(u8 * pbMacAddr_p)
 tEplKernel EdrvUndefineRxMacAddrEntry(u8 * pbMacAddr_p)
 {
        tEplKernel Ret = kEplSuccessful;
-       DWORD dwData;
+       u32 dwData;
        u8 bHash;
 
        bHash = EdrvCalcHash(pbMacAddr_p);
@@ -532,7 +532,7 @@ tEplKernel EdrvUndefineRxMacAddrEntry(u8 * pbMacAddr_p)
 tEplKernel EdrvAllocTxMsgBuffer(tEdrvTxBuffer * pBuffer_p)
 {
        tEplKernel Ret = kEplSuccessful;
-       DWORD i;
+       u32 i;
 
        if (pBuffer_p->m_uiMaxBufferLen > EDRV_MAX_FRAME_SIZE) {
                Ret = kEplEdrvNoFreeBufEntry;
@@ -605,7 +605,7 @@ tEplKernel EdrvSendTxMsg(tEdrvTxBuffer * pBuffer_p)
 {
        tEplKernel Ret = kEplSuccessful;
        unsigned int uiBufferNumber;
-       DWORD dwTemp;
+       u32 dwTemp;
 
        uiBufferNumber = pBuffer_p->m_uiBufferNumber;
 
@@ -620,8 +620,8 @@ tEplKernel EdrvSendTxMsg(tEdrvTxBuffer * pBuffer_p)
                dwTemp =
                    EDRV_REGDW_READ((EDRV_REGDW_TSD0 +
                                     (EdrvInstance_l.m_uiCurTxDesc *
-                                     sizeof(DWORD))));
-               printk("%s InvOp TSD%u = 0x%08lX", __func__,
+                                     sizeof(u32))));
+               printk("%s InvOp TSD%u = 0x%08X", __func__,
                       EdrvInstance_l.m_uiCurTxDesc, dwTemp);
                printk("  Cmd = 0x%02X\n",
                       (WORD) EDRV_REGB_READ(EDRV_REGB_COMMAND));
@@ -640,22 +640,22 @@ tEplKernel EdrvSendTxMsg(tEdrvTxBuffer * pBuffer_p)
        }
        // set DMA address of buffer
        EDRV_REGDW_WRITE((EDRV_REGDW_TSAD0 +
-                         (EdrvInstance_l.m_uiCurTxDesc * sizeof(DWORD))),
+                         (EdrvInstance_l.m_uiCurTxDesc * sizeof(u32))),
                         (EdrvInstance_l.m_pTxBufDma +
                          (uiBufferNumber * EDRV_MAX_FRAME_SIZE)));
        dwTemp =
            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);
 
        // start transmission
        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));
        dwTemp =
            EDRV_REGDW_READ((EDRV_REGDW_TSD0 +
-                            (EdrvInstance_l.m_uiCurTxDesc * sizeof(DWORD))));
-//    printk(" TSD%u = 0x%08lX / 0x%08lX\n", EdrvInstance_l.m_uiCurTxDesc, dwTemp, (DWORD)(EDRV_REGDW_TSD_TXTH_DEF | pBuffer_p->m_uiTxMsgLen));
+                            (EdrvInstance_l.m_uiCurTxDesc * sizeof(u32))));
+//    printk(" TSD%u = 0x%08lX / 0x%08lX\n", EdrvInstance_l.m_uiCurTxDesc, dwTemp, (u32)(EDRV_REGDW_TSD_TXTH_DEF | pBuffer_p->m_uiTxMsgLen));
 
       Exit:
        return Ret;
@@ -762,8 +762,8 @@ static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p,
        tEdrvRxBuffer RxBuffer;
        tEdrvTxBuffer *pTxBuffer;
        WORD wStatus;
-       DWORD dwTxStatus;
-       DWORD dwRxStatus;
+       u32 dwTxStatus;
+       u32 dwRxStatus;
        WORD wCurRx;
        u8 *pbRxBuf;
        unsigned int uiLength;
@@ -793,7 +793,7 @@ static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p,
                dwTxStatus =
                    EDRV_REGDW_READ((EDRV_REGDW_TSD0 +
                                     (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
                        EdrvInstance_l.m_uiCurTxDesc =
                            (EdrvInstance_l.m_uiCurTxDesc + 1) & 0x03;
@@ -855,8 +855,8 @@ static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p,
                        // calculate pointer to current frame in receive buffer
                        pbRxBuf = EdrvInstance_l.m_pbRxBuf + wCurRx;
 
-                       // read receive status DWORD
-                       dwRxStatus = le32_to_cpu(*((DWORD *) pbRxBuf));
+                       // read receive status u32
+                       dwRxStatus = le32_to_cpu(*((u32 *) pbRxBuf));
 
                        // calculate length of received frame
                        uiLength = dwRxStatus >> 16;
@@ -896,7 +896,7 @@ static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p,
                                    m_pfnRxHandler(&RxBuffer);
                        }
 
-                       // calulate new offset (DWORD aligned)
+                       // calulate new offset (u32 aligned)
                        wCurRx =
                            (WORD) ((wCurRx + uiLength + sizeof(dwRxStatus) +
                                     3) & ~0x3);
@@ -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)
 {
        int iResult = 0;
-       DWORD dwTemp;
+       u32 dwTemp;
 
        if (EdrvInstance_l.m_pPciDev != NULL) { // Edrv is already connected to a PCI device
                printk("%s device %s discarded\n", __func__,
@@ -1008,7 +1008,7 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId)
        dwTemp = EDRV_REGDW_READ(EDRV_REGDW_TCR);
        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
-               printk("%s Unsupported chip! TCR = 0x%08lX\n", __func__,
+               printk("%s Unsupported chip! TCR = 0x%08X\n", __func__,
                       dwTemp);
                iResult = -ENODEV;
                goto Exit;
@@ -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__);
             // write this MAC address to controller
             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);
 
             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);
             break;
         }
@@ -1217,11 +1217,11 @@ static void EdrvRemoveOne(struct pci_dev *pPciDev)
 
 static u8 EdrvCalcHash(u8 * pbMAC_p)
 {
-       DWORD dwByteCounter;
-       DWORD dwBitCounter;
-       DWORD dwData;
-       DWORD dwCrc;
-       DWORD dwCarry;
+       u32 dwByteCounter;
+       u32 dwBitCounter;
+       u32 dwData;
+       u32 dwCrc;
+       u32 dwCarry;
        u8 *pbData;
        u8 bHash;
 
index 09a3d0a2491ea6bdb2ac5948cebeba82236e658e..6fc1589154972ada476f4cdbb35dfc1a056375a9 100644 (file)
@@ -142,22 +142,22 @@ typedef struct {
        u8 m_abMacAddress[6];   // local MAC address
 
        // 0x1F82: NMT_FeatureFlags_U32
-       DWORD m_dwFeatureFlags;
+       u32 m_dwFeatureFlags;
        // 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.1: IsochrTxMaxPayload_U16
        unsigned int m_uiIsochrTxMaxPayload;    // const
        // 0x1F98.2: IsochrRxMaxPayload_U16
        unsigned int m_uiIsochrRxMaxPayload;    // const
        // 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
        unsigned int m_uiPreqActPayloadLimit;   // required for initialisation (+28 bytes)
        // 0x1F98.5: PResActPayloadLimit_U16
        unsigned int m_uiPresActPayloadLimit;   // required for initialisation of Pres frame (+28 bytes)
        // 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
        unsigned int m_uiMultiplCycleCnt;       // required for error detection
        // 0x1F98.8: AsyncMTU_U16
@@ -167,28 +167,28 @@ typedef struct {
        // $$$ Multiplexed Slot
 
        // 0x1C14: DLL_LossOfFrameTolerance_U32 in [ns]
-       DWORD m_dwLossOfFrameTolerance;
+       u32 m_dwLossOfFrameTolerance;
 
        // 0x1F8A: NMT_MNCycleTiming_REC
        // 0x1F8A.1: WaitSoCPReq_U32 in [ns]
-       DWORD m_dwWaitSocPreq;
+       u32 m_dwWaitSocPreq;
 
        // 0x1F8A.2: AsyncSlotTimeout_U32 in [ns]
-       DWORD m_dwAsyncSlotTimeout;
+       u32 m_dwAsyncSlotTimeout;
 
-       DWORD m_dwDeviceType;   // NMT_DeviceType_U32
-       DWORD m_dwVendorId;     // NMT_IdentityObject_REC.VendorId_U32
-       DWORD m_dwProductCode;  // NMT_IdentityObject_REC.ProductCode_U32
-       DWORD m_dwRevisionNumber;       // NMT_IdentityObject_REC.RevisionNo_U32
-       DWORD m_dwSerialNumber; // NMT_IdentityObject_REC.SerialNo_U32
+       u32 m_dwDeviceType;     // NMT_DeviceType_U32
+       u32 m_dwVendorId;       // NMT_IdentityObject_REC.VendorId_U32
+       u32 m_dwProductCode;    // NMT_IdentityObject_REC.ProductCode_U32
+       u32 m_dwRevisionNumber; // NMT_IdentityObject_REC.RevisionNo_U32
+       u32 m_dwSerialNumber;   // NMT_IdentityObject_REC.SerialNo_U32
        u64 m_qwVendorSpecificExt1;
-       DWORD m_dwVerifyConfigurationDate;      // CFM_VerifyConfiguration_REC.ConfDate_U32
-       DWORD 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
-       DWORD m_dwApplicationSwTime;    // PDL_LocVerApplSw_REC.ApplSwTime_U32 on programmable device or time portion of NMT_ManufactSwVers_VS on non-programmable device
-       DWORD m_dwIpAddress;
-       DWORD m_dwSubnetMask;
-       DWORD m_dwDefaultGateway;
+       u32 m_dwVerifyConfigurationDate;        // CFM_VerifyConfiguration_REC.ConfDate_U32
+       u32 m_dwVerifyConfigurationTime;        // CFM_VerifyConfiguration_REC.ConfTime_U32
+       u32 m_dwApplicationSwDate;      // PDL_LocVerApplSw_REC.ApplSwDate_U32 on programmable device or date 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
+       u32 m_dwIpAddress;
+       u32 m_dwSubnetMask;
+       u32 m_dwDefaultGateway;
        u8 m_sHostname[32];
        u8 m_abVendorSpecificExt2[48];
 
index 1d6080afacd426f5698285df42a7151ef0e4cb07..4a323ad4f29151f74af271679b4326c28477f032 100644 (file)
@@ -111,9 +111,9 @@ extern "C" {
 #define AmiSetByteToLe(pAddr_p, bByteVal_p)  {*(u8 *)(pAddr_p) = (bByteVal_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 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);
 #define AmiGetByteFromLe(pAddr_p)  (*(u8 *)(pAddr_p))
 
 WORD AmiGetWordFromBe(void *pAddr_p);
-DWORD AmiGetDwordFromBe(void *pAddr_p);
+u32 AmiGetDwordFromBe(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);
 //
 //---------------------------------------------------------------------------
 
-void AmiSetDword24ToBe(void *pAddr_p, DWORD dwDwordVal_p);
-void AmiSetDword24ToLe(void *pAddr_p, DWORD dwDwordVal_p);
+void AmiSetDword24ToBe(void *pAddr_p, u32 dwDwordVal_p);
+void AmiSetDword24ToLe(void *pAddr_p, u32 dwDwordVal_p);
 
 //---------------------------------------------------------------------------
 //
@@ -155,12 +155,12 @@ void AmiSetDword24ToLe(void *pAddr_p, DWORD dwDwordVal_p);
 //
 // Parameters:  pAddr_p         = pointer to source buffer
 //
-// Return:      DWORD           = read value
+// Return:      u32           = read value
 //
 //---------------------------------------------------------------------------
 
-DWORD AmiGetDword24FromBe(void *pAddr_p);
-DWORD AmiGetDword24FromLe(void *pAddr_p);
+u32 AmiGetDword24FromBe(void *pAddr_p);
+u32 AmiGetDword24FromLe(void *pAddr_p);
 
 //#ifdef USE_VAR64
 
index 2dd0b33b8be4963d08cfbc644c80d665bbced7a7..431b19de0ed4fa080605c9b3c3f446187efb9b12 100644 (file)
@@ -997,8 +997,8 @@ tEplKernel EplApiCbObdAccess(tEplObdCbParam *pParam_p)
                {
                        if ((pParam_p->m_ObdEvent == kEplObdEvPostWrite)
                            && (pParam_p->m_uiSubIndex == 3)
-                           && (*((DWORD *) pParam_p->m_pArg) != 0)) {
-                               DWORD dwVerifyConfInvalid = 0;
+                           && (*((u32 *) pParam_p->m_pArg) != 0)) {
+                               u32 dwVerifyConfInvalid = 0;
                                // set CFM_VerifyConfiguration_REC.VerifyConfInvalid_U32 to 0
                                Ret =
                                    EplObdWriteEntry(0x1020, 4,
index 863728a9053aef1124b5c1aa7b7e1843996e5d41..79be2c23f8b69ae3d65dd3df0769f15117df3777 100644 (file)
@@ -135,22 +135,22 @@ typedef struct {
        unsigned int m_uiNodeId;        // local node ID
 
        // 0x1F82: NMT_FeatureFlags_U32
-       DWORD m_dwFeatureFlags;
+       u32 m_dwFeatureFlags;
        // 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.1: IsochrTxMaxPayload_U16
        unsigned int m_uiIsochrTxMaxPayload;    // const
        // 0x1F98.2: IsochrRxMaxPayload_U16
        unsigned int m_uiIsochrRxMaxPayload;    // const
        // 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
        unsigned int m_uiPreqActPayloadLimit;   // required for initialisation (+24 bytes)
        // 0x1F98.5: PResActPayloadLimit_U16
        unsigned int m_uiPresActPayloadLimit;   // required for initialisation of Pres frame (+24 bytes)
        // 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
        unsigned int m_uiMultiplCycleCnt;       // required for error detection
        // 0x1F98.8: AsyncMTU_U16
@@ -159,32 +159,32 @@ typedef struct {
        // $$$ Multiplexed Slot
 
        // 0x1C14: DLL_LossOfFrameTolerance_U32 in [ns]
-       DWORD m_dwLossOfFrameTolerance;
+       u32 m_dwLossOfFrameTolerance;
 
        // 0x1F8A: NMT_MNCycleTiming_REC
        // 0x1F8A.1: WaitSoCPReq_U32 in [ns]
-       DWORD m_dwWaitSocPreq;
+       u32 m_dwWaitSocPreq;
 
        // 0x1F8A.2: AsyncSlotTimeout_U32 in [ns]
-       DWORD m_dwAsyncSlotTimeout;
+       u32 m_dwAsyncSlotTimeout;
 
 } tEplDllConfigParam;
 
 typedef struct {
        unsigned int m_uiSizeOfStruct;
-       DWORD m_dwDeviceType;   // NMT_DeviceType_U32
-       DWORD m_dwVendorId;     // NMT_IdentityObject_REC.VendorId_U32
-       DWORD m_dwProductCode;  // NMT_IdentityObject_REC.ProductCode_U32
-       DWORD m_dwRevisionNumber;       // NMT_IdentityObject_REC.RevisionNo_U32
-       DWORD m_dwSerialNumber; // NMT_IdentityObject_REC.SerialNo_U32
+       u32 m_dwDeviceType;     // NMT_DeviceType_U32
+       u32 m_dwVendorId;       // NMT_IdentityObject_REC.VendorId_U32
+       u32 m_dwProductCode;    // NMT_IdentityObject_REC.ProductCode_U32
+       u32 m_dwRevisionNumber; // NMT_IdentityObject_REC.RevisionNo_U32
+       u32 m_dwSerialNumber;   // NMT_IdentityObject_REC.SerialNo_U32
        u64 m_qwVendorSpecificExt1;
-       DWORD m_dwVerifyConfigurationDate;      // CFM_VerifyConfiguration_REC.ConfDate_U32
-       DWORD 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
-       DWORD m_dwApplicationSwTime;    // PDL_LocVerApplSw_REC.ApplSwTime_U32 on programmable device or time portion of NMT_ManufactSwVers_VS on non-programmable device
-       DWORD m_dwIpAddress;
-       DWORD m_dwSubnetMask;
-       DWORD m_dwDefaultGateway;
+       u32 m_dwVerifyConfigurationDate;        // CFM_VerifyConfiguration_REC.ConfDate_U32
+       u32 m_dwVerifyConfigurationTime;        // CFM_VerifyConfiguration_REC.ConfTime_U32
+       u32 m_dwApplicationSwDate;      // PDL_LocVerApplSw_REC.ApplSwDate_U32 on programmable device or date 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
+       u32 m_dwIpAddress;
+       u32 m_dwSubnetMask;
+       u32 m_dwDefaultGateway;
        u8 m_sHostname[32];
        u8 m_abVendorSpecificExt2[48];
 
@@ -194,7 +194,7 @@ typedef struct {
        unsigned int m_uiNodeId;
        WORD m_wPreqPayloadLimit;       // object 0x1F8B: NMT_MNPReqPayloadLimitList_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;
 
index d22e74ee25ea725320448bda93a90adc3c2b5486..53f05d9b37ac99b7c00e55750af751b98bb3f4ef 100644 (file)
 // TracePoint support for realtime-debugging
 #ifdef _DBG_TRACE_POINTS_
 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_POST_TRACE_VALUE(v)     TgtDbgPostTraceValue(v)
 #else
@@ -3154,7 +3154,7 @@ static void EplDllkCbFrameReceived(tEdrvRxBuffer * pRxBuffer_p)
 
       Exit:
        if (Ret != kEplSuccessful) {
-               DWORD dwArg;
+               u32 dwArg;
 
                BENCHMARK_MOD_02_TOGGLE(9);
 
@@ -3448,7 +3448,7 @@ static void EplDllkCbFrameTransmitted(tEdrvTxBuffer * pTxBuffer_p)
 
       Exit:
        if (Ret != kEplSuccessful) {
-               DWORD dwArg;
+               u32 dwArg;
 
                BENCHMARK_MOD_02_TOGGLE(9);
 
@@ -3582,7 +3582,7 @@ static tEplKernel EplDllkCbCnTimer(tEplTimerEventArg *pEventArg_p)
 
       Exit:
        if (Ret != kEplSuccessful) {
-               DWORD dwArg;
+               u32 dwArg;
 
                BENCHMARK_MOD_02_TOGGLE(9);
 
@@ -3638,7 +3638,7 @@ static tEplKernel EplDllkCbMnTimerCycle(tEplTimerEventArg *pEventArg_p)
 
       Exit:
        if (Ret != kEplSuccessful) {
-               DWORD dwArg;
+               u32 dwArg;
 
                BENCHMARK_MOD_02_TOGGLE(9);
 
@@ -3691,7 +3691,7 @@ static tEplKernel EplDllkCbMnTimerResponse(tEplTimerEventArg *pEventArg_p)
 
       Exit:
        if (Ret != kEplSuccessful) {
-               DWORD dwArg;
+               u32 dwArg;
 
                BENCHMARK_MOD_02_TOGGLE(9);
 
index aeb77fb9d53d821adc6b79ebdc9b369a184bb03c..6baed04ef11cc09687cf4f691ad90d7619e7df05 100644 (file)
@@ -97,9 +97,9 @@
 //---------------------------------------------------------------------------
 
 typedef struct {
-       DWORD m_dwCumulativeCnt;        // subindex 1
-       DWORD m_dwThresholdCnt; // subindex 2
-       DWORD m_dwThreshold;    // subindex 3
+       u32 m_dwCumulativeCnt;  // subindex 1
+       u32 m_dwThresholdCnt;   // subindex 2
+       u32 m_dwThreshold;      // subindex 3
 
 } tEplErrorHandlerkErrorCounter;
 
@@ -112,9 +112,9 @@ typedef struct {
 #if (((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0)
        tEplErrorHandlerkErrorCounter m_MnCrcErr;       // object 0x1C00
        tEplErrorHandlerkErrorCounter m_MnCycTimeExceed;        // object 0x1C02
-       DWORD m_adwMnCnLossPresCumCnt[254];     // object 0x1C07
-       DWORD m_adwMnCnLossPresThrCnt[254];     // object 0x1C08
-       DWORD m_adwMnCnLossPresThreshold[254];  // object 0x1C09
+       u32 m_adwMnCnLossPresCumCnt[254];       // object 0x1C07
+       u32 m_adwMnCnLossPresThrCnt[254];       // object 0x1C08
+       u32 m_adwMnCnLossPresThreshold[254];    // object 0x1C09
        BOOL m_afMnCnLossPresEvent[254];
 #endif
 
@@ -135,7 +135,7 @@ static tEplKernel EplErrorHandlerkLinkErrorCounter(tEplErrorHandlerkErrorCounter
                                                   unsigned int uiIndex_p);
 
 #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 uiIndex_p);
 #endif
@@ -713,7 +713,7 @@ static tEplKernel EplErrorHandlerkLinkErrorCounter(tEplErrorHandlerkErrorCounter
        tEplVarParam VarParam;
 
        VarParam.m_pData = &pErrorCounter_p->m_dwCumulativeCnt;
-       VarParam.m_Size = sizeof(DWORD);
+       VarParam.m_Size = sizeof(u32);
        VarParam.m_uiIndex = uiIndex_p;
        VarParam.m_uiSubindex = 0x01;
        VarParam.m_ValidFlag = kVarValidAll;
@@ -723,7 +723,7 @@ static tEplKernel EplErrorHandlerkLinkErrorCounter(tEplErrorHandlerkErrorCounter
        }
 
        VarParam.m_pData = &pErrorCounter_p->m_dwThresholdCnt;
-       VarParam.m_Size = sizeof(DWORD);
+       VarParam.m_Size = sizeof(u32);
        VarParam.m_uiIndex = uiIndex_p;
        VarParam.m_uiSubindex = 0x02;
        VarParam.m_ValidFlag = kVarValidAll;
@@ -733,7 +733,7 @@ static tEplKernel EplErrorHandlerkLinkErrorCounter(tEplErrorHandlerkErrorCounter
        }
 
        VarParam.m_pData = &pErrorCounter_p->m_dwThreshold;
-       VarParam.m_Size = sizeof(DWORD);
+       VarParam.m_Size = sizeof(u32);
        VarParam.m_uiIndex = uiIndex_p;
        VarParam.m_uiSubindex = 0x03;
        VarParam.m_ValidFlag = kVarValidAll;
@@ -763,7 +763,7 @@ static tEplKernel EplErrorHandlerkLinkErrorCounter(tEplErrorHandlerkErrorCounter
 //---------------------------------------------------------------------------
 
 #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 uiIndex_p)
 {
@@ -786,7 +786,7 @@ static tEplKernel EplErrorHandlerkLinkArray(DWORD * pdwValue_p,
                uiValueCount_p = bIndexEntries;
        }
 
-       VarParam.m_Size = sizeof(DWORD);
+       VarParam.m_Size = sizeof(u32);
        VarParam.m_uiIndex = uiIndex_p;
        VarParam.m_ValidFlag = kVarValidAll;
 
index b543711feb6b6b0806a3626d13fbebc5cbd66820..910bd69a18c28ed21eb1e0fdda907866fcce2606 100644 (file)
@@ -249,7 +249,7 @@ typedef struct {
        tEplKernel m_EplError;  // EPL error which occured
        union {
                u8 m_bArg;
-               DWORD m_dwArg;
+               u32 m_dwArg;
                tEplEventSource m_EventSource;  // from Eventk/u module (originating error source)
                tEplEventObdError m_ObdError;   // from Obd module
 //        tEplErrHistoryEntry     m_HistoryEntry; // from Nmtk/u module
index 88ea89344dd785237d239e84134dbef8be1cbadb..ef36815c798420e5a48fc26867e6d922e33120d7 100644 (file)
 // TracePoint support for realtime-debugging
 #ifdef _DBG_TRACE_POINTS_
 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_POST_TRACE_VALUE(v)     TgtDbgPostTraceValue(v)
 #else
index 29cb1636e59fc9fe502fa50a1648a213a75e71bb..3ae2841ad023300e0701e42868b2b5681d6d4b26 100644 (file)
@@ -97,7 +97,7 @@
 // TracePoint support for realtime-debugging
 #ifdef _DBG_TRACE_POINTS_
 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_POST_TRACE_VALUE(v)     TgtDbgPostTraceValue(v)
 #else
index 156f907a1cfd11e5120822cc73ecbd209f1d6049..9ca42427474506d62dbdb61ea1a606f0a9def1c0 100644 (file)
@@ -214,25 +214,25 @@ typedef struct {
        u8 m_le_bIdentRespFlags;        // Flags: FW
        u8 m_le_bEplProfileVersion;
        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_wPollInSize;  // NMT_CycleTiming_REC.PReqActPayload_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;
-       DWORD m_le_dwDeviceType;        // NMT_DeviceType_U32
-       DWORD m_le_dwVendorId;  // NMT_IdentityObject_REC.VendorId_U32
-       DWORD m_le_dwProductCode;       // NMT_IdentityObject_REC.ProductCode_U32
-       DWORD m_le_dwRevisionNumber;    // NMT_IdentityObject_REC.RevisionNo_U32
-       DWORD m_le_dwSerialNumber;      // NMT_IdentityObject_REC.SerialNo_U32
+       u32 m_le_dwDeviceType;  // NMT_DeviceType_U32
+       u32 m_le_dwVendorId;    // NMT_IdentityObject_REC.VendorId_U32
+       u32 m_le_dwProductCode; // NMT_IdentityObject_REC.ProductCode_U32
+       u32 m_le_dwRevisionNumber;      // NMT_IdentityObject_REC.RevisionNo_U32
+       u32 m_le_dwSerialNumber;        // NMT_IdentityObject_REC.SerialNo_U32
        u64 m_le_qwVendorSpecificExt1;
-       DWORD m_le_dwVerifyConfigurationDate;   // CFM_VerifyConfiguration_REC.ConfDate_U32
-       DWORD 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
-       DWORD 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;
-       DWORD m_le_dwSubnetMask;
-       DWORD m_le_dwDefaultGateway;
+       u32 m_le_dwVerifyConfigurationDate;     // CFM_VerifyConfiguration_REC.ConfDate_U32
+       u32 m_le_dwVerifyConfigurationTime;     // CFM_VerifyConfiguration_REC.ConfTime_U32
+       u32 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_dwApplicationSwTime;   // PDL_LocVerApplSw_REC.ApplSwTime_U32 on programmable device or time portion of NMT_ManufactSwVers_VS on non-programmable device
+       u32 m_le_dwIpAddress;
+       u32 m_le_dwSubnetMask;
+       u32 m_le_dwDefaultGateway;
        u8 m_le_sHostname[32];
        u8 m_le_abVendorSpecificExt2[48];
 
index 75f941d97cc6e814fd6351621f93ebb603241bd8..bff1194ad6d84b628a525683cfa44ad2174e950e 100644 (file)
@@ -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;
 
        for (uiIndex = 0; uiIndex < 32; uiIndex++) {
index 5addab4981c8affcc0c3af4ea66c5bf525a115be..fc9f0d0bf65e45871c9c8e55c753d9b4fbefeaf7 100644 (file)
 
 // IEEE 1588 conformant net time structure
 typedef struct {
-       DWORD m_dwSec;
-       DWORD m_dwNanoSec;
+       u32 m_dwSec;
+       u32 m_dwNanoSec;
 
 } tEplNetTime;
 
@@ -154,8 +154,8 @@ typedef struct {
 // -------------------------------------------------------------------------
 
 #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_OBJ1018_VERSION(ver,rev,rel)    ((((DWORD)(ver))<<16) |(((DWORD)(rev))&0xFFFF))
+#define EPL_STACK_VERSION(ver,rev,rel)      ((((u32)(ver)) & 0xFF)|((((u32)(rev))&0xFF)<<8)|(((u32)(rel))<<16))
+#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
 
 #include "EplVersion.h"
index 1c5d9d407d26f8be9e5c70990b82cec82bddecb8..fd4f6d9e73dce438fc5dc8dd2413c7416bc17d9e 100644 (file)
@@ -95,7 +95,7 @@
 // TracePoint support for realtime-debugging
 #ifdef _DBG_TRACE_POINTS_
 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_POST_TRACE_VALUE(v)     TgtDbgPostTraceValue(v)
 #else
@@ -211,7 +211,7 @@ typedef struct {
        tEplTimerHdl m_TimerHdlStatReq; // timer to delay StatusRequests and IdentRequests
        tEplTimerHdl m_TimerHdlLonger;  // 2nd timer for NMT command EnableReadyToOp and CheckCommunication
        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
 
 } tEplNmtMnuNodeInfo;
@@ -225,7 +225,7 @@ typedef struct {
        unsigned long m_ulTimeoutReadyToOp;     // in [ms] (object 0x1F89/5)
        unsigned long m_ulTimeoutCheckCom;      // in [ms] (object 0x1006 * MultiplexedCycleCount)
        WORD m_wFlags;          // global flags
-       DWORD m_dwNmtStartup;   // object 0x1F80 NMT_StartUp_U32
+       u32 m_dwNmtStartup;     // object 0x1F80 NMT_StartUp_U32
        tEplNmtMnuCbNodeEvent m_pfnCbNodeEvent;
        tEplNmtMnuCbBootEvent m_pfnCbBootEvent;
 
@@ -673,7 +673,7 @@ tEplKernel EplNmtMnuCbNmtStateChange(tEplEventNmtStateChange NmtStateChange_p)
                // build the configuration with infos from OD
        case kEplNmtGsResetConfiguration:
                {
-                       DWORD dwTimeout;
+                       u32 dwTimeout;
                        tEplObdSize ObdSize;
 
                        // read object 0x1F80 NMT_StartUp_U32
@@ -785,7 +785,7 @@ tEplKernel EplNmtMnuCbNmtStateChange(tEplEventNmtStateChange NmtStateChange_p)
                // node processes only async frames
        case kEplNmtMsPreOperational1:
                {
-                       DWORD dwTimeout;
+                       u32 dwTimeout;
                        tEplTimerArg TimerArg;
                        tEplObdSize ObdSize;
                        tEplEvent Event;
@@ -1291,7 +1291,7 @@ tEplKernel EplNmtMnuGetDiagnosticInfo(unsigned int *puiMandatorySlaveCount_p,
 //
 //---------------------------------------------------------------------------
 /*
-DWORD EplNmtMnuGetRunningTimerStatReq(void)
+u32 EplNmtMnuGetRunningTimerStatReq(void)
 {
 tEplKernel      Ret = kEplSuccessful;
 unsigned int    uiIndex;
@@ -1376,7 +1376,7 @@ static tEplKernel EplNmtMnuCbIdentResponse(unsigned int uiNodeId_p,
                                                    kEplNmtMnuIntNodeEventNoIdentResponse);
        } else {                // node answered IdentRequest
                tEplObdSize ObdSize;
-               DWORD dwDevType;
+               u32 dwDevType;
                WORD wErrorCode = EPL_E_NO_ERROR;
                tEplNmtState NmtState =
                    (tEplNmtState) (AmiGetByteFromLe
@@ -1466,7 +1466,7 @@ static tEplKernel EplNmtMnuStartBootStep1(void)
        tEplKernel Ret = kEplSuccessful;
        unsigned int uiSubIndex;
        unsigned int uiLocalNodeId;
-       DWORD dwNodeCfg;
+       u32 dwNodeCfg;
        tEplObdSize ObdSize;
 
        // $$$ d.k.: save current time for 0x1F89/2 MNTimeoutPreOp1_U32
@@ -1626,7 +1626,7 @@ static tEplKernel EplNmtMnuNodeBootStep2(unsigned int uiNodeId_p,
 {
        tEplKernel Ret = kEplSuccessful;
        tEplDllNodeInfo DllNodeInfo;
-       DWORD dwNodeCfg;
+       u32 dwNodeCfg;
        tEplObdSize ObdSize;
        tEplTimerArg TimerArg;
 
@@ -1775,7 +1775,7 @@ static tEplKernel EplNmtMnuNodeCheckCom(unsigned int uiNodeId_p,
                                        tEplNmtMnuNodeInfo * pNodeInfo_p)
 {
        tEplKernel Ret = kEplSuccessful;
-       DWORD dwNodeCfg;
+       u32 dwNodeCfg;
        tEplTimerArg TimerArg;
 
        dwNodeCfg = pNodeInfo_p->m_dwNodeCfg;
index 18edb0b074849bf738214c272eb79b6e7cb2121e..b7ddea0e4cfc2d2de08e7599d92457a9122f774f 100644 (file)
@@ -89,7 +89,7 @@
 // TracePoint support for realtime-debugging
 #ifdef _DBG_TRACE_POINTS_
 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_POST_TRACE_VALUE(v)     TgtDbgPostTraceValue(v)
 #else
index 3c6452fb304844e5d588157e77b9a7e1212297d7..40324af08f70902cff889a6a5f7225371ec7cfec 100644 (file)
@@ -382,7 +382,7 @@ EPLDLLEXPORT tEplKernel EplNmtuProcessEvent(tEplEvent *pEplEvent_p)
                                        // node listens for EPL-Frames and check timeout
                                case kEplNmtCsNotActive:
                                        {
-                                               DWORD dwBuffer;
+                                               u32 dwBuffer;
                                                tEplObdSize ObdSize;
                                                tEplTimerArg TimerArg;
 
@@ -475,7 +475,7 @@ EPLDLLEXPORT tEplKernel EplNmtuProcessEvent(tEplEvent *pEplEvent_p)
                                        // node listens for EPL-Frames and check timeout
                                case kEplNmtMsNotActive:
                                        {
-                                               DWORD dwBuffer;
+                                               u32 dwBuffer;
                                                tEplObdSize ObdSize;
                                                tEplTimerArg TimerArg;
 
@@ -544,7 +544,7 @@ EPLDLLEXPORT tEplKernel EplNmtuProcessEvent(tEplEvent *pEplEvent_p)
                                        // node processes only async frames
                                case kEplNmtMsPreOperational1:
                                        {
-                                               DWORD dwBuffer = 0;
+                                               u32 dwBuffer = 0;
                                                tEplObdSize ObdSize;
                                                tEplTimerArg TimerArg;
 
index ca61db449cee7f7558c884c477ee27734fbfa325..ab0966ea6559c960bdbb9cf48ec1072eb497ed7b 100644 (file)
@@ -1088,7 +1088,7 @@ EPLDLLEXPORT tEplKernel EplObdReadEntryToLe(EPL_MCO_DECL_INSTANCE_PTR_ unsigned
        case kEplObdTypInt24:
        case kEplObdTypUInt24:
                {
-                       AmiSetDword24ToLe(pDstData_p, *((DWORD *) pSrcData));
+                       AmiSetDword24ToLe(pDstData_p, *((u32 *) pSrcData));
                        break;
                }
 
@@ -1097,7 +1097,7 @@ EPLDLLEXPORT tEplKernel EplObdReadEntryToLe(EPL_MCO_DECL_INSTANCE_PTR_ unsigned
        case kEplObdTypUInt32:
        case kEplObdTypReal32:
                {
-                       AmiSetDwordToLe(pDstData_p, *((DWORD *) pSrcData));
+                       AmiSetDwordToLe(pDstData_p, *((u32 *) pSrcData));
                        break;
                }
 
@@ -1238,7 +1238,7 @@ EPLDLLEXPORT tEplKernel EplObdWriteEntryFromLe(EPL_MCO_DECL_INSTANCE_PTR_ unsign
        case kEplObdTypInt24:
        case kEplObdTypUInt24:
                {
-                       *((DWORD *) pBuffer) = AmiGetDword24FromLe(pSrcData_p);
+                       *((u32 *) pBuffer) = AmiGetDword24FromLe(pSrcData_p);
                        break;
                }
 
@@ -1247,7 +1247,7 @@ EPLDLLEXPORT tEplKernel EplObdWriteEntryFromLe(EPL_MCO_DECL_INSTANCE_PTR_ unsign
        case kEplObdTypUInt32:
        case kEplObdTypReal32:
                {
-                       *((DWORD *) pBuffer) = AmiGetDwordFromLe(pSrcData_p);
+                       *((u32 *) pBuffer) = AmiGetDwordFromLe(pSrcData_p);
                        break;
                }
 
index 587f57a6aba7a8d5a4cec25e1c6c65a4f000ad18..ed7f091c0a062d2c225a646a3f0720e161e02695 100644 (file)
@@ -370,7 +370,7 @@ typedef struct {
        unsigned int m_uiIndex;
        unsigned int m_uiSubIndex;
        void *m_pArg;
-       DWORD m_dwAbortCode;
+       u32 m_dwAbortCode;
 
 } tEplObdCbParam;
 
index c70d17abaa1bf2fd1e6a6b04406a1a365f57874a..fc325bfd604ca7dba1a5695d0a6fee198e0bd14e 100644 (file)
@@ -80,7 +80,7 @@
 
 //        #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()
 
        //---------------------------------------------------------------------------------------
index d65e21ce0b5c064d0b76408b34512a69b87f7b8c..857ab513db1f6e6a3515bf09ce302ab8e357b984 100644 (file)
@@ -160,7 +160,7 @@ static void EplPdouDecodeObjectMapping(u64 qwObjectMapping_p,
 
 static tEplKernel EplPdouCheckObjectMapping(u64 qwObjectMapping_p,
                                            tEplObdAccess AccessType_p,
-                                           DWORD * pdwAbortCode_p,
+                                           u32 * pdwAbortCode_p,
                                            unsigned int *puiPdoSize_p);
 
 //=========================================================================//
@@ -482,7 +482,7 @@ static void EplPdouDecodeObjectMapping(u64 qwObjectMapping_p,
 
 static tEplKernel EplPdouCheckObjectMapping(u64 qwObjectMapping_p,
                                            tEplObdAccess AccessType_p,
-                                           DWORD * pdwAbortCode_p,
+                                           u32 * pdwAbortCode_p,
                                            unsigned int *puiPdoSize_p)
 {
        tEplKernel Ret = kEplSuccessful;
index a09d1eb053958e6eaea83beb1f9ba8eb5cf47b25..8002e0cc4d9b972a4a2694fde4f9054a1923d864 100644 (file)
@@ -207,7 +207,7 @@ typedef enum {
 typedef struct {
        tEplSdoComConHdl m_SdoComConHdl;
        tEplSdoComConState m_SdoComConState;
-       DWORD m_dwAbortCode;
+       u32 m_dwAbortCode;
        tEplSdoAccessType m_SdoAccessType;
        unsigned int m_uiNodeId;        // NodeId of the target
        unsigned int m_uiTargetIndex;   // index which was accessed
index 80135d27e038718c56ed46f3097b02fa96bcb6de..aa8bdef317cf36cd15a8dc9cdec8790e819c29eb 100644 (file)
@@ -321,7 +321,7 @@ tEplKernel EplSdoAsnduInitCon(tEplSdoConHdl *pSdoConHandle_p,
 //---------------------------------------------------------------------------
 tEplKernel EplSdoAsnduSendData(tEplSdoConHdl SdoConHandle_p,
                               tEplFrame *pSrcData_p,
-                              DWORD dwDataSize_p)
+                              u32 dwDataSize_p)
 {
        tEplKernel Ret;
        unsigned int uiArray;
index a9325d47efb1de152224905a905dda0de538e56e..1f71b5c6e5f6e67a24b449b2f5ac33fc71344348 100644 (file)
@@ -174,7 +174,7 @@ typedef struct {
        //    the SDO transfer
        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)
        // only for client
        unsigned int m_uiTargetIndex;   // index to access
@@ -246,7 +246,7 @@ static tEplKernel EplSdoComClientProcessFrame(tEplSdoComConHdl SdoComCon_p,
                                              tEplAsySdoCom * pAsySdoCom_p);
 
 static tEplKernel EplSdoComClientSendAbort(tEplSdoComCon * pSdoComCon_p,
-                                          DWORD dwAbortCode_p);
+                                          u32 dwAbortCode_p);
 #endif
 
 /***************************************************************************/
@@ -747,7 +747,7 @@ tEplKernel EplSdoComGetState(tEplSdoComConHdl SdoComConHdl_p,
 //---------------------------------------------------------------------------
 #if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_SDOC)) != 0)
 tEplKernel EplSdoComSdoAbort(tEplSdoComConHdl SdoComConHdl_p,
-                            DWORD dwAbortCode_p)
+                            u32 dwAbortCode_p)
 {
        tEplKernel Ret;
        tEplSdoComCon *pSdoComCon;
@@ -1001,7 +1001,7 @@ static tEplKernel EplSdoComProcessIntern(tEplSdoComConHdl SdoComCon_p,
        u8 bFlag;
 
 #if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_SDOS)) != 0)
-       DWORD dwAbortCode;
+       u32 dwAbortCode;
        unsigned int uiSize;
 #endif
 
@@ -1666,7 +1666,7 @@ static tEplKernel EplSdoComProcessIntern(tEplSdoComConHdl SdoComCon_p,
                        case kEplSdoComConEventAbort:
                                {
                                        EplSdoComClientSendAbort(pSdoComCon,
-                                                                *((DWORD *)
+                                                                *((u32 *)
                                                                   pSdoComCon->
                                                                   m_pData));
 
@@ -1674,7 +1674,7 @@ static tEplKernel EplSdoComProcessIntern(tEplSdoComConHdl SdoComCon_p,
                                        pSdoComCon->m_bTransactionId++;
                                        // call callback of application
                                        pSdoComCon->m_dwLastAbortCode =
-                                           *((DWORD *) pSdoComCon->m_pData);
+                                           *((u32 *) pSdoComCon->m_pData);
                                        Ret =
                                            EplSdoComTransferFinished
                                            (SdoComCon_p, pSdoComCon,
@@ -1868,7 +1868,7 @@ static tEplKernel EplSdoComProcessIntern(tEplSdoComConHdl SdoComCon_p,
                        case kEplSdoComConEventAbort:
                                {
                                        EplSdoComClientSendAbort(pSdoComCon,
-                                                                *((DWORD *)
+                                                                *((u32 *)
                                                                   pSdoComCon->
                                                                   m_pData));
 
@@ -1879,7 +1879,7 @@ static tEplKernel EplSdoComProcessIntern(tEplSdoComConHdl SdoComCon_p,
                                            kEplSdoComStateClientConnected;
                                        // call callback of application
                                        pSdoComCon->m_dwLastAbortCode =
-                                           *((DWORD *) pSdoComCon->m_pData);
+                                           *((u32 *) pSdoComCon->m_pData);
                                        Ret =
                                            EplSdoComTransferFinished
                                            (SdoComCon_p, pSdoComCon,
@@ -1964,7 +1964,7 @@ static tEplKernel EplSdoComServerInitReadByIndex(tEplSdoComCon * pSdoComCon_p,
        unsigned int uiSubindex;
        tEplObdSize EntrySize;
        tEplObdAccess AccessType;
-       DWORD dwAbortCode;
+       u32 dwAbortCode;
 
        dwAbortCode = 0;
 
@@ -2323,18 +2323,18 @@ static tEplKernel EplSdoComServerSendFrameIntern(tEplSdoComCon * pSdoComCon_p,
 
                        // copy abortcode to frame
                        AmiSetDwordToLe(&pCommandFrame->m_le_abCommandData[0],
-                                       *((DWORD *) pSdoComCon_p->m_pData));
+                                       *((u32 *) pSdoComCon_p->m_pData));
 
                        // set size of segment
                        AmiSetWordToLe(&pCommandFrame->m_le_wSegmentSize,
-                                      sizeof(DWORD));
+                                      sizeof(u32));
 
                        // update counter
-                       pSdoComCon_p->m_uiTransferredByte = sizeof(DWORD);
+                       pSdoComCon_p->m_uiTransferredByte = sizeof(u32);
                        pSdoComCon_p->m_uiTransSize = 0;
 
                        // calc framesize
-                       uiSizeOfFrame += sizeof(DWORD);
+                       uiSizeOfFrame += sizeof(u32);
                        Ret = EplSdoAsySeqSendData(pSdoComCon_p->m_SdoSeqConHdl,
                                                   uiSizeOfFrame, pFrame);
                        break;
@@ -2372,7 +2372,7 @@ static tEplKernel EplSdoComServerInitWriteByIndex(tEplSdoComCon * pSdoComCon_p,
        unsigned int uiBytesToTransfer;
        tEplObdSize EntrySize;
        tEplObdAccess AccessType;
-       DWORD dwAbortCode;
+       u32 dwAbortCode;
        u8 *pbSrcData;
 
        dwAbortCode = 0;
@@ -3216,7 +3216,7 @@ static tEplKernel EplSdoComClientProcessFrame(tEplSdoComConHdl SdoComCon_p,
 //---------------------------------------------------------------------------
 #if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_SDOC)) != 0)
 static tEplKernel EplSdoComClientSendAbort(tEplSdoComCon * pSdoComCon_p,
-                                          DWORD dwAbortCode_p)
+                                          u32 dwAbortCode_p)
 {
        tEplKernel Ret;
        u8 abFrame[EPL_MAX_SDO_FRAME_SIZE];
@@ -3249,14 +3249,14 @@ static tEplKernel EplSdoComClientSendAbort(tEplSdoComCon * pSdoComCon_p,
        AmiSetDwordToLe(&pCommandFrame->m_le_abCommandData[0], dwAbortCode_p);
 
        // set size of segment
-       AmiSetWordToLe(&pCommandFrame->m_le_wSegmentSize, sizeof(DWORD));
+       AmiSetWordToLe(&pCommandFrame->m_le_wSegmentSize, sizeof(u32));
 
        // update counter
-       pSdoComCon_p->m_uiTransferredByte = sizeof(DWORD);
+       pSdoComCon_p->m_uiTransferredByte = sizeof(u32);
        pSdoComCon_p->m_uiTransSize = 0;
 
        // calc framesize
-       uiSizeOfFrame += sizeof(DWORD);
+       uiSizeOfFrame += sizeof(u32);
 
        // save abort code
        pSdoComCon_p->m_dwLastAbortCode = dwAbortCode_p;
index 656ea24292048f8d08530f2db36673fdbeaa4947..b409c9b7be486b720fbbea6ed36a12c967148f4a 100644 (file)
@@ -431,7 +431,7 @@ tEplKernel EplSdoUdpuInitCon(tEplSdoConHdl *pSdoConHandle_p,
 //
 //---------------------------------------------------------------------------
 tEplKernel EplSdoUdpuSendData(tEplSdoConHdl SdoConHandle_p,
-                             tEplFrame *pSrcData_p, DWORD dwDataSize_p)
+                             tEplFrame *pSrcData_p, u32 dwDataSize_p)
 {
        tEplKernel Ret;
        int iError;
@@ -536,7 +536,7 @@ tEplKernel EplSdoUdpuDelCon(tEplSdoConHdl SdoConHandle_p)
 // Parameters:      lpParameter = pointer to parameter type tEplSdoUdpThreadPara
 //
 //
-// Returns:         DWORD   =   errorcode
+// Returns:         u32   =   errorcode
 //
 //
 // State:
index 61a56951da9666e436910c4d007ecd81292c2c18..beacd89c3d68ebd61c06452258fced1aeb7b64a2 100644 (file)
 // currently no Timer functions are needed by EPL stack
 // so they are not implemented yet
 //void  TgtTimerInit(void);
-//DWORD TgtGetTickCount(void);
+//u32 TgtGetTickCount(void);
 //void TgtGetNetTime(tEplNetTime * pNetTime_p);
 
 // functions for ethernet driver
index 2d657d711d8e5fac3204537457a4280f940d5690..8a97fb4139657634f88cc7c0abb240b8f55ce820 100644 (file)
 // TracePoint support for realtime-debugging
 #ifdef _DBG_TRACE_POINTS_
 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_POST_TRACE_VALUE(v)     TgtDbgPostTraceValue(v)
 #else
index b8e891d1cd0b70cbb2518093b2b6d50580b6fd7a..60fb6efbaf2b2d77b51477fc179f18a3a91ba838 100644 (file)
@@ -84,7 +84,7 @@ typedef struct {
 } twStruct;
 
 typedef struct {
-       DWORD m_dwDword;
+       u32 m_dwDword;
 
 } tdwStruct;
 
@@ -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 dwValue;
@@ -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;
 
@@ -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 dwValue;
@@ -299,9 +299,9 @@ WORD AmiGetWordFromLe(void *pAddr_p)
        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;
 
@@ -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)[1] = ((u8 *) & dwDwordVal_p)[1];
@@ -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)[1] = ((u8 *) & dwDwordVal_p)[1];
@@ -361,12 +361,12 @@ void AmiSetDword24ToLe(void *pAddr_p, DWORD dwDwordVal_p)
 //
 // Parameters:  pAddr_p         = pointer to source buffer
 //
-// Return:      DWORD           = read value
+// Return:      u32           = read value
 //
 // State:       not tested
 //
 //---------------------------------------------------------------------------
-DWORD AmiGetDword24FromBe(void *pAddr_p)
+u32 AmiGetDword24FromBe(void *pAddr_p)
 {
        tdwStruct dwStruct;
 
@@ -384,12 +384,12 @@ DWORD AmiGetDword24FromBe(void *pAddr_p)
 //
 // Parameters:  pAddr_p         = pointer to source buffer
 //
-// Return:      DWORD           = read value
+// Return:      u32           = read value
 //
 // State:       not tested
 //
 //---------------------------------------------------------------------------
-DWORD AmiGetDword24FromLe(void *pAddr_p)
+u32 AmiGetDword24FromLe(void *pAddr_p)
 {
        tdwStruct dwStruct;
 
@@ -546,7 +546,7 @@ void AmiSetQword40ToBe(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];
 
 }
@@ -648,7 +648,7 @@ void AmiSetQword48ToBe(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];
 
 }
@@ -751,7 +751,7 @@ void AmiSetQword56ToBe(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];
        ((u8 *) pAddr_p)[6] = ((u8 *) & qwQwordVal_p)[6];
 
index 594485e281178d0c53cf10b9897423d30dbc58aa..9a10f1cf167e7d907ec6fc06244b163e03c98c00 100644 (file)
@@ -156,12 +156,12 @@ u8 bVarOut1Old_l;
 u8 bModeSelect_l;              // state of the pushbuttons to select the mode
 u8 bSpeedSelect_l;             // state of the pushbuttons to increase/decrease the speed
 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 bLedsRow2_l;                // current state of the LEDs in row 2
 u8 abSelect_l[3];              // pushbuttons from CNs
 
-DWORD dwMode_l;                        // current mode
+u32 dwMode_l;                  // current mode
 int iCurCycleCount_l;          // current cycle count
 int iMaxCycleCount_l;          // maximum cycle count (i.e. number of cycles until next light movement step)
 int iToggle;                   // indicates the light movement direction
@@ -171,7 +171,7 @@ u8 abDomain_l[3000];
 static wait_queue_head_t WaitQueueShutdown_g;  // wait queue for tEplNmtEventSwitchOff
 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;
 module_param_named(nodeid, uiNodeId_g, uint, 0);
@@ -401,7 +401,7 @@ static int __init EplLinInit(void)
 
        // configure IP address of virtual network interface
        // 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 >> 16) & 0xFF),
                ((EplApiInitParam.m_dwIpAddress >> 8) & 0xFF),
@@ -515,7 +515,7 @@ tEplKernel AppCbEvent(tEplApiEventType EventType_p, // IN: event type (enum)
 
                        case kEplNmtGsResetCommunication:
                                {
-                                       DWORD dwBuffer;
+                                       u32 dwBuffer;
 
                                        // configure OD for MN in state ResetComm after reseting the OD
                                        // TODO: setup your own network configuration here
@@ -677,8 +677,8 @@ tEplKernel AppCbEvent(tEplApiEventType EventType_p, // IN: event type (enum)
 
                        case kEplEventSourceDllk:
                                {       // error occured within the data link layer (e.g. interrupt processing)
-                                       // the DWORD argument contains the DLL state and the NMT event
-                                       printk(" val=%lX\n",
+                                       // the u32 argument contains the DLL state and the NMT event
+                                       printk(" val=%X\n",
                                               pEventArg_p->m_InternalError.
                                               m_Arg.m_dwArg);
                                        break;
index c83163e73882cf159d5fcae88eedbe353c7e7c12..b54842ba7ed7e6017ab3d7a7b159d5f6db26fe43 100644 (file)
@@ -29,9 +29,6 @@
 #ifndef WORD
 #define WORD unsigned short int
 #endif
-#ifndef DWORD
-#define DWORD unsigned long int
-#endif
 #ifndef BOOL
 #define BOOL unsigned char
 #endif
index 9967bdda5f5d59565db015f35c617b1b4ac19a77..31ab0585f8edced88fad4c65bb6b374ffeb78358 100644 (file)
@@ -96,7 +96,7 @@ struct _tEplDllkNodeInfo {
        struct _tEplDllkNodeInfo *m_pNextNodeInfo;
        struct _tEdrvTxBuffer *m_pPreqTxBuffer;
        unsigned int m_uiNodeId;
-       DWORD m_dwPresTimeout;
+       u32 m_dwPresTimeout;
        unsigned long m_ulDllErrorEvents;
        tEplNmtState m_NmtState;
        WORD m_wPresPayloadLimit;
index 62aaa7c3a356289d0589c080a3f2a770fe037d98..a3235a129220ec9775b47b13ae581a8e705bc50f 100644 (file)
 
 #ifdef _DBG_TRACE_POINTS_
 atomic_t aatmDbgTracePoint_l[DBG_TRACE_POINTS];
-DWORD adwDbgTraceValue_l[DBG_TRACE_VALUES];
-DWORD dwDbgTraceValueOld_l;
+u32 adwDbgTraceValue_l[DBG_TRACE_VALUES];
+u32 dwDbgTraceValueOld_l;
 unsigned int uiDbgTraceValuePos_l;
 spinlock_t spinlockDbgTraceValue_l;
 unsigned long ulDbTraceValueFlags_l;
@@ -146,9 +146,9 @@ static int EplLinProcWrite(struct file *file, const char __user * buffer,
                           unsigned long count, void *data);
 
 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)
 
 }
 
-void TgtDbgPostTraceValue(DWORD dwTraceValue_p)
+void TgtDbgPostTraceValue(u32 dwTraceValue_p)
 {
 
        spin_lock_irqsave(&spinlockDbgTraceValue_l, ulDbTraceValueFlags_l);
@@ -279,7 +279,7 @@ static int EplLinProcRead(char *pcBuffer_p,
 #if (((EPL_MODULE_INTEGRATION) & (EPL_MODULE_NMT_MN)) != 0)
        // fetch running IdentRequests
        nSize += snprintf(pcBuffer_p + nSize, nBufferSize_p - nSize,
-                         "running IdentRequests:      0x%08lX\n",
+                         "running IdentRequests:      0x%08X\n",
                          EplIdentuGetRunningRequests());
 
        // fetch state of NmtMnu module
index 2d911d1d7248f454a754b8b57a72cbfe303a23fd..9ffe51cac7091a44beb0054e07864b557522d804 100644 (file)
@@ -131,13 +131,13 @@ typedef enum {
 typedef struct {
        tEplCfgState m_CfgState;        // state of the configuration state maschine
        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
        u8 *m_pbConcise;        // Ptr to concise DCF
        u8 *m_pbActualIndex;    // Ptr to actual index in the DCF segment
        tfpEplCfgMaCb m_pfnCfgMaCb;     // Ptr to CfgMa Callback, is call if configuration finished
        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
        u8 m_bNrOfMappedObject; // number of mapped objects
        unsigned int m_uiNodeId;        // Epl node addresse
@@ -145,7 +145,7 @@ typedef struct {
        unsigned int m_uiLastSubIndex;  // last subindex of configuration
        BOOL m_fOneTranferOk;   // atleased one transfer was successful
        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
        // have to insert e.g. PDO-mapping
        WORD m_wTimeOutCnt;     // Timeout Counter, break configuration is
index 6049e5852ed213e765cefec3c17678d06ec8d271..20e6fffd5ecd1a8cb224c3280cd30b5571f31b46 100644 (file)
@@ -98,7 +98,7 @@ tEplKernel EplSdoAsnduInitCon(tEplSdoConHdl *pSdoConHandle_p,
 
 tEplKernel EplSdoAsnduSendData(tEplSdoConHdl SdoConHandle_p,
                               tEplFrame *pSrcData_p,
-                              DWORD dwDataSize_p);
+                              u32 dwDataSize_p);
 
 tEplKernel EplSdoAsnduDelCon(tEplSdoConHdl SdoConHandle_p);
 
index 9e45e99a978a41ea68f47fbe94d9c1bebdfd9bcc..3df48d108392dcccecd83ea10abe08face3b7b43 100644 (file)
@@ -108,7 +108,7 @@ tEplKernel EplSdoComGetState(tEplSdoComConHdl SdoComConHdl_p,
                             tEplSdoComFinished *pSdoComFinished_p);
 
 tEplKernel EplSdoComSdoAbort(tEplSdoComConHdl SdoComConHdl_p,
-                            DWORD dwAbortCode_p);
+                            u32 dwAbortCode_p);
 
 #endif
 
index 22091d4f317e767d501000d88c167b91ece7c079..c6b91ff5b7ebc1dde8b71696f389db9c3d342958 100644 (file)
@@ -99,7 +99,7 @@ tEplKernel EplSdoUdpuInitCon(tEplSdoConHdl *pSdoConHandle_p,
                             unsigned int uiTargetNodeId_p);
 
 tEplKernel EplSdoUdpuSendData(tEplSdoConHdl SdoConHandle_p,
-                             tEplFrame *pSrcData_p, DWORD dwDataSize_p);
+                             tEplFrame *pSrcData_p, u32 dwDataSize_p);
 
 tEplKernel EplSdoUdpuDelCon(tEplSdoConHdl SdoConHandle_p);