Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: epl: remove BYTE

It's u8 in kernelspace, not BYTE.

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>

+404 -405
+2 -2
drivers/staging/epl/Debug.h
··· 634 634 extern "C" { 635 635 #endif 636 636 637 - void DumpData(char *szStr_p, BYTE *pbData_p, WORD wSize_p); 637 + void DumpData(char *szStr_p, u8 *pbData_p, WORD wSize_p); 638 638 639 639 #ifdef __cplusplus 640 640 } // von extern "C" 641 641 #endif 642 642 #define DEBUG_DUMP_DATA(lvl,str,ptr,siz) if ((DEBUG_GLB_LVL() & (lvl))==(lvl)) \ 643 - DumpData (str, (BYTE *)(ptr), (WORD)(siz)); 643 + DumpData (str, (u8 *)(ptr), (WORD)(siz)); 644 644 #else 645 645 646 646 #define DEBUG_DUMP_DATA(lvl,str,ptr,siz)
+14 -14
drivers/staging/epl/Edrv8139.c
··· 234 234 235 235 // TracePoint support for realtime-debugging 236 236 #ifdef _DBG_TRACE_POINTS_ 237 - void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p); 237 + void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); 238 238 void TgtDbgPostTraceValue(DWORD dwTraceValue_p); 239 239 #define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p) 240 240 #define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v) ··· 282 282 typedef struct { 283 283 struct pci_dev *m_pPciDev; // pointer to PCI device structure 284 284 void *m_pIoAddr; // pointer to register space of Ethernet controller 285 - BYTE *m_pbRxBuf; // pointer to Rx buffer 285 + u8 *m_pbRxBuf; // pointer to Rx buffer 286 286 dma_addr_t m_pRxBufDma; 287 - BYTE *m_pbTxBuf; // pointer to Tx buffer 287 + u8 *m_pbTxBuf; // pointer to Tx buffer 288 288 dma_addr_t m_pTxBufDma; 289 289 BOOL m_afTxBufUsed[EDRV_MAX_TX_BUFFERS]; 290 290 unsigned int m_uiCurTxDesc; ··· 359 359 // local function prototypes 360 360 //--------------------------------------------------------------------------- 361 361 362 - static BYTE EdrvCalcHash(BYTE * pbMAC_p); 362 + static u8 EdrvCalcHash(u8 * pbMAC_p); 363 363 364 364 //--------------------------------------------------------------------------- 365 365 // ··· 453 453 // State: 454 454 // 455 455 //--------------------------------------------------------------------------- 456 - tEplKernel EdrvDefineRxMacAddrEntry(BYTE * pbMacAddr_p) 456 + tEplKernel EdrvDefineRxMacAddrEntry(u8 * pbMacAddr_p) 457 457 { 458 458 tEplKernel Ret = kEplSuccessful; 459 459 DWORD dwData; 460 - BYTE bHash; 460 + u8 bHash; 461 461 462 462 bHash = EdrvCalcHash(pbMacAddr_p); 463 463 /* ··· 494 494 // State: 495 495 // 496 496 //--------------------------------------------------------------------------- 497 - tEplKernel EdrvUndefineRxMacAddrEntry(BYTE * pbMacAddr_p) 497 + tEplKernel EdrvUndefineRxMacAddrEntry(u8 * pbMacAddr_p) 498 498 { 499 499 tEplKernel Ret = kEplSuccessful; 500 500 DWORD dwData; 501 - BYTE bHash; 501 + u8 bHash; 502 502 503 503 bHash = EdrvCalcHash(pbMacAddr_p); 504 504 ··· 720 720 //--------------------------------------------------------------------------- 721 721 static void EdrvReinitRx(void) 722 722 { 723 - BYTE bCmd; 723 + u8 bCmd; 724 724 725 725 // simply switch off and on the receiver 726 726 // this will reset the CAPR register ··· 765 765 DWORD dwTxStatus; 766 766 DWORD dwRxStatus; 767 767 WORD wCurRx; 768 - BYTE *pbRxBuf; 768 + u8 *pbRxBuf; 769 769 unsigned int uiLength; 770 770 int iHandled = IRQ_HANDLED; 771 771 ··· 1215 1215 //#define CRC32_POLY 0xEDB88320 // 1216 1216 // G(x) = x32 + x26 + x23 + x22 + x16 + x12 + x11 + x10 + x8 + x7 + x5 + x4 + x2 + x + 1 1217 1217 1218 - static BYTE EdrvCalcHash(BYTE * pbMAC_p) 1218 + static u8 EdrvCalcHash(u8 * pbMAC_p) 1219 1219 { 1220 1220 DWORD dwByteCounter; 1221 1221 DWORD dwBitCounter; 1222 1222 DWORD dwData; 1223 1223 DWORD dwCrc; 1224 1224 DWORD dwCarry; 1225 - BYTE *pbData; 1226 - BYTE bHash; 1225 + u8 *pbData; 1226 + u8 bHash; 1227 1227 1228 1228 pbData = pbMAC_p; 1229 1229 ··· 1246 1246 // printk("MyCRC = 0x%08lX\n", dwCrc); 1247 1247 // only upper 6 bits (HASH_BITS) are used 1248 1248 // which point to specific bit in the hash registers 1249 - bHash = (BYTE) ((dwCrc >> (32 - HASH_BITS)) & 0x3f); 1249 + bHash = (u8) ((dwCrc >> (32 - HASH_BITS)) & 0x3f); 1250 1250 1251 1251 return bHash; 1252 1252 }
+1 -1
drivers/staging/epl/EdrvFec.h
··· 98 98 typedef struct { 99 99 WORD m_wStatus; // control / status --- used by edrv, do not change in application 100 100 WORD m_wLength; // transfer length 101 - BYTE *m_pbData; // buffer address 101 + u8 *m_pbData; // buffer address 102 102 } tBufferDescr; 103 103 104 104 #if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282)
+1 -1
drivers/staging/epl/EdrvSim.h
··· 83 83 // function prototypes 84 84 //--------------------------------------------------------------------------- 85 85 86 - void EdrvRxInterruptHandler(BYTE bBufferInFrame_p, BYTE * pbEthernetData_p, 86 + void EdrvRxInterruptHandler(u8 bBufferInFrame_p, u8 * pbEthernetData_p, 87 87 WORD wDataLen_p); 88 88 89 89 #endif // #ifndef _EDRVSIM_H_
+3 -3
drivers/staging/epl/Epl.h
··· 139 139 unsigned int m_uiSizeOfStruct; 140 140 BOOL m_fAsyncOnly; // do not need to register PRes 141 141 unsigned int m_uiNodeId; // local node ID 142 - BYTE m_abMacAddress[6]; // local MAC address 142 + u8 m_abMacAddress[6]; // local MAC address 143 143 144 144 // 0x1F82: NMT_FeatureFlags_U32 145 145 DWORD m_dwFeatureFlags; ··· 189 189 DWORD m_dwIpAddress; 190 190 DWORD m_dwSubnetMask; 191 191 DWORD m_dwDefaultGateway; 192 - BYTE m_sHostname[32]; 193 - BYTE m_abVendorSpecificExt2[48]; 192 + u8 m_sHostname[32]; 193 + u8 m_abVendorSpecificExt2[48]; 194 194 195 195 char *m_pszDevName; // NMT_ManufactDevName_VS (0x1008/0 local OD) 196 196 char *m_pszHwVersion; // NMT_ManufactHwVers_VS (0x1009/0 local OD)
+7 -7
drivers/staging/epl/EplAmi.h
··· 69 69 70 70 16.09.2002 -as 71 71 To save code space the functions AmiSetByte and AmiGetByte 72 - are replaced by macros. For targets which assign BYTE by 72 + are replaced by macros. For targets which assign u8 by 73 73 an 16Bit type, the definition of macros must changed to 74 74 functions. 75 75 ··· 105 105 // 106 106 // To save code space the function AmiSetByte is replaced by 107 107 // an macro. 108 - // void AmiSetByte (void * pAddr_p, BYTE bByteVal_p); 108 + // void AmiSetByte (void * pAddr_p, u8 bByteVal_p); 109 109 110 - #define AmiSetByteToBe(pAddr_p, bByteVal_p) {*(BYTE *)(pAddr_p) = (bByteVal_p);} 111 - #define AmiSetByteToLe(pAddr_p, bByteVal_p) {*(BYTE *)(pAddr_p) = (bByteVal_p);} 110 + #define AmiSetByteToBe(pAddr_p, bByteVal_p) {*(u8 *)(pAddr_p) = (bByteVal_p);} 111 + #define AmiSetByteToLe(pAddr_p, bByteVal_p) {*(u8 *)(pAddr_p) = (bByteVal_p);} 112 112 113 113 void AmiSetWordToBe(void *pAddr_p, WORD wWordVal_p); 114 114 void AmiSetDwordToBe(void *pAddr_p, DWORD dwDwordVal_p); ··· 121 121 // 122 122 // To save code space the function AmiGetByte is replaced by 123 123 // an macro. 124 - // BYTE AmiGetByte (void * pAddr_p); 124 + // u8 AmiGetByte (void * pAddr_p); 125 125 126 - #define AmiGetByteFromBe(pAddr_p) (*(BYTE *)(pAddr_p)) 127 - #define AmiGetByteFromLe(pAddr_p) (*(BYTE *)(pAddr_p)) 126 + #define AmiGetByteFromBe(pAddr_p) (*(u8 *)(pAddr_p)) 127 + #define AmiGetByteFromLe(pAddr_p) (*(u8 *)(pAddr_p)) 128 128 129 129 WORD AmiGetWordFromBe(void *pAddr_p); 130 130 DWORD AmiGetDwordFromBe(void *pAddr_p);
+16 -16
drivers/staging/epl/EplApiGeneric.c
··· 556 556 tEplObdSize *pEntrySize_p, 557 557 unsigned int uiFirstSubindex_p) 558 558 { 559 - BYTE bVarEntries; 560 - BYTE bIndexEntries; 561 - BYTE *pbData; 559 + u8 bVarEntries; 560 + u8 bIndexEntries; 561 + u8 *pbData; 562 562 unsigned int uiSubindex; 563 563 tEplVarParam VarParam; 564 564 tEplObdSize EntrySize; ··· 574 574 goto Exit; 575 575 } 576 576 577 - pbData = (BYTE *)pVar_p; 578 - bVarEntries = (BYTE) * puiVarEntries_p; 577 + pbData = (u8 *)pVar_p; 578 + bVarEntries = (u8) * puiVarEntries_p; 579 579 UsedSize = 0; 580 580 581 581 // init VarParam structure with default values ··· 607 607 // object actually has. 608 608 if ((bIndexEntries > (bVarEntries + uiFirstSubindex_p - 1)) && 609 609 (bVarEntries != 0x00)) { 610 - bIndexEntries = (BYTE) (bVarEntries + uiFirstSubindex_p - 1); 610 + bIndexEntries = (u8) (bVarEntries + uiFirstSubindex_p - 1); 611 611 } 612 612 // map entries 613 613 for (uiSubindex = uiFirstSubindex_p; uiSubindex <= bIndexEntries; ··· 1012 1012 case 0x1F9E: // NMT_ResetCmd_U8 1013 1013 { 1014 1014 if (pParam_p->m_ObdEvent == kEplObdEvPreWrite) { 1015 - BYTE bNmtCommand; 1015 + u8 bNmtCommand; 1016 1016 1017 - bNmtCommand = *((BYTE *) pParam_p->m_pArg); 1017 + bNmtCommand = *((u8 *) pParam_p->m_pArg); 1018 1018 // check value range 1019 1019 switch ((tEplNmtCommand) bNmtCommand) { 1020 1020 case kEplNmtCmdResetNode: ··· 1032 1032 break; 1033 1033 } 1034 1034 } else if (pParam_p->m_ObdEvent == kEplObdEvPostWrite) { 1035 - BYTE bNmtCommand; 1035 + u8 bNmtCommand; 1036 1036 1037 - bNmtCommand = *((BYTE *) pParam_p->m_pArg); 1037 + bNmtCommand = *((u8 *) pParam_p->m_pArg); 1038 1038 // check value range 1039 1039 switch ((tEplNmtCommand) bNmtCommand) { 1040 1040 case kEplNmtCmdResetNode: ··· 1187 1187 static tEplKernel EplApiCbNmtStateChange(tEplEventNmtStateChange NmtStateChange_p) 1188 1188 { 1189 1189 tEplKernel Ret = kEplSuccessful; 1190 - BYTE bNmtState; 1190 + u8 bNmtState; 1191 1191 tEplApiEventArg EventArg; 1192 1192 1193 1193 // save NMT state in OD 1194 - bNmtState = (BYTE) NmtStateChange_p.m_NewNmtState; 1194 + bNmtState = (u8) NmtStateChange_p.m_NewNmtState; 1195 1195 Ret = EplObdWriteEntry(0x1F8C, 0, &bNmtState, 1); 1196 1196 if (Ret != kEplSuccessful) { 1197 1197 goto Exit; ··· 1270 1270 case kEplNmtCsNotActive: 1271 1271 { 1272 1272 // indicate completion of reset in NMT_ResetCmd_U8 1273 - bNmtState = (BYTE) kEplNmtCmdInvalidService; 1273 + bNmtState = (u8) kEplNmtCmdInvalidService; 1274 1274 Ret = EplObdWriteEntry(0x1F9E, 0, &bNmtState, 1); 1275 1275 if (Ret != kEplSuccessful) { 1276 1276 goto Exit; ··· 1413 1413 tEplDllIdentParam DllIdentParam; 1414 1414 tEplObdSize ObdSize; 1415 1415 WORD wTemp; 1416 - BYTE bTemp; 1416 + u8 bTemp; 1417 1417 1418 1418 // configure Dll 1419 1419 EPL_MEMSET(&DllConfigParam, 0, sizeof(DllConfigParam)); ··· 1633 1633 { 1634 1634 tEplKernel Ret = kEplSuccessful; 1635 1635 WORD wTemp; 1636 - BYTE bTemp; 1636 + u8 bTemp; 1637 1637 1638 1638 // set node id in OD 1639 1639 Ret = EplObdSetNodeId(EplApiInstance_g.m_InitParam.m_uiNodeId, // node id ··· 1730 1730 }*/ 1731 1731 1732 1732 if (EplApiInstance_g.m_InitParam.m_uiMultiplCycleCnt <= 0xFF) { 1733 - bTemp = (BYTE) EplApiInstance_g.m_InitParam.m_uiMultiplCycleCnt; 1733 + bTemp = (u8) EplApiInstance_g.m_InitParam.m_uiMultiplCycleCnt; 1734 1734 Ret = EplObdWriteEntry(0x1F98, 7, &bTemp, 1); 1735 1735 /* if(Ret != kEplSuccessful) 1736 1736 {
+1 -1
drivers/staging/epl/EplApiLinuxKernel.c
··· 139 139 140 140 // TracePoint support for realtime-debugging 141 141 #ifdef _DBG_TRACE_POINTS_ 142 - void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p); 142 + void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); 143 143 #define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p) 144 144 #else 145 145 #define TGT_DBG_SIGNAL_TRACE_POINT(p)
+2 -2
drivers/staging/epl/EplApiProcessImage.c
··· 126 126 #if ((EPL_API_PROCESS_IMAGE_SIZE_IN > 0) || (EPL_API_PROCESS_IMAGE_SIZE_OUT > 0)) 127 127 typedef struct { 128 128 #if EPL_API_PROCESS_IMAGE_SIZE_IN > 0 129 - BYTE m_abProcessImageInput[EPL_API_PROCESS_IMAGE_SIZE_IN]; 129 + u8 m_abProcessImageInput[EPL_API_PROCESS_IMAGE_SIZE_IN]; 130 130 #endif 131 131 #if EPL_API_PROCESS_IMAGE_SIZE_OUT > 0 132 - BYTE m_abProcessImageOutput[EPL_API_PROCESS_IMAGE_SIZE_OUT]; 132 + u8 m_abProcessImageOutput[EPL_API_PROCESS_IMAGE_SIZE_OUT]; 133 133 #endif 134 134 135 135 } tEplApiProcessImageInstance;
+2 -2
drivers/staging/epl/EplDll.h
··· 185 185 DWORD m_dwIpAddress; 186 186 DWORD m_dwSubnetMask; 187 187 DWORD m_dwDefaultGateway; 188 - BYTE m_sHostname[32]; 189 - BYTE m_abVendorSpecificExt2[48]; 188 + u8 m_sHostname[32]; 189 + u8 m_abVendorSpecificExt2[48]; 190 190 191 191 } tEplDllIdentParam; 192 192
+1 -1
drivers/staging/epl/EplDllCal.h
··· 112 112 typedef struct { 113 113 tEplDllReqServiceId m_Service; 114 114 unsigned int m_uiNodeId; 115 - BYTE m_bSoaFlag1; 115 + u8 m_bSoaFlag1; 116 116 117 117 } tEplDllCalIssueRequest; 118 118
+49 -49
drivers/staging/epl/EplDllk.c
··· 121 121 122 122 // TracePoint support for realtime-debugging 123 123 #ifdef _DBG_TRACE_POINTS_ 124 - void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p); 124 + void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); 125 125 void TgtDbgPostTraceValue(DWORD dwTraceValue_p); 126 126 #define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p) 127 127 #define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v) ··· 195 195 } tEplDllState; 196 196 197 197 typedef struct { 198 - BYTE m_be_abSrcMac[6]; 198 + u8 m_be_abSrcMac[6]; 199 199 tEdrvTxBuffer *m_pTxBuffer; // Buffers for Tx-Frames 200 200 unsigned int m_uiMaxTxFrames; 201 - BYTE m_bFlag1; // Flag 1 with EN, EC for PRes, StatusRes 202 - BYTE m_bMnFlag1; // Flag 1 with EA, ER from PReq, SoA of MN 203 - BYTE m_bFlag2; // Flag 2 with PR and RS for PRes, StatusRes, IdentRes 201 + u8 m_bFlag1; // Flag 1 with EN, EC for PRes, StatusRes 202 + u8 m_bMnFlag1; // Flag 1 with EA, ER from PReq, SoA of MN 203 + u8 m_bFlag2; // Flag 2 with PR and RS for PRes, StatusRes, IdentRes 204 204 tEplDllConfigParam m_DllConfigParam; 205 205 tEplDllIdentParam m_DllIdentParam; 206 206 tEplDllState m_DllState; ··· 513 513 EPL_C_DLL_ETHERTYPE_EPL); 514 514 // source node ID 515 515 AmiSetByteToLe(&pTxFrame->m_le_bSrcNodeId, 516 - (BYTE) EplDllkInstance_g.m_DllConfigParam. 516 + (u8) EplDllkInstance_g.m_DllConfigParam. 517 517 m_uiNodeId); 518 518 // source MAC address 519 519 EPL_MEMCPY(&pTxFrame->m_be_abSrcMac[0], ··· 530 530 { // IdentResponses and StatusResponses are Broadcast 531 531 AmiSetByteToLe(&pTxFrame-> 532 532 m_le_bDstNodeId, 533 - (BYTE) 533 + (u8) 534 534 EPL_C_ADR_BROADCAST); 535 535 break; 536 536 } ··· 549 549 EPL_C_DLL_MULTICAST_SOC); 550 550 // destination node ID 551 551 AmiSetByteToLe(&pTxFrame->m_le_bDstNodeId, 552 - (BYTE) EPL_C_ADR_BROADCAST); 552 + (u8) EPL_C_ADR_BROADCAST); 553 553 // reset Flags 554 - //AmiSetByteToLe(&pTxFrame->m_Data.m_Soc.m_le_bFlag1, (BYTE) 0); 555 - //AmiSetByteToLe(&pTxFrame->m_Data.m_Soc.m_le_bFlag2, (BYTE) 0); 554 + //AmiSetByteToLe(&pTxFrame->m_Data.m_Soc.m_le_bFlag1, (u8) 0); 555 + //AmiSetByteToLe(&pTxFrame->m_Data.m_Soc.m_le_bFlag2, (u8) 0); 556 556 break; 557 557 558 558 case kEplMsgTypeSoa: ··· 561 561 EPL_C_DLL_MULTICAST_SOA); 562 562 // destination node ID 563 563 AmiSetByteToLe(&pTxFrame->m_le_bDstNodeId, 564 - (BYTE) EPL_C_ADR_BROADCAST); 564 + (u8) EPL_C_ADR_BROADCAST); 565 565 // reset Flags 566 - //AmiSetByteToLe(&pTxFrame->m_Data.m_Soa.m_le_bFlag1, (BYTE) 0); 567 - //AmiSetByteToLe(&pTxFrame->m_Data.m_Soa.m_le_bFlag2, (BYTE) 0); 566 + //AmiSetByteToLe(&pTxFrame->m_Data.m_Soa.m_le_bFlag1, (u8) 0); 567 + //AmiSetByteToLe(&pTxFrame->m_Data.m_Soa.m_le_bFlag2, (u8) 0); 568 568 // EPL profile version 569 569 AmiSetByteToLe(&pTxFrame->m_Data.m_Soa.m_le_bEplVersion, 570 - (BYTE) EPL_SPEC_VERSION); 570 + (u8) EPL_SPEC_VERSION); 571 571 break; 572 572 573 573 case kEplMsgTypePres: ··· 576 576 EPL_C_DLL_MULTICAST_PRES); 577 577 // destination node ID 578 578 AmiSetByteToLe(&pTxFrame->m_le_bDstNodeId, 579 - (BYTE) EPL_C_ADR_BROADCAST); 579 + (u8) EPL_C_ADR_BROADCAST); 580 580 // reset Flags 581 - //AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.m_le_bFlag1, (BYTE) 0); 582 - //AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.m_le_bFlag2, (BYTE) 0); 581 + //AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.m_le_bFlag1, (u8) 0); 582 + //AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.m_le_bFlag2, (u8) 0); 583 583 // PDO size 584 584 //AmiSetWordToLe(&pTxFrame->m_Data.m_Pres.m_le_wSize, 0); 585 585 break; 586 586 587 587 case kEplMsgTypePreq: 588 588 // reset Flags 589 - //AmiSetByteToLe(&pTxFrame->m_Data.m_Preq.m_le_bFlag1, (BYTE) 0); 590 - //AmiSetByteToLe(&pTxFrame->m_Data.m_Preq.m_le_bFlag2, (BYTE) 0); 589 + //AmiSetByteToLe(&pTxFrame->m_Data.m_Preq.m_le_bFlag1, (u8) 0); 590 + //AmiSetByteToLe(&pTxFrame->m_Data.m_Preq.m_le_bFlag2, (u8) 0); 591 591 // PDO size 592 592 //AmiSetWordToLe(&pTxFrame->m_Data.m_Preq.m_le_wSize, 0); 593 593 break; ··· 596 596 break; 597 597 } 598 598 // EPL message type 599 - AmiSetByteToLe(&pTxFrame->m_le_bMessageType, (BYTE) MsgType_p); 599 + AmiSetByteToLe(&pTxFrame->m_le_bMessageType, (u8) MsgType_p); 600 600 } 601 601 602 602 *ppFrame_p = pTxFrame; ··· 672 672 tEdrvTxBuffer *pTxBuffer; 673 673 unsigned int uiHandle; 674 674 unsigned int uiFrameSize; 675 - BYTE abMulticastMac[6]; 675 + u8 abMulticastMac[6]; 676 676 tEplDllAsyncReqPriority AsyncReqPriority; 677 677 unsigned int uiFrameCount; 678 678 tEplNmtState NmtState; ··· 711 711 // EPL profile version 712 712 AmiSetByteToLe(&pTxFrame->m_Data.m_Asnd.m_Payload. 713 713 m_IdentResponse.m_le_bEplProfileVersion, 714 - (BYTE) EPL_SPEC_VERSION); 714 + (u8) EPL_SPEC_VERSION); 715 715 // FeatureFlags 716 716 AmiSetDwordToLe(&pTxFrame->m_Data.m_Asnd.m_Payload. 717 717 m_IdentResponse.m_le_dwFeatureFlags, ··· 1232 1232 } 1233 1233 if (uiFrameCount > 0) { 1234 1234 EplDllkInstance_g.m_bFlag2 = 1235 - (BYTE) (((AsyncReqPriority << 1235 + (u8) (((AsyncReqPriority << 1236 1236 EPL_FRAME_FLAG2_PR_SHIFT) 1237 1237 & EPL_FRAME_FLAG2_PR) 1238 1238 | (uiFrameCount & ··· 1306 1306 } 1307 1307 AmiSetByteToLe(&pTxFrame->m_Data.m_Pres. 1308 1308 m_le_bNmtStatus, 1309 - (BYTE) NmtState); 1309 + (u8) NmtState); 1310 1310 AmiSetByteToLe(&pTxFrame->m_Data.m_Pres. 1311 1311 m_le_bFlag2, 1312 1312 EplDllkInstance_g. ··· 1532 1532 // 1533 1533 //--------------------------------------------------------------------------- 1534 1534 1535 - tEplKernel EplDllkSetFlag1OfNode(unsigned int uiNodeId_p, BYTE bSoaFlag1_p) 1535 + tEplKernel EplDllkSetFlag1OfNode(unsigned int uiNodeId_p, u8 bSoaFlag1_p) 1536 1536 { 1537 1537 tEplKernel Ret = kEplSuccessful; 1538 1538 tEplDllkNodeInfo *pNodeInfo; ··· 1663 1663 pIntNodeInfo->m_pPreqTxBuffer = 1664 1664 &EplDllkInstance_g.m_pTxBuffer[uiHandle]; 1665 1665 AmiSetByteToLe(&pFrame->m_le_bDstNodeId, 1666 - (BYTE) pNodeInfo_p->m_uiNodeId); 1666 + (u8) pNodeInfo_p->m_uiNodeId); 1667 1667 1668 1668 // set up destination MAC address 1669 1669 EPL_MEMCPY(pFrame->m_be_abDstMac, pIntNodeInfo->m_be_abMacAddr, ··· 2430 2430 tEplDllReqServiceId ReqServiceId; 2431 2431 unsigned int uiAsndServiceId; 2432 2432 unsigned int uiNodeId; 2433 - BYTE bFlag1; 2433 + u8 bFlag1; 2434 2434 2435 2435 BENCHMARK_MOD_02_SET(3); 2436 2436 NmtState = EplNmtkGetNmtState(); ··· 2465 2465 // update frame (NMT state, RD, RS, PR, MS, EN flags) 2466 2466 AmiSetByteToLe(&pTxFrame->m_Data.m_Pres. 2467 2467 m_le_bNmtStatus, 2468 - (BYTE) NmtState); 2468 + (u8) NmtState); 2469 2469 AmiSetByteToLe(&pTxFrame->m_Data.m_Pres. 2470 2470 m_le_bFlag2, 2471 2471 EplDllkInstance_g. ··· 2540 2540 // update frame (NMT state, RD, RS, PR, MS, EN flags) 2541 2541 AmiSetByteToLe(&pTxFrame->m_Data.m_Pres. 2542 2542 m_le_bNmtStatus, 2543 - (BYTE) NmtState); 2543 + (u8) NmtState); 2544 2544 AmiSetByteToLe(&pTxFrame->m_Data.m_Pres. 2545 2545 m_le_bFlag2, 2546 2546 EplDllkInstance_g. ··· 2802 2802 } 2803 2803 AmiSetByteToLe(&pTxFrame->m_Data.m_Pres. 2804 2804 m_le_bNmtStatus, 2805 - (BYTE) NmtState); 2805 + (u8) NmtState); 2806 2806 AmiSetByteToLe(&pTxFrame->m_Data.m_Pres. 2807 2807 m_le_bFlag2, 2808 2808 EplDllkInstance_g.m_bFlag2); ··· 2887 2887 m_Payload. 2888 2888 m_StatusResponse. 2889 2889 m_le_bNmtStatus, 2890 - (BYTE) NmtState); 2890 + (u8) NmtState); 2891 2891 AmiSetByteToLe(&pTxFrame-> 2892 2892 m_Data.m_Asnd. 2893 2893 m_Payload. ··· 2953 2953 m_Payload. 2954 2954 m_IdentResponse. 2955 2955 m_le_bNmtStatus, 2956 - (BYTE) NmtState); 2956 + (u8) NmtState); 2957 2957 AmiSetByteToLe(&pTxFrame-> 2958 2958 m_Data.m_Asnd. 2959 2959 m_Payload. ··· 3285 3285 m_Payload. 3286 3286 m_StatusResponse. 3287 3287 m_le_bNmtStatus, 3288 - (BYTE) NmtState); 3288 + (u8) NmtState); 3289 3289 AmiSetByteToLe(&pTxFrame->m_Data.m_Asnd. 3290 3290 m_Payload. 3291 3291 m_StatusResponse. ··· 3321 3321 m_Payload. 3322 3322 m_IdentResponse. 3323 3323 m_le_bNmtStatus, 3324 - (BYTE) NmtState); 3324 + (u8) NmtState); 3325 3325 AmiSetByteToLe(&pTxFrame->m_Data.m_Asnd. 3326 3326 m_Payload. 3327 3327 m_IdentResponse. ··· 3361 3361 if ((AmiGetByteFromLe 3362 3362 (&pTxFrame-> 3363 3363 m_le_bMessageType) 3364 - == (BYTE) kEplMsgTypeAsnd) 3364 + == (u8) kEplMsgTypeAsnd) 3365 3365 && 3366 3366 (AmiGetByteFromLe 3367 3367 (&pTxFrame->m_Data.m_Asnd. 3368 3368 m_le_bServiceId) 3369 - == (BYTE) kEplDllAsndNmtCommand)) { // post event directly to NmtMnu module 3369 + == (u8) kEplDllAsndNmtCommand)) { // post event directly to NmtMnu module 3370 3370 Event.m_EventSink = 3371 3371 kEplEventSinkNmtMnu; 3372 3372 Event.m_EventType = ··· 3505 3505 if (wEtherType == EPL_C_DLL_ETHERTYPE_EPL) { 3506 3506 // source node ID 3507 3507 AmiSetByteToLe(&pFrame_p->m_le_bSrcNodeId, 3508 - (BYTE) EplDllkInstance_g. 3508 + (u8) EplDllkInstance_g. 3509 3509 m_DllConfigParam.m_uiNodeId); 3510 3510 3511 3511 // check message type ··· 3514 3514 if (MsgType == 0) { 3515 3515 MsgType = kEplMsgTypeAsnd; 3516 3516 AmiSetByteToLe(&pFrame_p->m_le_bMessageType, 3517 - (BYTE) MsgType); 3517 + (u8) MsgType); 3518 3518 } 3519 3519 3520 3520 if (MsgType == kEplMsgTypeAsnd) { ··· 3825 3825 // update frame (target) 3826 3826 AmiSetByteToLe(&pTxFrame->m_Data.m_Soa. 3827 3827 m_le_bReqServiceId, 3828 - (BYTE) EplDllkInstance_g. 3828 + (u8) EplDllkInstance_g. 3829 3829 m_LastReqServiceId); 3830 3830 AmiSetByteToLe(&pTxFrame->m_Data.m_Soa. 3831 3831 m_le_bReqServiceTarget, 3832 - (BYTE) EplDllkInstance_g. 3832 + (u8) EplDllkInstance_g. 3833 3833 m_uiLastTargetNodeId); 3834 3834 3835 3835 } else { // invite nobody 3836 3836 // update frame (target) 3837 3837 AmiSetByteToLe(&pTxFrame->m_Data.m_Soa. 3838 - m_le_bReqServiceId, (BYTE) 0); 3838 + m_le_bReqServiceId, (u8) 0); 3839 3839 AmiSetByteToLe(&pTxFrame->m_Data.m_Soa. 3840 - m_le_bReqServiceTarget, (BYTE) 0); 3840 + m_le_bReqServiceTarget, (u8) 0); 3841 3841 } 3842 3842 3843 3843 // update frame (NMT state) 3844 3844 AmiSetByteToLe(&pTxFrame->m_Data.m_Soa.m_le_bNmtStatus, 3845 - (BYTE) NmtState_p); 3845 + (u8) NmtState_p); 3846 3846 3847 3847 // send SoA frame 3848 3848 Ret = EdrvSendTxMsg(pTxBuffer); ··· 3919 3919 tEplKernel Ret = kEplSuccessful; 3920 3920 tEdrvTxBuffer *pTxBuffer = NULL; 3921 3921 tEplFrame *pTxFrame; 3922 - BYTE bFlag1 = 0; 3922 + u8 bFlag1 = 0; 3923 3923 3924 3924 if (EplDllkInstance_g.m_pCurNodeInfo == NULL) { // start with first isochronous CN 3925 3925 EplDllkInstance_g.m_pCurNodeInfo = ··· 3970 3970 if (pTxBuffer == &EplDllkInstance_g.m_pTxBuffer[EPL_DLLK_TXFRAME_PRES]) { // PRes of MN will be sent 3971 3971 // update NMT state 3972 3972 AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.m_le_bNmtStatus, 3973 - (BYTE) NmtState_p); 3973 + (u8) NmtState_p); 3974 3974 *pDllStateProposed_p = kEplDllMsWaitSoaTrig; 3975 3975 } 3976 3976 // $$$ d.k. set EPL_FRAME_FLAG1_MS if necessary ··· 4013 4013 unsigned int uiNodeId_p) 4014 4014 { 4015 4015 tEplKernel Ret = kEplSuccessful; 4016 - BYTE abBuffer[18]; 4016 + u8 abBuffer[18]; 4017 4017 tEplFrame *pFrame = (tEplFrame *) abBuffer; 4018 4018 tEplFrameInfo FrameInfo; 4019 4019 ··· 4024 4024 // ASnd service registered? 4025 4025 if (EplDllkInstance_g.m_aAsndFilter[ReqServiceId_p] == kEplDllAsndFilterAny) { // ASnd service ID is registered 4026 4026 AmiSetByteToLe(&pFrame->m_le_bSrcNodeId, 4027 - (BYTE) uiNodeId_p); 4027 + (u8) uiNodeId_p); 4028 4028 // EPL MsgType ASnd 4029 4029 AmiSetByteToLe(&pFrame->m_le_bMessageType, 4030 - (BYTE) kEplMsgTypeAsnd); 4030 + (u8) kEplMsgTypeAsnd); 4031 4031 // ASnd Service ID 4032 4032 AmiSetByteToLe(&pFrame->m_Data.m_Asnd.m_le_bServiceId, 4033 - (BYTE) ReqServiceId_p); 4033 + (u8) ReqServiceId_p); 4034 4034 // create frame info structure 4035 4035 FrameInfo.m_pFrame = pFrame; 4036 4036 FrameInfo.m_uiFrameSize = 18; // empty non existing ASnd frame
+5 -5
drivers/staging/epl/EplDllkCal.c
··· 142 142 tShbInstance m_ShbInstanceTxGen; // FIFO for Tx frames with generic priority 143 143 #else 144 144 unsigned int m_uiFrameSizeNmt; 145 - BYTE m_abFrameNmt[1500]; 145 + u8 m_abFrameNmt[1500]; 146 146 unsigned int m_uiFrameSizeGen; 147 - BYTE m_abFrameGen[1500]; 147 + u8 m_abFrameGen[1500]; 148 148 #endif 149 149 150 150 tEplDllkCalStatistics m_Statistics; ··· 536 536 case kEplDllAsyncReqPrioNmt: // NMT request priority 537 537 ShbError = 538 538 ShbCirReadDataBlock(EplDllkCalInstance_g.m_ShbInstanceTxNmt, 539 - (BYTE *) pFrame_p, *puiFrameSize_p, 539 + (u8 *) pFrame_p, *puiFrameSize_p, 540 540 &ulFrameSize); 541 541 // returns kShbOk, kShbDataTruncated, kShbInvalidArg, kShbNoReadableData 542 542 break; ··· 544 544 default: // generic priority 545 545 ShbError = 546 546 ShbCirReadDataBlock(EplDllkCalInstance_g.m_ShbInstanceTxGen, 547 - (BYTE *) pFrame_p, *puiFrameSize_p, 547 + (u8 *) pFrame_p, *puiFrameSize_p, 548 548 &ulFrameSize); 549 549 // returns kShbOk, kShbDataTruncated, kShbInvalidArg, kShbNoReadableData 550 550 break; ··· 876 876 //--------------------------------------------------------------------------- 877 877 878 878 tEplKernel EplDllkCalIssueRequest(tEplDllReqServiceId Service_p, 879 - unsigned int uiNodeId_p, BYTE bSoaFlag1_p) 879 + unsigned int uiNodeId_p, u8 bSoaFlag1_p) 880 880 { 881 881 tEplKernel Ret = kEplSuccessful; 882 882
+1 -1
drivers/staging/epl/EplDlluCal.c
··· 355 355 //--------------------------------------------------------------------------- 356 356 357 357 tEplKernel EplDlluCalIssueRequest(tEplDllReqServiceId Service_p, 358 - unsigned int uiNodeId_p, BYTE bSoaFlag1_p) 358 + unsigned int uiNodeId_p, u8 bSoaFlag1_p) 359 359 { 360 360 tEplKernel Ret = kEplSuccessful; 361 361
+1 -1
drivers/staging/epl/EplErrorHandlerk.c
··· 770 770 tEplKernel Ret = kEplSuccessful; 771 771 tEplVarParam VarParam; 772 772 tEplObdSize EntrySize; 773 - BYTE bIndexEntries; 773 + u8 bIndexEntries; 774 774 775 775 EntrySize = (tEplObdSize) sizeof(bIndexEntries); 776 776 Ret = EplObdReadEntry(uiIndex_p,
+1 -1
drivers/staging/epl/EplEvent.h
··· 248 248 tEplEventSource m_EventSource; // module which posted this error event 249 249 tEplKernel m_EplError; // EPL error which occured 250 250 union { 251 - BYTE m_bArg; 251 + u8 m_bArg; 252 252 DWORD m_dwArg; 253 253 tEplEventSource m_EventSource; // from Eventk/u module (originating error source) 254 254 tEplEventObdError m_ObdError; // from Obd module
+3 -3
drivers/staging/epl/EplEventk.c
··· 100 100 101 101 // TracePoint support for realtime-debugging 102 102 #ifdef _DBG_TRACE_POINTS_ 103 - void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p); 103 + void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); 104 104 void TgtDbgPostTraceValue(DWORD dwTraceValue_p); 105 105 #define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p) 106 106 #define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v) ··· 760 760 unsigned int uiArgSize_p, void *pArg_p) 761 761 { 762 762 tEplKernel Ret; 763 - BYTE abBuffer[EPL_MAX_EVENT_ARG_SIZE]; 763 + u8 abBuffer[EPL_MAX_EVENT_ARG_SIZE]; 764 764 tEplEventError *pEventError = (tEplEventError *) abBuffer; 765 765 tEplEvent EplEvent; 766 766 ··· 814 814 tShbError ShbError; 815 815 //unsigned long ulBlockCount; 816 816 //unsigned long ulDataSize; 817 - BYTE abDataBuffer[sizeof(tEplEvent) + EPL_MAX_EVENT_ARG_SIZE]; 817 + u8 abDataBuffer[sizeof(tEplEvent) + EPL_MAX_EVENT_ARG_SIZE]; 818 818 // d.k.: abDataBuffer contains the complete tEplEvent structure 819 819 // and behind this the argument 820 820
+3 -3
drivers/staging/epl/EplEventu.c
··· 96 96 97 97 // TracePoint support for realtime-debugging 98 98 #ifdef _DBG_TRACE_POINTS_ 99 - void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p); 99 + void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); 100 100 void TgtDbgPostTraceValue(DWORD dwTraceValue_p); 101 101 #define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p) 102 102 #define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v) ··· 693 693 unsigned int uiArgSize_p, void *pArg_p) 694 694 { 695 695 tEplKernel Ret; 696 - BYTE abBuffer[EPL_MAX_EVENT_ARG_SIZE]; 696 + u8 abBuffer[EPL_MAX_EVENT_ARG_SIZE]; 697 697 tEplEventError *pEventError = (tEplEventError *) abBuffer; 698 698 tEplEvent EplEvent; 699 699 ··· 750 750 tShbError ShbError; 751 751 //unsigned long ulBlockCount; 752 752 //unsigned long ulDataSize; 753 - BYTE abDataBuffer[sizeof(tEplEvent) + EPL_MAX_EVENT_ARG_SIZE]; 753 + u8 abDataBuffer[sizeof(tEplEvent) + EPL_MAX_EVENT_ARG_SIZE]; 754 754 // d.k.: abDataBuffer contains the complete tEplEvent structure 755 755 // and behind this the argument 756 756
+55 -55
drivers/staging/epl/EplFrame.h
··· 122 122 123 123 typedef struct { 124 124 // Offset 17 125 - BYTE m_le_bRes1; // reserved 125 + u8 m_le_bRes1; // reserved 126 126 // Offset 18 127 - BYTE m_le_bFlag1; // Flags: MC, PS 127 + u8 m_le_bFlag1; // Flags: MC, PS 128 128 // Offset 19 129 - BYTE m_le_bFlag2; // Flags: res 129 + u8 m_le_bFlag2; // Flags: res 130 130 // Offset 20 131 131 tEplNetTime m_le_NetTime; // supported if D_NMT_NetTimeIsRealTime_BOOL is set 132 132 // Offset 28 ··· 136 136 137 137 typedef struct { 138 138 // Offset 17 139 - BYTE m_le_bRes1; // reserved 139 + u8 m_le_bRes1; // reserved 140 140 // Offset 18 141 - BYTE m_le_bFlag1; // Flags: MS, EA, RD 141 + u8 m_le_bFlag1; // Flags: MS, EA, RD 142 142 // Offset 19 143 - BYTE m_le_bFlag2; // Flags: res 143 + u8 m_le_bFlag2; // Flags: res 144 144 // Offset 20 145 - BYTE m_le_bPdoVersion; 145 + u8 m_le_bPdoVersion; 146 146 // Offset 21 147 - BYTE m_le_bRes2; // reserved 147 + u8 m_le_bRes2; // reserved 148 148 // Offset 22 149 149 WORD m_le_wSize; 150 150 // Offset 24 151 - BYTE m_le_abPayload[256 /*D_NMT_IsochrRxMaxPayload_U16 */ ]; 151 + u8 m_le_abPayload[256 /*D_NMT_IsochrRxMaxPayload_U16 */ ]; 152 152 153 153 } PACK_STRUCT tEplPreqFrame; 154 154 155 155 typedef struct { 156 156 // Offset 17 157 - BYTE m_le_bNmtStatus; // NMT state 157 + u8 m_le_bNmtStatus; // NMT state 158 158 // Offset 18 159 - BYTE m_le_bFlag1; // Flags: MS, EN, RD 159 + u8 m_le_bFlag1; // Flags: MS, EN, RD 160 160 // Offset 19 161 - BYTE m_le_bFlag2; // Flags: PR, RS 161 + u8 m_le_bFlag2; // Flags: PR, RS 162 162 // Offset 20 163 - BYTE m_le_bPdoVersion; 163 + u8 m_le_bPdoVersion; 164 164 // Offset 21 165 - BYTE m_le_bRes2; // reserved 165 + u8 m_le_bRes2; // reserved 166 166 // Offset 22 167 167 WORD m_le_wSize; 168 168 // Offset 24 169 - BYTE m_le_abPayload[256 /*D_NMT_IsochrRxMaxPayload_U16 169 + u8 m_le_abPayload[256 /*D_NMT_IsochrRxMaxPayload_U16 170 170 / D_NMT_IsochrTxMaxPayload_U16 */ ]; 171 171 172 172 } PACK_STRUCT tEplPresFrame; 173 173 174 174 typedef struct { 175 175 // Offset 17 176 - BYTE m_le_bNmtStatus; // NMT state 176 + u8 m_le_bNmtStatus; // NMT state 177 177 // Offset 18 178 - BYTE m_le_bFlag1; // Flags: EA, ER 178 + u8 m_le_bFlag1; // Flags: EA, ER 179 179 // Offset 19 180 - BYTE m_le_bFlag2; // Flags: res 180 + u8 m_le_bFlag2; // Flags: res 181 181 // Offset 20 182 - BYTE m_le_bReqServiceId; 182 + u8 m_le_bReqServiceId; 183 183 // Offset 21 184 - BYTE m_le_bReqServiceTarget; 184 + u8 m_le_bReqServiceTarget; 185 185 // Offset 22 186 - BYTE m_le_bEplVersion; 186 + u8 m_le_bEplVersion; 187 187 188 188 } PACK_STRUCT tEplSoaFrame; 189 189 ··· 191 191 WORD m_wEntryType; 192 192 WORD m_wErrorCode; 193 193 tEplNetTime m_TimeStamp; 194 - BYTE m_abAddInfo[8]; 194 + u8 m_abAddInfo[8]; 195 195 196 196 } PACK_STRUCT tEplErrHistoryEntry; 197 197 198 198 typedef struct { 199 199 // Offset 18 200 - BYTE m_le_bFlag1; // Flags: EN, EC 201 - BYTE m_le_bFlag2; // Flags: PR, RS 202 - BYTE m_le_bNmtStatus; // NMT state 203 - BYTE m_le_bRes1[3]; 200 + u8 m_le_bFlag1; // Flags: EN, EC 201 + u8 m_le_bFlag2; // Flags: PR, RS 202 + u8 m_le_bNmtStatus; // NMT state 203 + u8 m_le_bRes1[3]; 204 204 QWORD m_le_qwStaticError; // static error bit field 205 205 tEplErrHistoryEntry m_le_aErrHistoryEntry[14]; 206 206 ··· 208 208 209 209 typedef struct { 210 210 // Offset 18 211 - BYTE m_le_bFlag1; // Flags: res 212 - BYTE m_le_bFlag2; // Flags: PR, RS 213 - BYTE m_le_bNmtStatus; // NMT state 214 - BYTE m_le_bIdentRespFlags; // Flags: FW 215 - BYTE m_le_bEplProfileVersion; 216 - BYTE m_le_bRes1; 211 + u8 m_le_bFlag1; // Flags: res 212 + u8 m_le_bFlag2; // Flags: PR, RS 213 + u8 m_le_bNmtStatus; // NMT state 214 + u8 m_le_bIdentRespFlags; // Flags: FW 215 + u8 m_le_bEplProfileVersion; 216 + u8 m_le_bRes1; 217 217 DWORD m_le_dwFeatureFlags; // NMT_FeatureFlags_U32 218 218 WORD m_le_wMtu; // NMT_CycleTiming_REC.AsyncMTU_U16: C_IP_MIN_MTU - C_IP_MAX_MTU 219 219 WORD m_le_wPollInSize; // NMT_CycleTiming_REC.PReqActPayload_U16 ··· 233 233 DWORD m_le_dwIpAddress; 234 234 DWORD m_le_dwSubnetMask; 235 235 DWORD m_le_dwDefaultGateway; 236 - BYTE m_le_sHostname[32]; 237 - BYTE m_le_abVendorSpecificExt2[48]; 236 + u8 m_le_sHostname[32]; 237 + u8 m_le_abVendorSpecificExt2[48]; 238 238 239 239 } PACK_STRUCT tEplIdentResponse; 240 240 241 241 typedef struct { 242 242 // Offset 18 243 - BYTE m_le_bNmtCommandId; 244 - BYTE m_le_bRes1; 245 - BYTE m_le_abNmtCommandData[32]; 243 + u8 m_le_bNmtCommandId; 244 + u8 m_le_bRes1; 245 + u8 m_le_abNmtCommandData[32]; 246 246 247 247 } PACK_STRUCT tEplNmtCommandService; 248 248 249 249 typedef struct { 250 - BYTE m_le_bReserved; 251 - BYTE m_le_bTransactionId; 252 - BYTE m_le_bFlags; 253 - BYTE m_le_bCommandId; 250 + u8 m_le_bReserved; 251 + u8 m_le_bTransactionId; 252 + u8 m_le_bFlags; 253 + u8 m_le_bCommandId; 254 254 WORD m_le_wSegmentSize; 255 255 WORD m_le_wReserved; 256 - BYTE m_le_abCommandData[8]; // just reserve a minimum number of bytes as a placeholder 256 + u8 m_le_abCommandData[8]; // just reserve a minimum number of bytes as a placeholder 257 257 258 258 } PACK_STRUCT tEplAsySdoCom; 259 259 260 260 // asynchronous SDO Sequence Header 261 261 typedef struct { 262 - BYTE m_le_bRecSeqNumCon; 263 - BYTE m_le_bSendSeqNumCon; 264 - BYTE m_le_abReserved[2]; 262 + u8 m_le_bRecSeqNumCon; 263 + u8 m_le_bSendSeqNumCon; 264 + u8 m_le_abReserved[2]; 265 265 tEplAsySdoCom m_le_abSdoSeqPayload; 266 266 267 267 } PACK_STRUCT tEplAsySdoSeq; 268 268 269 269 typedef struct { 270 270 // Offset 18 271 - BYTE m_le_bNmtCommandId; 272 - BYTE m_le_bTargetNodeId; 273 - BYTE m_le_abNmtCommandData[32]; 271 + u8 m_le_bNmtCommandId; 272 + u8 m_le_bTargetNodeId; 273 + u8 m_le_abNmtCommandData[32]; 274 274 275 275 } PACK_STRUCT tEplNmtRequestService; 276 276 ··· 281 281 tEplNmtCommandService m_NmtCommandService; 282 282 tEplNmtRequestService m_NmtRequestService; 283 283 tEplAsySdoSeq m_SdoSequenceFrame; 284 - BYTE m_le_abPayload[256 /*D_NMT_ASndTxMaxPayload_U16 284 + u8 m_le_abPayload[256 /*D_NMT_ASndTxMaxPayload_U16 285 285 / D_NMT_ASndRxMaxPayload_U16 */ ]; 286 286 287 287 } tEplAsndPayload; 288 288 289 289 typedef struct { 290 290 // Offset 17 291 - BYTE m_le_bServiceId; 291 + u8 m_le_bServiceId; 292 292 // Offset 18 293 293 tEplAsndPayload m_Payload; 294 294 ··· 306 306 307 307 typedef struct { 308 308 // Offset 0 309 - BYTE m_be_abDstMac[6]; // MAC address of the addressed nodes 309 + u8 m_be_abDstMac[6]; // MAC address of the addressed nodes 310 310 // Offset 6 311 - BYTE m_be_abSrcMac[6]; // MAC address of the transmitting node 311 + u8 m_be_abSrcMac[6]; // MAC address of the transmitting node 312 312 // Offset 12 313 313 WORD m_be_wEtherType; // Ethernet message type (big endian) 314 314 // Offset 14 315 - BYTE m_le_bMessageType; // EPL message type 315 + u8 m_le_bMessageType; // EPL message type 316 316 // Offset 15 317 - BYTE m_le_bDstNodeId; // EPL node ID of the addressed nodes 317 + u8 m_le_bDstNodeId; // EPL node ID of the addressed nodes 318 318 // Offset 16 319 - BYTE m_le_bSrcNodeId; // EPL node ID of the transmitting node 319 + u8 m_le_bSrcNodeId; // EPL node ID of the transmitting node 320 320 // Offset 17 321 321 tEplFrameData m_Data; 322 322
+7 -5
drivers/staging/epl/EplInstDef.h
··· 71 71 #ifndef _EPLINSTDEF_H_ 72 72 #define _EPLINSTDEF_H_ 73 73 74 + #include <linux/kernel.h> 75 + 74 76 // ========================================================================= 75 77 // types and macros for generating instances 76 78 // ========================================================================= ··· 86 84 //------------------------------------------------------------------------------------------ 87 85 88 86 typedef void *tEplPtrInstance; 89 - typedef BYTE tEplInstanceHdl; 87 + typedef u8 tEplInstanceHdl; 90 88 91 89 // define const for illegale values 92 90 #define CCM_ILLINSTANCE NULL ··· 216 214 tFastByte InstNumber = 0; \ 217 215 tFastByte i = EPL_MAX_INSTANCES; \ 218 216 do { \ 219 - pInstance->m_InstState = (BYTE) kStateUnused; \ 220 - pInstance->m_bInstIndex = (BYTE) InstNumber; \ 217 + pInstance->m_InstState = (u8) kStateUnused; \ 218 + pInstance->m_bInstIndex = (u8) InstNumber; \ 221 219 pInstance++; InstNumber++; i--; \ 222 220 } while (i != 0); \ 223 221 } ··· 245 243 // this macro defines member variables in instance table which are needed in 246 244 // all modules of Epl stack 247 245 #define EPL_MCO_DECL_INSTANCE_MEMBER() \ 248 - STATIC BYTE m_InstState; \ 249 - STATIC BYTE m_bInstIndex; 246 + STATIC u8 m_InstState; \ 247 + STATIC u8 m_bInstIndex; 250 248 251 249 #define EPL_MCO_INSTANCE_PARAM_IDX_() EPL_MCO_INSTANCE_PARAM_ (EPL_MCO_GLB_VAR (m_bInstIndex)) 252 250 #define EPL_MCO_INSTANCE_PARAM_IDX() EPL_MCO_INSTANCE_PARAM (EPL_MCO_GLB_VAR (m_bInstIndex))
+10 -10
drivers/staging/epl/EplNmtCnu.c
··· 108 108 109 109 static tEplNmtCommand EplNmtCnuGetNmtCommand(tEplFrameInfo * pFrameInfo_p); 110 110 111 - static BOOL EplNmtCnuNodeIdList(BYTE * pbNmtCommandDate_p); 111 + static BOOL EplNmtCnuNodeIdList(u8 * pbNmtCommandDate_p); 112 112 113 113 static tEplKernel EplNmtCnuCommandCb(tEplFrameInfo *pFrameInfo_p); 114 114 ··· 248 248 EPL_MEMSET(&NmtRequestFrame.m_be_abSrcMac[0], 0x00, sizeof(NmtRequestFrame.m_be_abSrcMac)); // set by DLL 249 249 AmiSetWordToBe(&NmtRequestFrame.m_be_wEtherType, 250 250 EPL_C_DLL_ETHERTYPE_EPL); 251 - AmiSetByteToLe(&NmtRequestFrame.m_le_bDstNodeId, (BYTE) EPL_C_ADR_MN_DEF_NODE_ID); // node id of the MN 251 + AmiSetByteToLe(&NmtRequestFrame.m_le_bDstNodeId, (u8) EPL_C_ADR_MN_DEF_NODE_ID); // node id of the MN 252 252 AmiSetByteToLe(&NmtRequestFrame.m_le_bMessageType, 253 - (BYTE) kEplMsgTypeAsnd); 253 + (u8) kEplMsgTypeAsnd); 254 254 AmiSetByteToLe(&NmtRequestFrame.m_Data.m_Asnd.m_le_bServiceId, 255 - (BYTE) kEplDllAsndNmtRequest); 255 + (u8) kEplDllAsndNmtRequest); 256 256 AmiSetByteToLe(&NmtRequestFrame.m_Data.m_Asnd.m_Payload. 257 257 m_NmtRequestService.m_le_bNmtCommandId, 258 - (BYTE) NmtCommand_p); 259 - AmiSetByteToLe(&NmtRequestFrame.m_Data.m_Asnd.m_Payload.m_NmtRequestService.m_le_bTargetNodeId, (BYTE) uiNodeId_p); // target for the nmt command 258 + (u8) NmtCommand_p); 259 + AmiSetByteToLe(&NmtRequestFrame.m_Data.m_Asnd.m_Payload.m_NmtRequestService.m_le_bTargetNodeId, (u8) uiNodeId_p); // target for the nmt command 260 260 EPL_MEMSET(&NmtRequestFrame.m_Data.m_Asnd.m_Payload.m_NmtRequestService. 261 261 m_le_abNmtCommandData[0], 0x00, 262 262 sizeof(NmtRequestFrame.m_Data.m_Asnd.m_Payload. ··· 673 673 // State: 674 674 // 675 675 //--------------------------------------------------------------------------- 676 - static BOOL EplNmtCnuNodeIdList(BYTE * pbNmtCommandDate_p) 676 + static BOOL EplNmtCnuNodeIdList(u8 * pbNmtCommandDate_p) 677 677 { 678 678 BOOL fNodeIdInList; 679 679 unsigned int uiByteOffset; 680 - BYTE bBitOffset; 681 - BYTE bNodeListByte; 680 + u8 bBitOffset; 681 + u8 bNodeListByte; 682 682 683 683 // get byte-offset of the own nodeid in NodeIdList 684 684 // devide though 8 685 685 uiByteOffset = (unsigned int)(EplNmtCnuInstance_g.m_uiNodeId >> 3); 686 686 // get bitoffset 687 - bBitOffset = (BYTE) EplNmtCnuInstance_g.m_uiNodeId % 8; 687 + bBitOffset = (u8) EplNmtCnuInstance_g.m_uiNodeId % 8; 688 688 689 689 bNodeListByte = AmiGetByteFromLe(&pbNmtCommandDate_p[uiByteOffset]); 690 690 if ((bNodeListByte & bBitOffset) == 0) {
+21 -21
drivers/staging/epl/EplNmtMnu.c
··· 94 94 95 95 // TracePoint support for realtime-debugging 96 96 #ifdef _DBG_TRACE_POINTS_ 97 - void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p); 97 + void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); 98 98 void TgtDbgPostTraceValue(DWORD dwTraceValue_p); 99 99 #define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p) 100 100 #define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v) ··· 417 417 { 418 418 tEplKernel Ret = kEplSuccessful; 419 419 tEplFrameInfo FrameInfo; 420 - BYTE abBuffer[EPL_C_DLL_MINSIZE_NMTCMDEXT]; 420 + u8 abBuffer[EPL_C_DLL_MINSIZE_NMTCMDEXT]; 421 421 tEplFrame *pFrame = (tEplFrame *) abBuffer; 422 422 BOOL fSoftDeleteNode = FALSE; 423 423 ··· 437 437 438 438 // build frame 439 439 EPL_MEMSET(pFrame, 0x00, sizeof(abBuffer)); 440 - AmiSetByteToLe(&pFrame->m_le_bDstNodeId, (BYTE) uiNodeId_p); 440 + AmiSetByteToLe(&pFrame->m_le_bDstNodeId, (u8) uiNodeId_p); 441 441 AmiSetByteToLe(&pFrame->m_Data.m_Asnd.m_le_bServiceId, 442 - (BYTE) kEplDllAsndNmtCommand); 442 + (u8) kEplDllAsndNmtCommand); 443 443 AmiSetByteToLe(&pFrame->m_Data.m_Asnd.m_Payload.m_NmtCommandService. 444 - m_le_bNmtCommandId, (BYTE) NmtCommand_p); 444 + m_le_bNmtCommandId, (u8) NmtCommand_p); 445 445 if ((pNmtCommandData_p != NULL) && (uiDataSize_p > 0)) { // copy command data to frame 446 446 EPL_MEMCPY(&pFrame->m_Data.m_Asnd.m_Payload.m_NmtCommandService. 447 447 m_le_abNmtCommandData[0], pNmtCommandData_p, ··· 572 572 tEplKernel Ret = kEplSuccessful; 573 573 tEplNmtMnuIntNodeEvent NodeEvent; 574 574 tEplObdSize ObdSize; 575 - BYTE bNmtState; 575 + u8 bNmtState; 576 576 WORD wErrorCode = EPL_E_NO_ERROR; 577 577 578 578 if ((uiNodeId_p == 0) || (uiNodeId_p >= EPL_C_ADR_BROADCAST)) { ··· 967 967 EPL_NMTMNU_TIMERARG_NODE_MASK); 968 968 if (uiNodeId != 0) { 969 969 tEplObdSize ObdSize; 970 - BYTE bNmtState; 970 + u8 bNmtState; 971 971 tEplNmtMnuNodeInfo *pNodeInfo; 972 972 973 973 pNodeInfo = EPL_NMTMNU_GET_NODEINFO(uiNodeId); ··· 1147 1147 tEplFrame *pFrame = (tEplFrame *) pEvent_p->m_pArg; 1148 1148 unsigned int uiNodeId; 1149 1149 tEplNmtCommand NmtCommand; 1150 - BYTE bNmtState; 1150 + u8 bNmtState; 1151 1151 1152 1152 uiNodeId = AmiGetByteFromLe(&pFrame->m_le_bDstNodeId); 1153 1153 NmtCommand = ··· 1159 1159 switch (NmtCommand) { 1160 1160 case kEplNmtCmdStartNode: 1161 1161 bNmtState = 1162 - (BYTE) (kEplNmtCsOperational & 0xFF); 1162 + (u8) (kEplNmtCsOperational & 0xFF); 1163 1163 break; 1164 1164 1165 1165 case kEplNmtCmdStopNode: 1166 - bNmtState = (BYTE) (kEplNmtCsStopped & 0xFF); 1166 + bNmtState = (u8) (kEplNmtCsStopped & 0xFF); 1167 1167 break; 1168 1168 1169 1169 case kEplNmtCmdEnterPreOperational2: 1170 1170 bNmtState = 1171 - (BYTE) (kEplNmtCsPreOperational2 & 0xFF); 1171 + (u8) (kEplNmtCsPreOperational2 & 0xFF); 1172 1172 break; 1173 1173 1174 1174 case kEplNmtCmdEnableReadyToOperate: 1175 1175 // d.k. do not change expected node state, because of DS 1.0.0 7.3.1.2.1 Plain NMT State Command 1176 1176 // and because node may not change NMT state within EPL_C_NMT_STATE_TOLERANCE 1177 1177 bNmtState = 1178 - (BYTE) (kEplNmtCsPreOperational2 & 0xFF); 1178 + (u8) (kEplNmtCsPreOperational2 & 0xFF); 1179 1179 break; 1180 1180 1181 1181 case kEplNmtCmdResetNode: 1182 1182 case kEplNmtCmdResetCommunication: 1183 1183 case kEplNmtCmdResetConfiguration: 1184 1184 case kEplNmtCmdSwReset: 1185 - bNmtState = (BYTE) (kEplNmtCsNotActive & 0xFF); 1185 + bNmtState = (u8) (kEplNmtCsNotActive & 0xFF); 1186 1186 // EplNmtMnuProcessInternalEvent() sets internal node state to kEplNmtMnuNodeStateUnknown 1187 1187 // after next unresponded IdentRequest/StatusRequest 1188 1188 break; ··· 1927 1927 switch (NodeEvent_p) { 1928 1928 case kEplNmtMnuIntNodeEventIdentResponse: 1929 1929 { 1930 - BYTE bNmtState; 1930 + u8 bNmtState; 1931 1931 1932 1932 EPL_NMTMNU_DBG_POST_TRACE_VALUE(NodeEvent_p, 1933 1933 uiNodeId_p, ··· 1954 1954 ~EPL_NMTMNU_NODE_FLAG_NOT_SCANNED; 1955 1955 } 1956 1956 // update object 0x1F8F NMT_MNNodeExpState_AU8 to PreOp1 (even if local state >= PreOp2) 1957 - bNmtState = (BYTE) (kEplNmtCsPreOperational1 & 0xFF); 1957 + bNmtState = (u8) (kEplNmtCsPreOperational1 & 0xFF); 1958 1958 Ret = 1959 1959 EplObduWriteEntry(0x1F8F, uiNodeId_p, &bNmtState, 1960 1960 1); ··· 2434 2434 2435 2435 case kEplNmtMnuIntNodeEventNmtCmdSent: 2436 2436 { 2437 - BYTE bNmtState; 2437 + u8 bNmtState; 2438 2438 2439 2439 // update expected NMT state with the one that results 2440 2440 // from the sent NMT command 2441 - bNmtState = (BYTE) (NodeNmtState_p & 0xFF); 2441 + bNmtState = (u8) (NodeNmtState_p & 0xFF); 2442 2442 2443 2443 // write object 0x1F8F NMT_MNNodeExpState_AU8 2444 2444 Ret = ··· 2628 2628 { 2629 2629 tEplKernel Ret = kEplSuccessful; 2630 2630 tEplObdSize ObdSize; 2631 - BYTE bNmtState; 2632 - BYTE bNmtStatePrev; 2631 + u8 bNmtState; 2632 + u8 bNmtStatePrev; 2633 2633 tEplNmtState ExpNmtState; 2634 2634 2635 2635 ObdSize = 1; ··· 2640 2640 } 2641 2641 // compute expected NMT state 2642 2642 ExpNmtState = (tEplNmtState) (bNmtState | EPL_NMT_TYPE_CS); 2643 - // compute BYTE of current NMT state 2644 - bNmtState = ((BYTE) NodeNmtState_p & 0xFF); 2643 + // compute u8 of current NMT state 2644 + bNmtState = ((u8) NodeNmtState_p & 0xFF); 2645 2645 2646 2646 if (ExpNmtState == kEplNmtCsNotActive) { // ignore the current state, because the CN shall be not active 2647 2647 Ret = kEplReject;
+1 -1
drivers/staging/epl/EplNmtk.c
··· 88 88 89 89 // TracePoint support for realtime-debugging 90 90 #ifdef _DBG_TRACE_POINTS_ 91 - void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p); 91 + void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); 92 92 void TgtDbgPostTraceValue(DWORD dwTraceValue_p); 93 93 #define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p) 94 94 #define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v)
+20 -20
drivers/staging/epl/EplObd.c
··· 123 123 124 124 EPL_MCO_DECL_INSTANCE_VAR() 125 125 126 - BYTE abEplObdTrashObject_g[8]; 126 + u8 abEplObdTrashObject_g[8]; 127 127 128 128 //--------------------------------------------------------------------------- 129 129 // local function prototypes ··· 833 833 { 834 834 tEplKernel Ret; 835 835 tEplObdSize ObdSize; 836 - BYTE bNodeId; 836 + u8 bNodeId; 837 837 838 838 bNodeId = 0; 839 839 ObdSize = sizeof(bNodeId); ··· 871 871 { 872 872 tEplKernel Ret; 873 873 tEplObdSize ObdSize; 874 - BYTE fHwBool; 875 - BYTE bNodeId; 874 + u8 fHwBool; 875 + u8 bNodeId; 876 876 877 877 // check Node Id 878 878 if (uiNodeId_p == EPL_C_ADR_INVALID) { 879 879 Ret = kEplInvalidNodeId; 880 880 goto Exit; 881 881 } 882 - bNodeId = (BYTE) uiNodeId_p; 883 - ObdSize = sizeof(BYTE); 882 + bNodeId = (u8) uiNodeId_p; 883 + ObdSize = sizeof(u8); 884 884 // write NodeId to OD entry 885 885 Ret = EplObdWriteEntry(EPL_MCO_PTR_INSTANCE_PTR_ 886 886 EPL_OBD_NODE_ID_INDEX, ··· 1072 1072 case kEplObdTypInt8: 1073 1073 case kEplObdTypUInt8: 1074 1074 { 1075 - AmiSetByteToLe(pDstData_p, *((BYTE *) pSrcData)); 1075 + AmiSetByteToLe(pDstData_p, *((u8 *) pSrcData)); 1076 1076 break; 1077 1077 } 1078 1078 ··· 1222 1222 case kEplObdTypInt8: 1223 1223 case kEplObdTypUInt8: 1224 1224 { 1225 - *((BYTE *) pBuffer) = AmiGetByteFromLe(pSrcData_p); 1225 + *((u8 *) pBuffer) = AmiGetByteFromLe(pSrcData_p); 1226 1226 break; 1227 1227 } 1228 1228 ··· 1503 1503 { 1504 1504 1505 1505 tEplObdSize StrLen = 0; 1506 - BYTE *pbString; 1506 + u8 *pbString; 1507 1507 1508 1508 if (pObjData_p == NULL) { 1509 1509 goto Exit; ··· 2094 2094 // Function: EplObdGetObjectSize() 2095 2095 // 2096 2096 // Description: function to get size of object 2097 - // The function determines if an object type an fixed data type (BYTE, WORD, ...) 2097 + // The function determines if an object type an fixed data type (u8, WORD, ...) 2098 2098 // or non fixed object (string, domain). This information is used to decide 2099 2099 // if download data are stored temporary or not. For objects with fixed data length 2100 2100 // and types a value range checking can process. ··· 2463 2463 } else { 2464 2464 Size = EplObdGetObjectSize(pSubIndexEntry_p); 2465 2465 } 2466 - pData = ((BYTE *) pData) + (Size * uiArrayIndex); 2466 + pData = ((u8 *) pData) + (Size * uiArrayIndex); 2467 2467 } 2468 2468 // check if VarEntry 2469 2469 if ((pSubIndexEntry_p->m_Access & kEplObdAccVar) != 0) { ··· 2772 2772 Ret = kEplSuccessful; 2773 2773 2774 2774 // prepare structure for STORE RESTORE callback function 2775 - CbStore.m_bCurrentOdPart = (BYTE) CurrentOdPart_p; 2775 + CbStore.m_bCurrentOdPart = (u8) CurrentOdPart_p; 2776 2776 CbStore.m_pData = NULL; 2777 2777 CbStore.m_ObjSize = 0; 2778 2778 2779 2779 // command of first action depends on direction to access 2780 2780 #if (EPL_OBD_USE_STORE_RESTORE != FALSE) 2781 2781 if (Direction_p == kEplObdDirLoad) { 2782 - CbStore.m_bCommand = (BYTE) kEplObdCommOpenRead; 2782 + CbStore.m_bCommand = (u8) kEplObdCommOpenRead; 2783 2783 2784 2784 // call callback function for previous command 2785 2785 Ret = EplObdCallStoreCallback(EPL_MCO_INSTANCE_PTR_ & CbStore); ··· 2787 2787 goto Exit; 2788 2788 } 2789 2789 // set command for index and subindex loop 2790 - CbStore.m_bCommand = (BYTE) kEplObdCommReadObj; 2790 + CbStore.m_bCommand = (u8) kEplObdCommReadObj; 2791 2791 } else if (Direction_p == kEplObdDirStore) { 2792 - CbStore.m_bCommand = (BYTE) kEplObdCommOpenWrite; 2792 + CbStore.m_bCommand = (u8) kEplObdCommOpenWrite; 2793 2793 2794 2794 // call callback function for previous command 2795 2795 Ret = EplObdCallStoreCallback(EPL_MCO_INSTANCE_PTR_ & CbStore); ··· 2797 2797 goto Exit; 2798 2798 } 2799 2799 // set command for index and subindex loop 2800 - CbStore.m_bCommand = (BYTE) kEplObdCommWriteObj; 2800 + CbStore.m_bCommand = (u8) kEplObdCommWriteObj; 2801 2801 } 2802 2802 #endif // (EPL_OBD_USE_STORE_RESTORE != FALSE) 2803 2803 ··· 2848 2848 } 2849 2849 else 2850 2850 { 2851 - EplObdInitVarEntry ((tEplObdVarEntry *) (((BYTE *) pSubIndex->m_pCurrent) + (sizeof (tEplObdVarEntry) * pSubIndex->m_uiSubIndex)), 2851 + EplObdInitVarEntry ((tEplObdVarEntry *) (((u8 *) pSubIndex->m_pCurrent) + (sizeof (tEplObdVarEntry) * pSubIndex->m_uiSubIndex)), 2852 2852 pSubIndex->m_Type, ObjSize); 2853 2853 } 2854 2854 */ ··· 3003 3003 #if (EPL_OBD_USE_STORE_RESTORE != FALSE) 3004 3004 else { 3005 3005 if (Direction_p == kEplObdDirLoad) { 3006 - CbStore.m_bCommand = (BYTE) kEplObdCommCloseRead; 3006 + CbStore.m_bCommand = (u8) kEplObdCommCloseRead; 3007 3007 } else if (Direction_p == kEplObdDirStore) { 3008 - CbStore.m_bCommand = (BYTE) kEplObdCommCloseWrite; 3008 + CbStore.m_bCommand = (u8) kEplObdCommCloseWrite; 3009 3009 } else if (Direction_p == kEplObdDirRestore) { 3010 - CbStore.m_bCommand = (BYTE) kEplObdCommClear; 3010 + CbStore.m_bCommand = (u8) kEplObdCommClear; 3011 3011 } else { 3012 3012 goto Exit; 3013 3013 }
+4 -4
drivers/staging/epl/EplObd.h
··· 309 309 310 310 typedef struct { 311 311 tEplObdSize m_Size; 312 - BYTE *m_pString; 312 + u8 *m_pString; 313 313 314 314 } tEplObdOString; // 000C 315 315 ··· 327 327 328 328 typedef struct { 329 329 tEplObdSize m_Size; 330 - BYTE *m_pDefString; // $$$ d.k. it is unused, so we could delete it 331 - BYTE *m_pString; 330 + u8 *m_pDefString; // $$$ d.k. it is unused, so we could delete it 331 + u8 *m_pString; 332 332 333 333 } tEplObdOStringDef; 334 334 ··· 431 431 unsigned int m_uiUpperObjIndex; // upper limit of ObjIndex 432 432 tInitTabEntryCallback m_fpInitTabEntry; // will be called if ObjIndex was found 433 433 void *m_pTabBase; // base address of table 434 - unsigned int m_uiEntrySize; // size of table entry // 25-feb-2005 r.d.: expansion from BYTE to WORD necessary for PDO bit mapping 434 + unsigned int m_uiEntrySize; // size of table entry // 25-feb-2005 r.d.: expansion from u8 to WORD necessary for PDO bit mapping 435 435 unsigned int m_uiMaxEntries; // max. tabel entries 436 436 437 437 } tEplObdModulTabParam;
+2 -2
drivers/staging/epl/EplObdMacro.h
··· 105 105 #define EPL_OBD_SUBINDEX_RAM_VSTRING(ind,sub,acc,name,size,val) static char szCur##ind##_##sub##_g[size+1]; \ 106 106 static tEplObdVStringDef xDef##ind##_##sub##_g = {size, val, szCur##ind##_##sub##_g}; 107 107 108 - #define EPL_OBD_SUBINDEX_RAM_OSTRING(ind,sub,acc,name,size) static BYTE bCur##ind##_##sub##_g[size]; \ 109 - static tEplObdOStringDef xDef##ind##_##sub##_g = {size, ((BYTE*)""), bCur##ind##_##sub##_g}; 108 + #define EPL_OBD_SUBINDEX_RAM_OSTRING(ind,sub,acc,name,size) static u8 bCur##ind##_##sub##_g[size]; \ 109 + static tEplObdOStringDef xDef##ind##_##sub##_g = {size, ((u8*)""), bCur##ind##_##sub##_g}; 110 110 #define EPL_OBD_SUBINDEX_RAM_DOMAIN(ind,sub,acc,name) 111 111 #define EPL_OBD_SUBINDEX_RAM_USERDEF(ind,sub,typ,acc,dtyp,name,val) static dtyp xDef##ind##_##sub##_g = val; 112 112 #define EPL_OBD_SUBINDEX_RAM_USERDEF_RG(ind,sub,typ,acc,dtyp,name,val,low,high) static dtyp xDef##ind##_##sub##_g[3] = {val,low,high};
+1 -1
drivers/staging/epl/EplObdu.c
··· 275 275 // 276 276 //--------------------------------------------------------------------------- 277 277 EPLDLLEXPORT void EplObduInitVarEntry(tEplObdVarEntry *pVarEntry_p, 278 - BYTE bType_p, tEplObdSize ObdSize_p) 278 + u8 bType_p, tEplObdSize ObdSize_p) 279 279 { 280 280 EplObduCalInitVarEntry(pVarEntry_p, bType_p, ObdSize_p); 281 281 }
+1 -1
drivers/staging/epl/EplObduCal.c
··· 297 297 // 298 298 //--------------------------------------------------------------------------- 299 299 EPLDLLEXPORT void EplObduCalInitVarEntry(tEplObdVarEntry *pVarEntry_p, 300 - BYTE bType_p, tEplObdSize ObdSize_p) 300 + u8 bType_p, tEplObdSize ObdSize_p) 301 301 { 302 302 #if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_OBDK)) != 0) 303 303 EplObdInitVarEntry(pVarEntry_p, bType_p, ObdSize_p);
+1 -1
drivers/staging/epl/EplPdo.h
··· 104 104 // TPDO: 0x00=PRes, MN: CnNodeId=PReq 105 105 106 106 BOOL m_fTxRx; 107 - BYTE m_bMappingVersion; 107 + u8 m_bMappingVersion; 108 108 unsigned int m_uiMaxMappingEntries; // maximum number of mapping entries, i.e. size of m_aPdoMapping 109 109 tEplPdoMapping m_aPdoMapping[1]; 110 110
+7 -7
drivers/staging/epl/EplPdok.c
··· 319 319 WORD wBitSize; 320 320 WORD wVarSize; 321 321 QWORD qwObjectMapping; 322 - BYTE bMappSubindex; 323 - BYTE bObdSubindex; 322 + u8 bMappSubindex; 323 + u8 bObdSubindex; 324 324 WORD wObdMappIndex; 325 325 WORD wObdCommIndex; 326 326 WORD wPdoId; 327 - BYTE bObdData; 328 - BYTE bObjectCount; 329 - BYTE bFrameData; 327 + u8 bObdData; 328 + u8 bObjectCount; 329 + u8 bFrameData; 330 330 BOOL fValid; 331 331 tEplObdSize ObdSize; 332 332 tEplFrame *pFrame; ··· 441 441 (WORD) (qwObjectMapping & 442 442 0x000000000000FFFFLL); 443 443 bObdSubindex = 444 - (BYTE) ((qwObjectMapping & 444 + (u8) ((qwObjectMapping & 445 445 0x0000000000FF0000LL) >> 16); 446 446 wBitOffset = 447 447 (WORD) ((qwObjectMapping & ··· 571 571 (WORD) (qwObjectMapping & 572 572 0x000000000000FFFFLL); 573 573 bObdSubindex = 574 - (BYTE) ((qwObjectMapping & 574 + (u8) ((qwObjectMapping & 575 575 0x0000000000FF0000LL) >> 16); 576 576 wBitOffset = 577 577 (WORD) ((qwObjectMapping &
+4 -4
drivers/staging/epl/EplPdou.c
··· 232 232 unsigned int uiPdoId; 233 233 unsigned int uiIndexType; 234 234 tEplObdSize ObdSize; 235 - BYTE bObjectCount; 235 + u8 bObjectCount; 236 236 QWORD qwObjectMapping; 237 237 tEplObdAccess AccessType; 238 - BYTE bMappSubindex; 238 + u8 bMappSubindex; 239 239 unsigned int uiCurPdoSize; 240 240 WORD wMaxPdoSize; 241 241 unsigned int uiSubIndex; ··· 293 293 if (pParam_p->m_uiSubIndex == 0) { // object mapping count accessed 294 294 295 295 // PDO is enabled or disabled 296 - bObjectCount = *((BYTE *) pParam_p->m_pArg); 296 + bObjectCount = *((u8 *) pParam_p->m_pArg); 297 297 298 298 if (bObjectCount == 0) { // PDO shall be disabled 299 299 ··· 399 399 { 400 400 tEplKernel Ret = kEplSuccessful; 401 401 tEplObdSize ObdSize; 402 - BYTE bObjectCount; 402 + u8 bObjectCount; 403 403 404 404 ObdSize = 1; 405 405 // read number of mapped objects from OD; this indicates if the PDO is valid
+2 -2
drivers/staging/epl/EplSdoAsndu.c
··· 339 339 // own node id not needed -> filled by DLL 340 340 341 341 // set message type 342 - AmiSetByteToLe(&pSrcData_p->m_le_bMessageType, (BYTE) kEplMsgTypeAsnd); // ASnd == 0x06 342 + AmiSetByteToLe(&pSrcData_p->m_le_bMessageType, (u8) kEplMsgTypeAsnd); // ASnd == 0x06 343 343 // target node id 344 344 AmiSetByteToLe(&pSrcData_p->m_le_bDstNodeId, 345 - (BYTE) SdoAsndInstance_g. 345 + (u8) SdoAsndInstance_g. 346 346 m_auiSdoAsndConnection[uiArray]); 347 347 // set source-nodeid (filled by DLL 0) 348 348 AmiSetByteToLe(&pSrcData_p->m_le_bSrcNodeId, 0x00);
+14 -14
drivers/staging/epl/EplSdoAsySequ.c
··· 128 128 129 129 // structure for History-Buffer 130 130 typedef struct { 131 - BYTE m_bFreeEntries; 132 - BYTE m_bWrite; // index of the next free buffer entry 133 - BYTE m_bAck; // index of the next message which should become acknowledged 134 - BYTE m_bRead; // index between m_bAck and m_bWrite to the next message for retransmission 135 - BYTE m_aabHistoryFrame[EPL_SDO_HISTORY_SIZE] 131 + u8 m_bFreeEntries; 132 + u8 m_bWrite; // index of the next free buffer entry 133 + u8 m_bAck; // index of the next message which should become acknowledged 134 + u8 m_bRead; // index between m_bAck and m_bWrite to the next message for retransmission 135 + u8 m_aabHistoryFrame[EPL_SDO_HISTORY_SIZE] 136 136 [EPL_SEQ_HISTROY_FRAME_SIZE]; 137 137 unsigned int m_auiFrameSize[EPL_SDO_HISTORY_SIZE]; 138 138 ··· 152 152 typedef struct { 153 153 tEplSdoConHdl m_ConHandle; 154 154 tEplAsySdoState m_SdoState; 155 - BYTE m_bRecSeqNum; // name from view of the communication partner 156 - BYTE m_bSendSeqNum; // name from view of the communication partner 155 + u8 m_bRecSeqNum; // name from view of the communication partner 156 + u8 m_bSendSeqNum; // name from view of the communication partner 157 157 tEplAsySdoConHistory m_SdoConHistory; 158 158 tEplTimerHdl m_EplTimerHdl; 159 159 unsigned int m_uiRetryCount; // retry counter ··· 214 214 unsigned int uiSize_p); 215 215 216 216 static tEplKernel EplSdoAsyAckFrameToHistory(tEplAsySdoSeqCon * pAsySdoSeqCon_p, 217 - BYTE bRecSeqNumber_p); 217 + u8 bRecSeqNumber_p); 218 218 219 219 static tEplKernel EplSdoAsyReadFromHistory(tEplAsySdoSeqCon * pAsySdoSeqCon_p, 220 220 tEplFrame ** ppFrame_p, ··· 1498 1498 // frame received 1499 1499 case kAsySdoSeqEventFrameRec: 1500 1500 { 1501 - BYTE bSendSeqNumCon = 1501 + u8 bSendSeqNumCon = 1502 1502 AmiGetByteFromLe(&pRecFrame_p-> 1503 1503 m_le_bSendSeqNumCon); 1504 1504 ··· 2016 2016 BOOL fFrameInHistory_p) 2017 2017 { 2018 2018 tEplKernel Ret; 2019 - BYTE abFrame[EPL_SEQ_FRAME_SIZE]; 2019 + u8 abFrame[EPL_SEQ_FRAME_SIZE]; 2020 2020 tEplFrame *pEplFrame; 2021 2021 unsigned int uiFreeEntries; 2022 2022 ··· 2154 2154 #endif 2155 2155 2156 2156 EPL_DBGLVL_SDO_TRACE2("Handle: 0x%x , First Databyte 0x%x\n", ConHdl_p, 2157 - ((BYTE *) pSdoSeqData_p)[0]); 2157 + ((u8 *) pSdoSeqData_p)[0]); 2158 2158 2159 2159 // search controll structure for this connection 2160 2160 pAsySdoSeqCon = &AsySdoSequInstance_g.m_AsySdoConnection[uiCount]; ··· 2328 2328 // 2329 2329 //--------------------------------------------------------------------------- 2330 2330 static tEplKernel EplSdoAsyAckFrameToHistory(tEplAsySdoSeqCon * pAsySdoSeqCon_p, 2331 - BYTE bRecSeqNumber_p) 2331 + u8 bRecSeqNumber_p) 2332 2332 { 2333 2333 tEplKernel Ret; 2334 2334 tEplAsySdoConHistory *pHistory; 2335 - BYTE bAckIndex; 2336 - BYTE bCurrentSeqNum; 2335 + u8 bAckIndex; 2336 + u8 bCurrentSeqNum; 2337 2337 2338 2338 Ret = kEplSuccessful; 2339 2339
+29 -29
drivers/staging/epl/EplSdoComu.c
··· 156 156 typedef struct { 157 157 tEplSdoSeqConHdl m_SdoSeqConHdl; // if != 0 -> entry used 158 158 tEplSdoComState m_SdoComState; 159 - BYTE m_bTransactionId; 159 + u8 m_bTransactionId; 160 160 unsigned int m_uiNodeId; // NodeId of the target 161 161 // -> needed to reinit connection 162 162 // after timeout 163 163 tEplSdoTransType m_SdoTransType; // Auto, Expedited, Segmented 164 164 tEplSdoServiceType m_SdoServiceType; // WriteByIndex, ReadByIndex 165 165 tEplSdoType m_SdoProtType; // protocol layer: Auto, Udp, Asnd, Pdo 166 - BYTE *m_pData; // pointer to data 166 + u8 *m_pData; // pointer to data 167 167 unsigned int m_uiTransSize; // number of bytes 168 168 // to transfer 169 169 unsigned int m_uiTransferredByte; // number of bytes ··· 765 765 goto Exit; 766 766 } 767 767 // save pointer to abort code 768 - pSdoComCon->m_pData = (BYTE *) & dwAbortCode_p; 768 + pSdoComCon->m_pData = (u8 *) & dwAbortCode_p; 769 769 770 770 Ret = EplSdoComProcessIntern(SdoComConHdl_p, 771 771 kEplSdoComConEventAbort, ··· 998 998 { 999 999 tEplKernel Ret; 1000 1000 tEplSdoComCon *pSdoComCon; 1001 - BYTE bFlag; 1001 + u8 bFlag; 1002 1002 1003 1003 #if(((EPL_MODULE_INTEGRATION) & (EPL_MODULE_SDOS)) != 0) 1004 1004 DWORD dwAbortCode; ··· 1137 1137 pSdoComCon-> 1138 1138 m_pData 1139 1139 = 1140 - (BYTE 1140 + (u8 1141 1141 *) 1142 1142 & 1143 1143 dwAbortCode; ··· 1282 1282 if (pSdoComCon-> 1283 1283 m_dwLastAbortCode == 1284 1284 0) { 1285 - ( /*(BYTE*) */ 1285 + ( /*(u8*) */ 1286 1286 pSdoComCon-> 1287 1287 m_pData) += 1288 1288 uiSize; ··· 1320 1320 pSdoComCon-> 1321 1321 m_pData 1322 1322 = 1323 - (BYTE 1323 + (u8 1324 1324 *) 1325 1325 & 1326 1326 pSdoComCon-> ··· 1986 1986 if (Ret == kEplObdSubindexNotExist) { // subentry doesn't exist 1987 1987 dwAbortCode = EPL_SDOAC_SUB_INDEX_NOT_EXIST; 1988 1988 // send abort 1989 - pSdoComCon_p->m_pData = (BYTE *) & dwAbortCode; 1989 + pSdoComCon_p->m_pData = (u8 *) & dwAbortCode; 1990 1990 Ret = EplSdoComServerSendFrameIntern(pSdoComCon_p, 1991 1991 uiIndex, 1992 1992 uiSubindex, ··· 1995 1995 } else if (Ret != kEplSuccessful) { // entry doesn't exist 1996 1996 dwAbortCode = EPL_SDOAC_OBJECT_NOT_EXIST; 1997 1997 // send abort 1998 - pSdoComCon_p->m_pData = (BYTE *) & dwAbortCode; 1998 + pSdoComCon_p->m_pData = (u8 *) & dwAbortCode; 1999 1999 Ret = EplSdoComServerSendFrameIntern(pSdoComCon_p, 2000 2000 uiIndex, 2001 2001 uiSubindex, ··· 2013 2013 dwAbortCode = EPL_SDOAC_UNSUPPORTED_ACCESS; 2014 2014 } 2015 2015 // send abort 2016 - pSdoComCon_p->m_pData = (BYTE *) & dwAbortCode; 2016 + pSdoComCon_p->m_pData = (u8 *) & dwAbortCode; 2017 2017 Ret = EplSdoComServerSendFrameIntern(pSdoComCon_p, 2018 2018 uiIndex, 2019 2019 uiSubindex, ··· 2050 2050 // error -> abort 2051 2051 dwAbortCode = EPL_SDOAC_GENERAL_ERROR; 2052 2052 // send abort 2053 - pSdoComCon_p->m_pData = (BYTE *) & dwAbortCode; 2053 + pSdoComCon_p->m_pData = (u8 *) & dwAbortCode; 2054 2054 Ret = EplSdoComServerSendFrameIntern(pSdoComCon_p, 2055 2055 uiIndex, 2056 2056 uiSubindex, ··· 2089 2089 tEplSdoComSendType SendType_p) 2090 2090 { 2091 2091 tEplKernel Ret; 2092 - BYTE abFrame[EPL_MAX_SDO_FRAME_SIZE]; 2092 + u8 abFrame[EPL_MAX_SDO_FRAME_SIZE]; 2093 2093 tEplFrame *pFrame; 2094 2094 tEplAsySdoCom *pCommandFrame; 2095 2095 unsigned int uiSizeOfFrame; 2096 - BYTE bFlag; 2096 + u8 bFlag; 2097 2097 2098 2098 Ret = kEplSuccessful; 2099 2099 ··· 2373 2373 tEplObdSize EntrySize; 2374 2374 tEplObdAccess AccessType; 2375 2375 DWORD dwAbortCode; 2376 - BYTE *pbSrcData; 2376 + u8 *pbSrcData; 2377 2377 2378 2378 dwAbortCode = 0; 2379 2379 ··· 2426 2426 pSdoComCon_p->m_dwLastAbortCode = EPL_SDOAC_SUB_INDEX_NOT_EXIST; 2427 2427 // send abort 2428 2428 // d.k. This is wrong: k.t. not needed send abort on end of write 2429 - /*pSdoComCon_p->m_pData = (BYTE*)pSdoComCon_p->m_dwLastAbortCode; 2429 + /*pSdoComCon_p->m_pData = (u8*)pSdoComCon_p->m_dwLastAbortCode; 2430 2430 Ret = EplSdoComServerSendFrameIntern(pSdoComCon_p, 2431 2431 uiIndex, 2432 2432 uiSubindex, ··· 2437 2437 // send abort 2438 2438 // d.k. This is wrong: k.t. not needed send abort on end of write 2439 2439 /* 2440 - pSdoComCon_p->m_pData = (BYTE*)&dwAbortCode; 2440 + pSdoComCon_p->m_pData = (u8*)&dwAbortCode; 2441 2441 Ret = EplSdoComServerSendFrameIntern(pSdoComCon_p, 2442 2442 uiIndex, 2443 2443 uiSubindex, ··· 2457 2457 } 2458 2458 // send abort 2459 2459 // d.k. This is wrong: k.t. not needed send abort on end of write 2460 - /*pSdoComCon_p->m_pData = (BYTE*)&dwAbortCode; 2460 + /*pSdoComCon_p->m_pData = (u8*)&dwAbortCode; 2461 2461 Ret = EplSdoComServerSendFrameIntern(pSdoComCon_p, 2462 2462 uiIndex, 2463 2463 uiSubindex, ··· 2548 2548 EPL_SDOAC_DATA_TYPE_LENGTH_TOO_HIGH; 2549 2549 // send abort 2550 2550 // d.k. This is wrong: k.t. not needed send abort on end of write 2551 - /*pSdoComCon_p->m_pData = (BYTE*)&dwAbortCode; 2551 + /*pSdoComCon_p->m_pData = (u8*)&dwAbortCode; 2552 2552 Ret = EplSdoComServerSendFrameIntern(pSdoComCon_p, 2553 2553 uiIndex, 2554 2554 uiSubindex, ··· 2570 2570 EPL_SDOAC_GENERAL_ERROR; 2571 2571 // send abort 2572 2572 // d.k. This is wrong: k.t. not needed send abort on end of write 2573 - /* pSdoComCon_p->m_pData = (BYTE*)&pSdoComCon_p->m_dwLastAbortCode; 2573 + /* pSdoComCon_p->m_pData = (u8*)&pSdoComCon_p->m_dwLastAbortCode; 2574 2574 Ret = EplSdoComServerSendFrameIntern(pSdoComCon_p, 2575 2575 uiIndex, 2576 2576 uiSubindex, ··· 2585 2585 pSdoComCon_p->m_uiTransSize -= uiBytesToTransfer; 2586 2586 2587 2587 // update target pointer 2588 - ( /*(BYTE*) */ pSdoComCon_p->m_pData) += uiBytesToTransfer; 2588 + ( /*(u8*) */ pSdoComCon_p->m_pData) += uiBytesToTransfer; 2589 2589 2590 2590 // send acknowledge without any Command layer data 2591 2591 Ret = EplSdoAsySeqSendData(pSdoComCon_p->m_SdoSeqConHdl, ··· 2597 2597 if (pSdoComCon_p->m_dwLastAbortCode != 0) { 2598 2598 // send abort 2599 2599 pSdoComCon_p->m_pData = 2600 - (BYTE *) & pSdoComCon_p->m_dwLastAbortCode; 2600 + (u8 *) & pSdoComCon_p->m_dwLastAbortCode; 2601 2601 Ret = 2602 2602 EplSdoComServerSendFrameIntern(pSdoComCon_p, uiIndex, 2603 2603 uiSubindex, ··· 2634 2634 static tEplKernel EplSdoComClientSend(tEplSdoComCon * pSdoComCon_p) 2635 2635 { 2636 2636 tEplKernel Ret; 2637 - BYTE abFrame[EPL_MAX_SDO_FRAME_SIZE]; 2637 + u8 abFrame[EPL_MAX_SDO_FRAME_SIZE]; 2638 2638 tEplFrame *pFrame; 2639 2639 tEplAsySdoCom *pCommandFrame; 2640 2640 unsigned int uiSizeOfFrame; 2641 - BYTE bFlags; 2642 - BYTE *pbPayload; 2641 + u8 bFlags; 2642 + u8 *pbPayload; 2643 2643 2644 2644 Ret = kEplSuccessful; 2645 2645 ··· 2683 2683 m_uiTargetIndex); 2684 2684 pbPayload += 2; 2685 2685 AmiSetByteToLe(pbPayload, 2686 - (BYTE) pSdoComCon_p-> 2686 + (u8) pSdoComCon_p-> 2687 2687 m_uiTargetSubIndex); 2688 2688 // calc size 2689 2689 uiSizeOfFrame += 4; ··· 2725 2725 m_uiTargetIndex); 2726 2726 pbPayload += 2; 2727 2727 AmiSetByteToLe(pbPayload, 2728 - (BYTE) 2728 + (u8) 2729 2729 pSdoComCon_p-> 2730 2730 m_uiTargetSubIndex); 2731 2731 // on byte for reserved ··· 2764 2764 m_uiTargetIndex); 2765 2765 pbPayload += 2; 2766 2766 AmiSetByteToLe(pbPayload, 2767 - (BYTE) 2767 + (u8) 2768 2768 pSdoComCon_p-> 2769 2769 m_uiTargetSubIndex); 2770 2770 // + 2 -> one byte for subindex and one byte reserved ··· 2943 2943 tEplAsySdoCom * pAsySdoCom_p) 2944 2944 { 2945 2945 tEplKernel Ret; 2946 - BYTE bBuffer; 2946 + u8 bBuffer; 2947 2947 unsigned int uiBuffer; 2948 2948 unsigned int uiDataSize; 2949 2949 unsigned long ulBuffer; ··· 3219 3219 DWORD dwAbortCode_p) 3220 3220 { 3221 3221 tEplKernel Ret; 3222 - BYTE abFrame[EPL_MAX_SDO_FRAME_SIZE]; 3222 + u8 abFrame[EPL_MAX_SDO_FRAME_SIZE]; 3223 3223 tEplFrame *pFrame; 3224 3224 tEplAsySdoCom *pCommandFrame; 3225 3225 unsigned int uiSizeOfFrame;
+1 -1
drivers/staging/epl/EplSdoUdpu.c
··· 550 550 int iError; 551 551 int iCount; 552 552 int iFreeEntry; 553 - BYTE abBuffer[EPL_MAX_SDO_REC_FRAME_SIZE]; 553 + u8 abBuffer[EPL_MAX_SDO_REC_FRAME_SIZE]; 554 554 unsigned int uiSize; 555 555 tEplSdoConHdl SdoConHdl; 556 556
+3 -3
drivers/staging/epl/EplTarget.h
··· 134 134 // functions for ethernet driver 135 135 tEplKernel TgtInitEthIsr(void); 136 136 void TgtFreeEthIsr(void); 137 - void TgtEnableGlobalInterrupt(BYTE fEnable_p); 138 - void TgtEnableEthInterrupt0(BYTE fEnable_p, unsigned int uiInterruptMask_p); 139 - void TgtEnableEthInterrupt1(BYTE fEnable_p, unsigned int uiInterruptMask_p); 137 + void TgtEnableGlobalInterrupt(u8 fEnable_p); 138 + void TgtEnableEthInterrupt0(u8 fEnable_p, unsigned int uiInterruptMask_p); 139 + void TgtEnableEthInterrupt1(u8 fEnable_p, unsigned int uiInterruptMask_p); 140 140 141 141 #endif // #ifndef _EPLTARGET_H_
+1 -1
drivers/staging/epl/ShbIpc-LinuxKernel.c
··· 677 677 pShbMemHeader = 678 678 ShbIpcGetShbMemHeader(ShbIpcGetShbMemInst(pShbInstance_p)); 679 679 if (pShbMemHeader != NULL) { 680 - pShbShMemPtr = (BYTE *) pShbMemHeader + sizeof(tShbMemHeader); 680 + pShbShMemPtr = (u8 *) pShbMemHeader + sizeof(tShbMemHeader); 681 681 } else { 682 682 pShbShMemPtr = NULL; 683 683 }
+1 -1
drivers/staging/epl/TimerHighReskX86.c
··· 103 103 104 104 // TracePoint support for realtime-debugging 105 105 #ifdef _DBG_TRACE_POINTS_ 106 - void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p); 106 + void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); 107 107 void TgtDbgPostTraceValue(DWORD dwTraceValue_p); 108 108 #define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p) 109 109 #define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v)
+58 -58
drivers/staging/epl/amix86.c
··· 115 115 // 116 116 //--------------------------------------------------------------------------- 117 117 118 - //------------< write BYTE in big endian >-------------------------- 118 + //------------< write u8 in big endian >-------------------------- 119 119 /* 120 - void AmiSetByteToBe (void *pAddr_p, BYTE bByteVal_p) 120 + void AmiSetByteToBe (void *pAddr_p, u8 bByteVal_p) 121 121 { 122 122 123 - *(BYTE *)pAddr_p = bByteVal_p; 123 + *(u8 *)pAddr_p = bByteVal_p; 124 124 125 125 } 126 126 */ ··· 173 173 // 174 174 //--------------------------------------------------------------------------- 175 175 176 - //------------< write BYTE in little endian >-------------------------- 176 + //------------< write u8 in little endian >-------------------------- 177 177 /* 178 - void AmiSetByteToLe (void *pAddr_p, BYTE bByteVal_p) 178 + void AmiSetByteToLe (void *pAddr_p, u8 bByteVal_p) 179 179 { 180 180 181 - *(BYTE *)pAddr_p = bByteVal_p; 181 + *(u8 *)pAddr_p = bByteVal_p; 182 182 183 183 } 184 184 */ ··· 220 220 // 221 221 //--------------------------------------------------------------------------- 222 222 223 - //------------< read BYTE in big endian >--------------------------- 223 + //------------< read u8 in big endian >--------------------------- 224 224 /* 225 - BYTE AmiGetByteFromBe (void *pAddr_p) 225 + u8 AmiGetByteFromBe (void *pAddr_p) 226 226 { 227 227 228 - return ( *(BYTE *)pAddr_p ); 228 + return ( *(u8 *)pAddr_p ); 229 229 230 230 } 231 231 */ ··· 279 279 // 280 280 //--------------------------------------------------------------------------- 281 281 282 - //------------< read BYTE in little endian >--------------------------- 282 + //------------< read u8 in little endian >--------------------------- 283 283 /* 284 - BYTE AmiGetByteFromLe (void *pAddr_p) 284 + u8 AmiGetByteFromLe (void *pAddr_p) 285 285 { 286 286 287 - return ( *(BYTE *)pAddr_p ); 287 + return ( *(u8 *)pAddr_p ); 288 288 289 289 } 290 290 */ ··· 326 326 327 327 void AmiSetDword24ToBe(void *pAddr_p, DWORD dwDwordVal_p) 328 328 { 329 - ((BYTE *) pAddr_p)[0] = ((BYTE *) & dwDwordVal_p)[2]; 330 - ((BYTE *) pAddr_p)[1] = ((BYTE *) & dwDwordVal_p)[1]; 331 - ((BYTE *) pAddr_p)[2] = ((BYTE *) & dwDwordVal_p)[0]; 329 + ((u8 *) pAddr_p)[0] = ((u8 *) & dwDwordVal_p)[2]; 330 + ((u8 *) pAddr_p)[1] = ((u8 *) & dwDwordVal_p)[1]; 331 + ((u8 *) pAddr_p)[2] = ((u8 *) & dwDwordVal_p)[0]; 332 332 } 333 333 334 334 //--------------------------------------------------------------------------- ··· 348 348 349 349 void AmiSetDword24ToLe(void *pAddr_p, DWORD dwDwordVal_p) 350 350 { 351 - ((BYTE *) pAddr_p)[0] = ((BYTE *) & dwDwordVal_p)[0]; 352 - ((BYTE *) pAddr_p)[1] = ((BYTE *) & dwDwordVal_p)[1]; 353 - ((BYTE *) pAddr_p)[2] = ((BYTE *) & dwDwordVal_p)[2]; 351 + ((u8 *) pAddr_p)[0] = ((u8 *) & dwDwordVal_p)[0]; 352 + ((u8 *) pAddr_p)[1] = ((u8 *) & dwDwordVal_p)[1]; 353 + ((u8 *) pAddr_p)[2] = ((u8 *) & dwDwordVal_p)[2]; 354 354 } 355 355 356 356 //--------------------------------------------------------------------------- ··· 417 417 //--------------------------------------------------------------------------- 418 418 void AmiSetQword64ToBe(void *pAddr_p, QWORD qwQwordVal_p) 419 419 { 420 - ((BYTE *) pAddr_p)[0] = ((BYTE *) & qwQwordVal_p)[7]; 421 - ((BYTE *) pAddr_p)[1] = ((BYTE *) & qwQwordVal_p)[6]; 422 - ((BYTE *) pAddr_p)[2] = ((BYTE *) & qwQwordVal_p)[5]; 423 - ((BYTE *) pAddr_p)[3] = ((BYTE *) & qwQwordVal_p)[4]; 424 - ((BYTE *) pAddr_p)[4] = ((BYTE *) & qwQwordVal_p)[3]; 425 - ((BYTE *) pAddr_p)[5] = ((BYTE *) & qwQwordVal_p)[2]; 426 - ((BYTE *) pAddr_p)[6] = ((BYTE *) & qwQwordVal_p)[1]; 427 - ((BYTE *) pAddr_p)[7] = ((BYTE *) & qwQwordVal_p)[0]; 420 + ((u8 *) pAddr_p)[0] = ((u8 *) & qwQwordVal_p)[7]; 421 + ((u8 *) pAddr_p)[1] = ((u8 *) & qwQwordVal_p)[6]; 422 + ((u8 *) pAddr_p)[2] = ((u8 *) & qwQwordVal_p)[5]; 423 + ((u8 *) pAddr_p)[3] = ((u8 *) & qwQwordVal_p)[4]; 424 + ((u8 *) pAddr_p)[4] = ((u8 *) & qwQwordVal_p)[3]; 425 + ((u8 *) pAddr_p)[5] = ((u8 *) & qwQwordVal_p)[2]; 426 + ((u8 *) pAddr_p)[6] = ((u8 *) & qwQwordVal_p)[1]; 427 + ((u8 *) pAddr_p)[7] = ((u8 *) & qwQwordVal_p)[0]; 428 428 } 429 429 430 430 //--------------------------------------------------------------------------- ··· 466 466 { 467 467 tqwStruct qwStruct; 468 468 469 - ((BYTE *) & qwStruct.m_qwQword)[0] = ((BYTE *) pAddr_p)[7]; 470 - ((BYTE *) & qwStruct.m_qwQword)[1] = ((BYTE *) pAddr_p)[6]; 471 - ((BYTE *) & qwStruct.m_qwQword)[2] = ((BYTE *) pAddr_p)[5]; 472 - ((BYTE *) & qwStruct.m_qwQword)[3] = ((BYTE *) pAddr_p)[4]; 473 - ((BYTE *) & qwStruct.m_qwQword)[4] = ((BYTE *) pAddr_p)[3]; 474 - ((BYTE *) & qwStruct.m_qwQword)[5] = ((BYTE *) pAddr_p)[2]; 475 - ((BYTE *) & qwStruct.m_qwQword)[6] = ((BYTE *) pAddr_p)[1]; 476 - ((BYTE *) & qwStruct.m_qwQword)[7] = ((BYTE *) pAddr_p)[0]; 469 + ((u8 *) & qwStruct.m_qwQword)[0] = ((u8 *) pAddr_p)[7]; 470 + ((u8 *) & qwStruct.m_qwQword)[1] = ((u8 *) pAddr_p)[6]; 471 + ((u8 *) & qwStruct.m_qwQword)[2] = ((u8 *) pAddr_p)[5]; 472 + ((u8 *) & qwStruct.m_qwQword)[3] = ((u8 *) pAddr_p)[4]; 473 + ((u8 *) & qwStruct.m_qwQword)[4] = ((u8 *) pAddr_p)[3]; 474 + ((u8 *) & qwStruct.m_qwQword)[5] = ((u8 *) pAddr_p)[2]; 475 + ((u8 *) & qwStruct.m_qwQword)[6] = ((u8 *) pAddr_p)[1]; 476 + ((u8 *) & qwStruct.m_qwQword)[7] = ((u8 *) pAddr_p)[0]; 477 477 478 478 return (qwStruct.m_qwQword); 479 479 } ··· 520 520 void AmiSetQword40ToBe(void *pAddr_p, QWORD qwQwordVal_p) 521 521 { 522 522 523 - ((BYTE *) pAddr_p)[0] = ((BYTE *) & qwQwordVal_p)[4]; 524 - ((BYTE *) pAddr_p)[1] = ((BYTE *) & qwQwordVal_p)[3]; 525 - ((BYTE *) pAddr_p)[2] = ((BYTE *) & qwQwordVal_p)[2]; 526 - ((BYTE *) pAddr_p)[3] = ((BYTE *) & qwQwordVal_p)[1]; 527 - ((BYTE *) pAddr_p)[4] = ((BYTE *) & qwQwordVal_p)[0]; 523 + ((u8 *) pAddr_p)[0] = ((u8 *) & qwQwordVal_p)[4]; 524 + ((u8 *) pAddr_p)[1] = ((u8 *) & qwQwordVal_p)[3]; 525 + ((u8 *) pAddr_p)[2] = ((u8 *) & qwQwordVal_p)[2]; 526 + ((u8 *) pAddr_p)[3] = ((u8 *) & qwQwordVal_p)[1]; 527 + ((u8 *) pAddr_p)[4] = ((u8 *) & qwQwordVal_p)[0]; 528 528 529 529 } 530 530 ··· 547 547 { 548 548 549 549 ((DWORD *) pAddr_p)[0] = ((DWORD *) & qwQwordVal_p)[0]; 550 - ((BYTE *) pAddr_p)[4] = ((BYTE *) & qwQwordVal_p)[4]; 550 + ((u8 *) pAddr_p)[4] = ((u8 *) & qwQwordVal_p)[4]; 551 551 552 552 } 553 553 ··· 621 621 void AmiSetQword48ToBe(void *pAddr_p, QWORD qwQwordVal_p) 622 622 { 623 623 624 - ((BYTE *) pAddr_p)[0] = ((BYTE *) & qwQwordVal_p)[5]; 625 - ((BYTE *) pAddr_p)[1] = ((BYTE *) & qwQwordVal_p)[4]; 626 - ((BYTE *) pAddr_p)[2] = ((BYTE *) & qwQwordVal_p)[3]; 627 - ((BYTE *) pAddr_p)[3] = ((BYTE *) & qwQwordVal_p)[2]; 628 - ((BYTE *) pAddr_p)[4] = ((BYTE *) & qwQwordVal_p)[1]; 629 - ((BYTE *) pAddr_p)[5] = ((BYTE *) & qwQwordVal_p)[0]; 624 + ((u8 *) pAddr_p)[0] = ((u8 *) & qwQwordVal_p)[5]; 625 + ((u8 *) pAddr_p)[1] = ((u8 *) & qwQwordVal_p)[4]; 626 + ((u8 *) pAddr_p)[2] = ((u8 *) & qwQwordVal_p)[3]; 627 + ((u8 *) pAddr_p)[3] = ((u8 *) & qwQwordVal_p)[2]; 628 + ((u8 *) pAddr_p)[4] = ((u8 *) & qwQwordVal_p)[1]; 629 + ((u8 *) pAddr_p)[5] = ((u8 *) & qwQwordVal_p)[0]; 630 630 631 631 } 632 632 ··· 723 723 void AmiSetQword56ToBe(void *pAddr_p, QWORD qwQwordVal_p) 724 724 { 725 725 726 - ((BYTE *) pAddr_p)[0] = ((BYTE *) & qwQwordVal_p)[6]; 727 - ((BYTE *) pAddr_p)[1] = ((BYTE *) & qwQwordVal_p)[5]; 728 - ((BYTE *) pAddr_p)[2] = ((BYTE *) & qwQwordVal_p)[4]; 729 - ((BYTE *) pAddr_p)[3] = ((BYTE *) & qwQwordVal_p)[3]; 730 - ((BYTE *) pAddr_p)[4] = ((BYTE *) & qwQwordVal_p)[2]; 731 - ((BYTE *) pAddr_p)[5] = ((BYTE *) & qwQwordVal_p)[1]; 732 - ((BYTE *) pAddr_p)[6] = ((BYTE *) & qwQwordVal_p)[0]; 726 + ((u8 *) pAddr_p)[0] = ((u8 *) & qwQwordVal_p)[6]; 727 + ((u8 *) pAddr_p)[1] = ((u8 *) & qwQwordVal_p)[5]; 728 + ((u8 *) pAddr_p)[2] = ((u8 *) & qwQwordVal_p)[4]; 729 + ((u8 *) pAddr_p)[3] = ((u8 *) & qwQwordVal_p)[3]; 730 + ((u8 *) pAddr_p)[4] = ((u8 *) & qwQwordVal_p)[2]; 731 + ((u8 *) pAddr_p)[5] = ((u8 *) & qwQwordVal_p)[1]; 732 + ((u8 *) pAddr_p)[6] = ((u8 *) & qwQwordVal_p)[0]; 733 733 734 734 } 735 735 ··· 753 753 754 754 ((DWORD *) pAddr_p)[0] = ((DWORD *) & qwQwordVal_p)[0]; 755 755 ((WORD *) pAddr_p)[2] = ((WORD *) & qwQwordVal_p)[2]; 756 - ((BYTE *) pAddr_p)[6] = ((BYTE *) & qwQwordVal_p)[6]; 756 + ((u8 *) pAddr_p)[6] = ((u8 *) & qwQwordVal_p)[6]; 757 757 758 758 } 759 759 ··· 827 827 void AmiSetTimeOfDay(void *pAddr_p, tTimeOfDay *pTimeOfDay_p) 828 828 { 829 829 830 - AmiSetDwordToLe(((BYTE *) pAddr_p), pTimeOfDay_p->m_dwMs & 0x0FFFFFFF); 831 - AmiSetWordToLe(((BYTE *) pAddr_p) + 4, pTimeOfDay_p->m_wDays); 830 + AmiSetDwordToLe(((u8 *) pAddr_p), pTimeOfDay_p->m_dwMs & 0x0FFFFFFF); 831 + AmiSetWordToLe(((u8 *) pAddr_p) + 4, pTimeOfDay_p->m_wDays); 832 832 833 833 } 834 834 ··· 850 850 void AmiGetTimeOfDay(void *pAddr_p, tTimeOfDay *pTimeOfDay_p) 851 851 { 852 852 853 - pTimeOfDay_p->m_dwMs = AmiGetDwordFromLe(((BYTE *) pAddr_p)) & 0x0FFFFFFF; 854 - pTimeOfDay_p->m_wDays = AmiGetWordFromLe(((BYTE *) pAddr_p) + 4); 853 + pTimeOfDay_p->m_dwMs = AmiGetDwordFromLe(((u8 *) pAddr_p)) & 0x0FFFFFFF; 854 + pTimeOfDay_p->m_wDays = AmiGetWordFromLe(((u8 *) pAddr_p) + 4); 855 855 856 856 } 857 857
+13 -13
drivers/staging/epl/demo_main.c
··· 118 118 119 119 // TracePoint support for realtime-debugging 120 120 #ifdef _DBG_TRACE_POINTS_ 121 - void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p); 121 + void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); 122 122 #define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p) 123 123 #else 124 124 #define TGT_DBG_SIGNAL_TRACE_POINT(p) ··· 148 148 // modul globale vars 149 149 //--------------------------------------------------------------------------- 150 150 151 - const BYTE abMacAddr[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; 151 + const u8 abMacAddr[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; 152 152 153 - BYTE bVarIn1_l; 154 - BYTE bVarOut1_l; 155 - BYTE bVarOut1Old_l; 156 - BYTE bModeSelect_l; // state of the pushbuttons to select the mode 157 - BYTE bSpeedSelect_l; // state of the pushbuttons to increase/decrease the speed 158 - BYTE bSpeedSelectOld_l; // old state of the pushbuttons 153 + u8 bVarIn1_l; 154 + u8 bVarOut1_l; 155 + u8 bVarOut1Old_l; 156 + u8 bModeSelect_l; // state of the pushbuttons to select the mode 157 + u8 bSpeedSelect_l; // state of the pushbuttons to increase/decrease the speed 158 + u8 bSpeedSelectOld_l; // old state of the pushbuttons 159 159 DWORD dwLeds_l; // current state of all LEDs 160 - BYTE bLedsRow1_l; // current state of the LEDs in row 1 161 - BYTE bLedsRow2_l; // current state of the LEDs in row 2 162 - BYTE abSelect_l[3]; // pushbuttons from CNs 160 + u8 bLedsRow1_l; // current state of the LEDs in row 1 161 + u8 bLedsRow2_l; // current state of the LEDs in row 2 162 + u8 abSelect_l[3]; // pushbuttons from CNs 163 163 164 164 DWORD dwMode_l; // current mode 165 165 int iCurCycleCount_l; // current cycle count 166 166 int iMaxCycleCount_l; // maximum cycle count (i.e. number of cycles until next light movement step) 167 167 int iToggle; // indicates the light movement direction 168 168 169 - BYTE abDomain_l[3000]; 169 + u8 abDomain_l[3000]; 170 170 171 171 static wait_queue_head_t WaitQueueShutdown_g; // wait queue for tEplNmtEventSwitchOff 172 172 static atomic_t AtomicShutdown_g = ATOMIC_INIT(FALSE); ··· 263 263 EplApiInitParam.m_uiSizeOfStruct = sizeof(EplApiInitParam); 264 264 EPL_MEMCPY(EplApiInitParam.m_abMacAddress, abMacAddr, 265 265 sizeof(EplApiInitParam.m_abMacAddress)); 266 - // EplApiInitParam.m_abMacAddress[5] = (BYTE) EplApiInitParam.m_uiNodeId; 266 + // EplApiInitParam.m_abMacAddress[5] = (u8) EplApiInitParam.m_uiNodeId; 267 267 EplApiInitParam.m_dwFeatureFlags = -1; 268 268 EplApiInitParam.m_dwCycleLen = uiCycleLen_g; // required for error detection 269 269 EplApiInitParam.m_uiIsochrTxMaxPayload = 100; // const
+10 -10
drivers/staging/epl/edrv.h
··· 104 104 unsigned int m_uiTxMsgLen; // IN: length of message to be send (set for each transmit call) 105 105 // ---------------------- 106 106 unsigned int m_uiBufferNumber; // OUT: number of the buffer, set by ethernetdriver 107 - BYTE *m_pbBuffer; // OUT: pointer to the buffer, set by ethernetdriver 107 + u8 *m_pbBuffer; // OUT: pointer to the buffer, set by ethernetdriver 108 108 tEplNetTime m_NetTime; // OUT: Timestamp of end of transmission, set by ethernetdriver 109 109 // ---------------------- 110 110 unsigned int m_uiMaxBufferLen; // IN/OUT: maximum length of the buffer ··· 114 114 typedef struct _tEdrvRxBuffer { 115 115 tEdrvBufferInFrame m_BufferInFrame; // OUT position of received buffer in an ethernet-frame 116 116 unsigned int m_uiRxMsgLen; // OUT: length of received buffer (without CRC) 117 - BYTE *m_pbBuffer; // OUT: pointer to the buffer, set by ethernetdriver 117 + u8 *m_pbBuffer; // OUT: pointer to the buffer, set by ethernetdriver 118 118 tEplNetTime m_NetTime; // OUT: Timestamp of end of receiption 119 119 120 120 } tEdrvRxBuffer; 121 121 122 - //typedef void (*tEdrvRxHandler) (BYTE bBufferInFrame_p, tBufferDescr * pbBuffer_p); 123 - //typedef void (*tEdrvRxHandler) (BYTE bBufferInFrame_p, BYTE * pbEthernetData_p, WORD wDataLen_p); 122 + //typedef void (*tEdrvRxHandler) (u8 bBufferInFrame_p, tBufferDescr * pbBuffer_p); 123 + //typedef void (*tEdrvRxHandler) (u8 bBufferInFrame_p, u8 * pbEthernetData_p, WORD wDataLen_p); 124 124 typedef void (*tEdrvRxHandler) (tEdrvRxBuffer * pRxBuffer_p); 125 125 typedef void (*tEdrvTxHandler) (tEdrvTxBuffer * pTxBuffer_p); 126 126 127 127 // format of init structure 128 128 typedef struct { 129 - BYTE m_abMyMacAddr[6]; // the own MAC address 129 + u8 m_abMyMacAddr[6]; // the own MAC address 130 130 131 - // BYTE m_bNoOfRxBuffDescr; // number of entries in rx bufferdescriptor table 131 + // u8 m_bNoOfRxBuffDescr; // number of entries in rx bufferdescriptor table 132 132 // tBufferDescr * m_pRxBuffDescrTable; // rx bufferdescriptor table 133 133 // WORD m_wRxBufferSize; // size of the whole rx buffer 134 134 ··· 145 145 146 146 tEplKernel EdrvShutdown(void); 147 147 148 - tEplKernel EdrvDefineRxMacAddrEntry(BYTE * pbMacAddr_p); 149 - tEplKernel EdrvUndefineRxMacAddrEntry(BYTE * pbMacAddr_p); 148 + tEplKernel EdrvDefineRxMacAddrEntry(u8 * pbMacAddr_p); 149 + tEplKernel EdrvUndefineRxMacAddrEntry(u8 * pbMacAddr_p); 150 150 151 - //tEplKernel EdrvDefineUnicastEntry (BYTE * pbUCEntry_p); 152 - //tEplKernel EdrvUndfineUnicastEntry (BYTE * pbUCEntry_p); 151 + //tEplKernel EdrvDefineUnicastEntry (u8 * pbUCEntry_p); 152 + //tEplKernel EdrvUndfineUnicastEntry (u8 * pbUCEntry_p); 153 153 154 154 tEplKernel EdrvAllocTxMsgBuffer(tEdrvTxBuffer * pBuffer_p); 155 155 tEplKernel EdrvReleaseTxMsgBuffer(tEdrvTxBuffer * pBuffer_p);
-3
drivers/staging/epl/global.h
··· 30 30 #define TRACE printk 31 31 32 32 // --- logic types --- 33 - #ifndef BYTE 34 - #define BYTE unsigned char 35 - #endif 36 33 #ifndef WORD 37 34 #define WORD unsigned short int 38 35 #endif
+4 -4
drivers/staging/epl/kernel/EplDllk.h
··· 85 85 typedef tEplKernel(*tEplDllkCbAsync) (tEplFrameInfo * pFrameInfo_p); 86 86 87 87 typedef struct { 88 - BYTE m_be_abSrcMac[6]; 88 + u8 m_be_abSrcMac[6]; 89 89 90 90 } tEplDllkInitParam; 91 91 ··· 100 100 unsigned long m_ulDllErrorEvents; 101 101 tEplNmtState m_NmtState; 102 102 WORD m_wPresPayloadLimit; 103 - BYTE m_be_abMacAddr[6]; 104 - BYTE m_bSoaFlag1; 103 + u8 m_be_abMacAddr[6]; 104 + u8 m_bSoaFlag1; 105 105 BOOL m_fSoftDelete; // delete node after error and ignore error 106 106 107 107 }; ··· 154 154 155 155 tEplKernel EplDllkSoftDeleteNode(unsigned int uiNodeId_p); 156 156 157 - tEplKernel EplDllkSetFlag1OfNode(unsigned int uiNodeId_p, BYTE bSoaFlag1_p); 157 + tEplKernel EplDllkSetFlag1OfNode(unsigned int uiNodeId_p, u8 bSoaFlag1_p); 158 158 159 159 tEplKernel EplDllkGetFirstNodeInfo(tEplDllkNodeInfo ** ppNodeInfo_p); 160 160
+1 -1
drivers/staging/epl/kernel/EplDllkCal.h
··· 124 124 tEplKernel EplDllkCalAsyncClearQueues(void); 125 125 126 126 tEplKernel EplDllkCalIssueRequest(tEplDllReqServiceId Service_p, 127 - unsigned int uiNodeId_p, BYTE bSoaFlag1_p); 127 + unsigned int uiNodeId_p, u8 bSoaFlag1_p); 128 128 129 129 tEplKernel EplDllkCalAsyncGetSoaRequest(tEplDllReqServiceId * pReqServiceId_p, 130 130 unsigned int *puiNodeId_p);
+1 -1
drivers/staging/epl/kernel/EplObdk.h
··· 85 85 // global variables 86 86 //--------------------------------------------------------------------------- 87 87 88 - extern BYTE abEplObdTrashObject_g[8]; 88 + extern u8 abEplObdTrashObject_g[8]; 89 89 90 90 //--------------------------------------------------------------------------- 91 91 // function prototypes
+2 -2
drivers/staging/epl/proc_fs.c
··· 145 145 static int EplLinProcWrite(struct file *file, const char __user * buffer, 146 146 unsigned long count, void *data); 147 147 148 - void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p); 148 + void TgtDbgSignalTracePoint(u8 bTracePointNumber_p); 149 149 void TgtDbgPostTraceValue(DWORD dwTraceValue_p); 150 150 151 151 EPLDLLEXPORT DWORD EplIdentuGetRunningRequests(void); ··· 191 191 //--------------------------------------------------------------------------- 192 192 193 193 #ifdef _DBG_TRACE_POINTS_ 194 - void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p) 194 + void TgtDbgSignalTracePoint(u8 bTracePointNumber_p) 195 195 { 196 196 197 197 if (bTracePointNumber_p >=
+10 -10
drivers/staging/epl/user/EplCfgMau.h
··· 133 133 tEplSdoComConHdl m_SdoComConHdl; // handle for sdo connection 134 134 DWORD m_dwLastAbortCode; 135 135 unsigned int m_uiLastIndex; // last index of configuration, to compair with actual index 136 - BYTE *m_pbConcise; // Ptr to concise DCF 137 - BYTE *m_pbActualIndex; // Ptr to actual index in the DCF segment 136 + u8 *m_pbConcise; // Ptr to concise DCF 137 + u8 *m_pbActualIndex; // Ptr to actual index in the DCF segment 138 138 tfpEplCfgMaCb m_pfnCfgMaCb; // Ptr to CfgMa Callback, is call if configuration finished 139 139 tEplKernel m_EplKernelError; // errorcode 140 140 DWORD m_dwNumValueCopy; // numeric values are copied in this variable 141 141 unsigned int m_uiPdoNodeId; // buffer for PDO node id 142 - BYTE m_bNrOfMappedObject; // number of mapped objects 142 + u8 m_bNrOfMappedObject; // number of mapped objects 143 143 unsigned int m_uiNodeId; // Epl node addresse 144 144 tEplSdocState m_SdocState; // bitcoded state of the SDO transfer 145 145 unsigned int m_uiLastSubIndex; // last subindex of configuration 146 146 BOOL m_fOneTranferOk; // atleased one transfer was successful 147 - BYTE m_bEventFlag; // for Eventsignaling to the State Maschine 147 + u8 m_bEventFlag; // for Eventsignaling to the State Maschine 148 148 DWORD m_dwCntObjectInDcf; // number of Objects in DCF 149 149 tEplCfgMaIndexType m_SkipCfg; // TRUE if a adsitional Configurationprocess 150 150 // have to insert e.g. PDO-mapping ··· 199 199 // Parameters: uiNodeId_p = NodeId of the node to configure 200 200 // pbConcise_p = pointer to DCF 201 201 // fpCfgMaCb_p = pointer to callback function (should not be NULL) 202 - // SizeOfConcise_p = size of DCF in BYTE -> for future use 202 + // SizeOfConcise_p = size of DCF in u8 -> for future use 203 203 // DcfType_p = type of the DCF 204 204 // 205 205 // Returns: tCopKernel = error code 206 206 //--------------------------------------------------------------------------- 207 207 tEplKernel EplCfgMaStartConfig(unsigned int uiNodeId_p, 208 - BYTE * pbConcise_p, 208 + u8 * pbConcise_p, 209 209 tfpEplCfgMaCb fpCfgMaCb_p, 210 210 tEplObdSize SizeOfConcise_p, 211 211 tEplCfgMaDcfTyp DcfType_p); ··· 235 235 // Parameters: uiNodeId_p = NodeId of the node to configure 236 236 // pbConcise_p = pointer to DCF 237 237 // fpCfgMaCb_p = pointer to callback function (should not be NULL) 238 - // SizeOfConcise_p = size of DCF in BYTE -> for future use 238 + // SizeOfConcise_p = size of DCF in u8 -> for future use 239 239 // DcfType_p = type of the DCF 240 240 // 241 241 // Returns: tCopKernel = error code 242 242 //--------------------------------------------------------------------------- 243 243 tEplKernel EplCfgMaStartConfigNodeDcf(unsigned int uiNodeId_p, 244 - BYTE * pbConcise_p, 244 + u8 * pbConcise_p, 245 245 tfpEplCfgMaCb fpCfgMaCb_p, 246 246 tEplObdSize SizeOfConcise_p, 247 247 tEplCfgMaDcfTyp DcfType_p); ··· 253 253 // 254 254 // Parameters: uiNodeId_p = NodeId of the node to configure 255 255 // pbConcise_p = pointer to DCF 256 - // SizeOfConcise_p = size of DCF in BYTE -> for future use 256 + // SizeOfConcise_p = size of DCF in u8 -> for future use 257 257 // DcfType_p = type of the DCF 258 258 // 259 259 // Returns: tCopKernel = error code 260 260 //--------------------------------------------------------------------------- 261 261 tEplKernel EplCfgMaLinkDcf(unsigned int uiNodeId_p, 262 - BYTE * pbConcise_p, 262 + u8 * pbConcise_p, 263 263 tEplObdSize SizeOfConcise_p, 264 264 tEplCfgMaDcfTyp DcfType_p); 265 265
+1 -1
drivers/staging/epl/user/EplDlluCal.h
··· 110 110 tEplKernel EplDlluCalSoftDeleteNode(unsigned int uiNodeId_p); 111 111 112 112 tEplKernel EplDlluCalIssueRequest(tEplDllReqServiceId Service_p, 113 - unsigned int uiNodeId_p, BYTE bSoaFlag1_p); 113 + unsigned int uiNodeId_p, u8 bSoaFlag1_p); 114 114 115 115 #endif 116 116
+1 -1
drivers/staging/epl/user/EplObdu.h
··· 117 117 118 118 // --------------------------------------------------------------------- 119 119 EPLDLLEXPORT void EplObduInitVarEntry(tEplObdVarEntry *pVarEntry_p, 120 - BYTE bType_p, tEplObdSize ObdSize_p); 120 + u8 bType_p, tEplObdSize ObdSize_p); 121 121 122 122 // --------------------------------------------------------------------- 123 123 EPLDLLEXPORT tEplObdSize EplObduGetDataSize(unsigned int uiIndex_p,
+1 -1
drivers/staging/epl/user/EplObduCal.h
··· 106 106 EPLDLLEXPORT tEplKernel EplObduCalRegisterUserOd(tEplObdEntryPtr pUserOd_p); 107 107 //--------------------------------------------------------------------------- 108 108 EPLDLLEXPORT void EplObduCalInitVarEntry(tEplObdVarEntry *pVarEntry_p, 109 - BYTE bType_p, tEplObdSize ObdSize_p); 109 + u8 bType_p, tEplObdSize ObdSize_p); 110 110 //--------------------------------------------------------------------------- 111 111 EPLDLLEXPORT tEplObdSize EplObduCalGetDataSize(unsigned int uiIndex_p, 112 112 unsigned int uiSubIndex_p);
+4 -4
drivers/staging/epl/user/EplPdou.h
··· 97 97 // returns error if bPdoId_p is already valid 98 98 /* 99 99 tEplKernel EplPdouSetMapping( 100 - BYTE bPdoId_p, BOOL fTxRx_p, BYTE bNodeId, BYTE bMappingVersion, 101 - tEplPdoMapping * pMapping_p, BYTE bMaxEntries_p); 100 + u8 bPdoId_p, BOOL fTxRx_p, u8 bNodeId, u8 bMappingVersion, 101 + tEplPdoMapping * pMapping_p, u8 bMaxEntries_p); 102 102 103 103 tEplKernel EplPdouGetMapping( 104 - BYTE bPdoId_p, BOOL fTxRx_p, BYTE * pbNodeId, BYTE * pbMappingVersion, 105 - tEplPdoMapping * pMapping_p, BYTE * pbMaxEntries_p); 104 + u8 bPdoId_p, BOOL fTxRx_p, u8 * pbNodeId, u8 * pbMappingVersion, 105 + tEplPdoMapping * pMapping_p, u8 * pbMaxEntries_p); 106 106 */ 107 107 108 108 #endif // #ifndef _EPL_PDOU_H_