mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
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>
This commit is contained in:
@@ -634,13 +634,13 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void DumpData(char *szStr_p, BYTE *pbData_p, WORD wSize_p);
|
||||
void DumpData(char *szStr_p, u8 *pbData_p, WORD wSize_p);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // von extern "C"
|
||||
#endif
|
||||
#define DEBUG_DUMP_DATA(lvl,str,ptr,siz) if ((DEBUG_GLB_LVL() & (lvl))==(lvl)) \
|
||||
DumpData (str, (BYTE *)(ptr), (WORD)(siz));
|
||||
DumpData (str, (u8 *)(ptr), (WORD)(siz));
|
||||
#else
|
||||
|
||||
#define DEBUG_DUMP_DATA(lvl,str,ptr,siz)
|
||||
|
||||
@@ -234,7 +234,7 @@
|
||||
|
||||
// TracePoint support for realtime-debugging
|
||||
#ifdef _DBG_TRACE_POINTS_
|
||||
void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p);
|
||||
void TgtDbgSignalTracePoint(u8 bTracePointNumber_p);
|
||||
void TgtDbgPostTraceValue(DWORD dwTraceValue_p);
|
||||
#define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p)
|
||||
#define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v)
|
||||
@@ -282,9 +282,9 @@ typedef struct
|
||||
typedef struct {
|
||||
struct pci_dev *m_pPciDev; // pointer to PCI device structure
|
||||
void *m_pIoAddr; // pointer to register space of Ethernet controller
|
||||
BYTE *m_pbRxBuf; // pointer to Rx buffer
|
||||
u8 *m_pbRxBuf; // pointer to Rx buffer
|
||||
dma_addr_t m_pRxBufDma;
|
||||
BYTE *m_pbTxBuf; // pointer to Tx buffer
|
||||
u8 *m_pbTxBuf; // pointer to Tx buffer
|
||||
dma_addr_t m_pTxBufDma;
|
||||
BOOL m_afTxBufUsed[EDRV_MAX_TX_BUFFERS];
|
||||
unsigned int m_uiCurTxDesc;
|
||||
@@ -359,7 +359,7 @@ static struct pci_driver EdrvDriver = {
|
||||
// local function prototypes
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
static BYTE EdrvCalcHash(BYTE * pbMAC_p);
|
||||
static u8 EdrvCalcHash(u8 * pbMAC_p);
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -453,11 +453,11 @@ tEplKernel EdrvShutdown(void)
|
||||
// State:
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
tEplKernel EdrvDefineRxMacAddrEntry(BYTE * pbMacAddr_p)
|
||||
tEplKernel EdrvDefineRxMacAddrEntry(u8 * pbMacAddr_p)
|
||||
{
|
||||
tEplKernel Ret = kEplSuccessful;
|
||||
DWORD dwData;
|
||||
BYTE bHash;
|
||||
u8 bHash;
|
||||
|
||||
bHash = EdrvCalcHash(pbMacAddr_p);
|
||||
/*
|
||||
@@ -494,11 +494,11 @@ tEplKernel EdrvDefineRxMacAddrEntry(BYTE * pbMacAddr_p)
|
||||
// State:
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
tEplKernel EdrvUndefineRxMacAddrEntry(BYTE * pbMacAddr_p)
|
||||
tEplKernel EdrvUndefineRxMacAddrEntry(u8 * pbMacAddr_p)
|
||||
{
|
||||
tEplKernel Ret = kEplSuccessful;
|
||||
DWORD dwData;
|
||||
BYTE bHash;
|
||||
u8 bHash;
|
||||
|
||||
bHash = EdrvCalcHash(pbMacAddr_p);
|
||||
|
||||
@@ -720,7 +720,7 @@ tEplKernel EdrvTxMsgStart(tEdrvTxBuffer * pBuffer_p)
|
||||
//---------------------------------------------------------------------------
|
||||
static void EdrvReinitRx(void)
|
||||
{
|
||||
BYTE bCmd;
|
||||
u8 bCmd;
|
||||
|
||||
// simply switch off and on the receiver
|
||||
// this will reset the CAPR register
|
||||
@@ -765,7 +765,7 @@ static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p,
|
||||
DWORD dwTxStatus;
|
||||
DWORD dwRxStatus;
|
||||
WORD wCurRx;
|
||||
BYTE *pbRxBuf;
|
||||
u8 *pbRxBuf;
|
||||
unsigned int uiLength;
|
||||
int iHandled = IRQ_HANDLED;
|
||||
|
||||
@@ -1215,15 +1215,15 @@ static void EdrvRemoveOne(struct pci_dev *pPciDev)
|
||||
//#define CRC32_POLY 0xEDB88320 //
|
||||
// G(x) = x32 + x26 + x23 + x22 + x16 + x12 + x11 + x10 + x8 + x7 + x5 + x4 + x2 + x + 1
|
||||
|
||||
static BYTE EdrvCalcHash(BYTE * pbMAC_p)
|
||||
static u8 EdrvCalcHash(u8 * pbMAC_p)
|
||||
{
|
||||
DWORD dwByteCounter;
|
||||
DWORD dwBitCounter;
|
||||
DWORD dwData;
|
||||
DWORD dwCrc;
|
||||
DWORD dwCarry;
|
||||
BYTE *pbData;
|
||||
BYTE bHash;
|
||||
u8 *pbData;
|
||||
u8 bHash;
|
||||
|
||||
pbData = pbMAC_p;
|
||||
|
||||
@@ -1246,7 +1246,7 @@ static BYTE EdrvCalcHash(BYTE * pbMAC_p)
|
||||
// printk("MyCRC = 0x%08lX\n", dwCrc);
|
||||
// only upper 6 bits (HASH_BITS) are used
|
||||
// which point to specific bit in the hash registers
|
||||
bHash = (BYTE) ((dwCrc >> (32 - HASH_BITS)) & 0x3f);
|
||||
bHash = (u8) ((dwCrc >> (32 - HASH_BITS)) & 0x3f);
|
||||
|
||||
return bHash;
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
typedef struct {
|
||||
WORD m_wStatus; // control / status --- used by edrv, do not change in application
|
||||
WORD m_wLength; // transfer length
|
||||
BYTE *m_pbData; // buffer address
|
||||
u8 *m_pbData; // buffer address
|
||||
} tBufferDescr;
|
||||
|
||||
#if ((TARGET_HARDWARE & TGT_CPU_MASK_) == TGT_CPU_5282)
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
// function prototypes
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
void EdrvRxInterruptHandler(BYTE bBufferInFrame_p, BYTE * pbEthernetData_p,
|
||||
void EdrvRxInterruptHandler(u8 bBufferInFrame_p, u8 * pbEthernetData_p,
|
||||
WORD wDataLen_p);
|
||||
|
||||
#endif // #ifndef _EDRVSIM_H_
|
||||
|
||||
@@ -139,7 +139,7 @@ typedef struct {
|
||||
unsigned int m_uiSizeOfStruct;
|
||||
BOOL m_fAsyncOnly; // do not need to register PRes
|
||||
unsigned int m_uiNodeId; // local node ID
|
||||
BYTE m_abMacAddress[6]; // local MAC address
|
||||
u8 m_abMacAddress[6]; // local MAC address
|
||||
|
||||
// 0x1F82: NMT_FeatureFlags_U32
|
||||
DWORD m_dwFeatureFlags;
|
||||
@@ -189,8 +189,8 @@ typedef struct {
|
||||
DWORD m_dwIpAddress;
|
||||
DWORD m_dwSubnetMask;
|
||||
DWORD m_dwDefaultGateway;
|
||||
BYTE m_sHostname[32];
|
||||
BYTE m_abVendorSpecificExt2[48];
|
||||
u8 m_sHostname[32];
|
||||
u8 m_abVendorSpecificExt2[48];
|
||||
|
||||
char *m_pszDevName; // NMT_ManufactDevName_VS (0x1008/0 local OD)
|
||||
char *m_pszHwVersion; // NMT_ManufactHwVers_VS (0x1009/0 local OD)
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
|
||||
16.09.2002 -as
|
||||
To save code space the functions AmiSetByte and AmiGetByte
|
||||
are replaced by macros. For targets which assign BYTE by
|
||||
are replaced by macros. For targets which assign u8 by
|
||||
an 16Bit type, the definition of macros must changed to
|
||||
functions.
|
||||
|
||||
@@ -105,10 +105,10 @@ extern "C" {
|
||||
//
|
||||
// To save code space the function AmiSetByte is replaced by
|
||||
// an macro.
|
||||
// void AmiSetByte (void * pAddr_p, BYTE bByteVal_p);
|
||||
// void AmiSetByte (void * pAddr_p, u8 bByteVal_p);
|
||||
|
||||
#define AmiSetByteToBe(pAddr_p, bByteVal_p) {*(BYTE *)(pAddr_p) = (bByteVal_p);}
|
||||
#define AmiSetByteToLe(pAddr_p, bByteVal_p) {*(BYTE *)(pAddr_p) = (bByteVal_p);}
|
||||
#define AmiSetByteToBe(pAddr_p, bByteVal_p) {*(u8 *)(pAddr_p) = (bByteVal_p);}
|
||||
#define AmiSetByteToLe(pAddr_p, bByteVal_p) {*(u8 *)(pAddr_p) = (bByteVal_p);}
|
||||
|
||||
void AmiSetWordToBe(void *pAddr_p, WORD wWordVal_p);
|
||||
void AmiSetDwordToBe(void *pAddr_p, DWORD dwDwordVal_p);
|
||||
@@ -121,10 +121,10 @@ void AmiSetDwordToLe(void *pAddr_p, DWORD dwDwordVal_p);
|
||||
//
|
||||
// To save code space the function AmiGetByte is replaced by
|
||||
// an macro.
|
||||
// BYTE AmiGetByte (void * pAddr_p);
|
||||
// u8 AmiGetByte (void * pAddr_p);
|
||||
|
||||
#define AmiGetByteFromBe(pAddr_p) (*(BYTE *)(pAddr_p))
|
||||
#define AmiGetByteFromLe(pAddr_p) (*(BYTE *)(pAddr_p))
|
||||
#define AmiGetByteFromBe(pAddr_p) (*(u8 *)(pAddr_p))
|
||||
#define AmiGetByteFromLe(pAddr_p) (*(u8 *)(pAddr_p))
|
||||
|
||||
WORD AmiGetWordFromBe(void *pAddr_p);
|
||||
DWORD AmiGetDwordFromBe(void *pAddr_p);
|
||||
|
||||
@@ -556,9 +556,9 @@ tEplKernel EplApiLinkObject(unsigned int uiObjIndex_p,
|
||||
tEplObdSize *pEntrySize_p,
|
||||
unsigned int uiFirstSubindex_p)
|
||||
{
|
||||
BYTE bVarEntries;
|
||||
BYTE bIndexEntries;
|
||||
BYTE *pbData;
|
||||
u8 bVarEntries;
|
||||
u8 bIndexEntries;
|
||||
u8 *pbData;
|
||||
unsigned int uiSubindex;
|
||||
tEplVarParam VarParam;
|
||||
tEplObdSize EntrySize;
|
||||
@@ -574,8 +574,8 @@ tEplKernel EplApiLinkObject(unsigned int uiObjIndex_p,
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
pbData = (BYTE *)pVar_p;
|
||||
bVarEntries = (BYTE) * puiVarEntries_p;
|
||||
pbData = (u8 *)pVar_p;
|
||||
bVarEntries = (u8) * puiVarEntries_p;
|
||||
UsedSize = 0;
|
||||
|
||||
// init VarParam structure with default values
|
||||
@@ -607,7 +607,7 @@ tEplKernel EplApiLinkObject(unsigned int uiObjIndex_p,
|
||||
// object actually has.
|
||||
if ((bIndexEntries > (bVarEntries + uiFirstSubindex_p - 1)) &&
|
||||
(bVarEntries != 0x00)) {
|
||||
bIndexEntries = (BYTE) (bVarEntries + uiFirstSubindex_p - 1);
|
||||
bIndexEntries = (u8) (bVarEntries + uiFirstSubindex_p - 1);
|
||||
}
|
||||
// map entries
|
||||
for (uiSubindex = uiFirstSubindex_p; uiSubindex <= bIndexEntries;
|
||||
@@ -1012,9 +1012,9 @@ tEplKernel EplApiCbObdAccess(tEplObdCbParam *pParam_p)
|
||||
case 0x1F9E: // NMT_ResetCmd_U8
|
||||
{
|
||||
if (pParam_p->m_ObdEvent == kEplObdEvPreWrite) {
|
||||
BYTE bNmtCommand;
|
||||
u8 bNmtCommand;
|
||||
|
||||
bNmtCommand = *((BYTE *) pParam_p->m_pArg);
|
||||
bNmtCommand = *((u8 *) pParam_p->m_pArg);
|
||||
// check value range
|
||||
switch ((tEplNmtCommand) bNmtCommand) {
|
||||
case kEplNmtCmdResetNode:
|
||||
@@ -1032,9 +1032,9 @@ tEplKernel EplApiCbObdAccess(tEplObdCbParam *pParam_p)
|
||||
break;
|
||||
}
|
||||
} else if (pParam_p->m_ObdEvent == kEplObdEvPostWrite) {
|
||||
BYTE bNmtCommand;
|
||||
u8 bNmtCommand;
|
||||
|
||||
bNmtCommand = *((BYTE *) pParam_p->m_pArg);
|
||||
bNmtCommand = *((u8 *) pParam_p->m_pArg);
|
||||
// check value range
|
||||
switch ((tEplNmtCommand) bNmtCommand) {
|
||||
case kEplNmtCmdResetNode:
|
||||
@@ -1187,11 +1187,11 @@ static tEplKernel EplApiProcessEvent(tEplEvent *pEplEvent_p)
|
||||
static tEplKernel EplApiCbNmtStateChange(tEplEventNmtStateChange NmtStateChange_p)
|
||||
{
|
||||
tEplKernel Ret = kEplSuccessful;
|
||||
BYTE bNmtState;
|
||||
u8 bNmtState;
|
||||
tEplApiEventArg EventArg;
|
||||
|
||||
// save NMT state in OD
|
||||
bNmtState = (BYTE) NmtStateChange_p.m_NewNmtState;
|
||||
bNmtState = (u8) NmtStateChange_p.m_NewNmtState;
|
||||
Ret = EplObdWriteEntry(0x1F8C, 0, &bNmtState, 1);
|
||||
if (Ret != kEplSuccessful) {
|
||||
goto Exit;
|
||||
@@ -1270,7 +1270,7 @@ static tEplKernel EplApiCbNmtStateChange(tEplEventNmtStateChange NmtStateChange_
|
||||
case kEplNmtCsNotActive:
|
||||
{
|
||||
// indicate completion of reset in NMT_ResetCmd_U8
|
||||
bNmtState = (BYTE) kEplNmtCmdInvalidService;
|
||||
bNmtState = (u8) kEplNmtCmdInvalidService;
|
||||
Ret = EplObdWriteEntry(0x1F9E, 0, &bNmtState, 1);
|
||||
if (Ret != kEplSuccessful) {
|
||||
goto Exit;
|
||||
@@ -1413,7 +1413,7 @@ static tEplKernel EplApiUpdateDllConfig(BOOL fUpdateIdentity_p)
|
||||
tEplDllIdentParam DllIdentParam;
|
||||
tEplObdSize ObdSize;
|
||||
WORD wTemp;
|
||||
BYTE bTemp;
|
||||
u8 bTemp;
|
||||
|
||||
// configure Dll
|
||||
EPL_MEMSET(&DllConfigParam, 0, sizeof(DllConfigParam));
|
||||
@@ -1633,7 +1633,7 @@ static tEplKernel EplApiUpdateObd(void)
|
||||
{
|
||||
tEplKernel Ret = kEplSuccessful;
|
||||
WORD wTemp;
|
||||
BYTE bTemp;
|
||||
u8 bTemp;
|
||||
|
||||
// set node id in OD
|
||||
Ret = EplObdSetNodeId(EplApiInstance_g.m_InitParam.m_uiNodeId, // node id
|
||||
@@ -1730,7 +1730,7 @@ static tEplKernel EplApiUpdateObd(void)
|
||||
}*/
|
||||
|
||||
if (EplApiInstance_g.m_InitParam.m_uiMultiplCycleCnt <= 0xFF) {
|
||||
bTemp = (BYTE) EplApiInstance_g.m_InitParam.m_uiMultiplCycleCnt;
|
||||
bTemp = (u8) EplApiInstance_g.m_InitParam.m_uiMultiplCycleCnt;
|
||||
Ret = EplObdWriteEntry(0x1F98, 7, &bTemp, 1);
|
||||
/* if(Ret != kEplSuccessful)
|
||||
{
|
||||
|
||||
@@ -139,7 +139,7 @@ MODULE_DESCRIPTION("EPL API driver");
|
||||
|
||||
// TracePoint support for realtime-debugging
|
||||
#ifdef _DBG_TRACE_POINTS_
|
||||
void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p);
|
||||
void TgtDbgSignalTracePoint(u8 bTracePointNumber_p);
|
||||
#define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p)
|
||||
#else
|
||||
#define TGT_DBG_SIGNAL_TRACE_POINT(p)
|
||||
|
||||
@@ -126,10 +126,10 @@
|
||||
#if ((EPL_API_PROCESS_IMAGE_SIZE_IN > 0) || (EPL_API_PROCESS_IMAGE_SIZE_OUT > 0))
|
||||
typedef struct {
|
||||
#if EPL_API_PROCESS_IMAGE_SIZE_IN > 0
|
||||
BYTE m_abProcessImageInput[EPL_API_PROCESS_IMAGE_SIZE_IN];
|
||||
u8 m_abProcessImageInput[EPL_API_PROCESS_IMAGE_SIZE_IN];
|
||||
#endif
|
||||
#if EPL_API_PROCESS_IMAGE_SIZE_OUT > 0
|
||||
BYTE m_abProcessImageOutput[EPL_API_PROCESS_IMAGE_SIZE_OUT];
|
||||
u8 m_abProcessImageOutput[EPL_API_PROCESS_IMAGE_SIZE_OUT];
|
||||
#endif
|
||||
|
||||
} tEplApiProcessImageInstance;
|
||||
|
||||
@@ -185,8 +185,8 @@ typedef struct {
|
||||
DWORD m_dwIpAddress;
|
||||
DWORD m_dwSubnetMask;
|
||||
DWORD m_dwDefaultGateway;
|
||||
BYTE m_sHostname[32];
|
||||
BYTE m_abVendorSpecificExt2[48];
|
||||
u8 m_sHostname[32];
|
||||
u8 m_abVendorSpecificExt2[48];
|
||||
|
||||
} tEplDllIdentParam;
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ typedef struct {
|
||||
typedef struct {
|
||||
tEplDllReqServiceId m_Service;
|
||||
unsigned int m_uiNodeId;
|
||||
BYTE m_bSoaFlag1;
|
||||
u8 m_bSoaFlag1;
|
||||
|
||||
} tEplDllCalIssueRequest;
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
|
||||
// TracePoint support for realtime-debugging
|
||||
#ifdef _DBG_TRACE_POINTS_
|
||||
void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p);
|
||||
void TgtDbgSignalTracePoint(u8 bTracePointNumber_p);
|
||||
void TgtDbgPostTraceValue(DWORD dwTraceValue_p);
|
||||
#define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p)
|
||||
#define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v)
|
||||
@@ -195,12 +195,12 @@ typedef enum {
|
||||
} tEplDllState;
|
||||
|
||||
typedef struct {
|
||||
BYTE m_be_abSrcMac[6];
|
||||
u8 m_be_abSrcMac[6];
|
||||
tEdrvTxBuffer *m_pTxBuffer; // Buffers for Tx-Frames
|
||||
unsigned int m_uiMaxTxFrames;
|
||||
BYTE m_bFlag1; // Flag 1 with EN, EC for PRes, StatusRes
|
||||
BYTE m_bMnFlag1; // Flag 1 with EA, ER from PReq, SoA of MN
|
||||
BYTE m_bFlag2; // Flag 2 with PR and RS for PRes, StatusRes, IdentRes
|
||||
u8 m_bFlag1; // Flag 1 with EN, EC for PRes, StatusRes
|
||||
u8 m_bMnFlag1; // Flag 1 with EA, ER from PReq, SoA of MN
|
||||
u8 m_bFlag2; // Flag 2 with PR and RS for PRes, StatusRes, IdentRes
|
||||
tEplDllConfigParam m_DllConfigParam;
|
||||
tEplDllIdentParam m_DllIdentParam;
|
||||
tEplDllState m_DllState;
|
||||
@@ -513,7 +513,7 @@ tEplKernel EplDllkCreateTxFrame(unsigned int *puiHandle_p,
|
||||
EPL_C_DLL_ETHERTYPE_EPL);
|
||||
// source node ID
|
||||
AmiSetByteToLe(&pTxFrame->m_le_bSrcNodeId,
|
||||
(BYTE) EplDllkInstance_g.m_DllConfigParam.
|
||||
(u8) EplDllkInstance_g.m_DllConfigParam.
|
||||
m_uiNodeId);
|
||||
// source MAC address
|
||||
EPL_MEMCPY(&pTxFrame->m_be_abSrcMac[0],
|
||||
@@ -530,7 +530,7 @@ tEplKernel EplDllkCreateTxFrame(unsigned int *puiHandle_p,
|
||||
{ // IdentResponses and StatusResponses are Broadcast
|
||||
AmiSetByteToLe(&pTxFrame->
|
||||
m_le_bDstNodeId,
|
||||
(BYTE)
|
||||
(u8)
|
||||
EPL_C_ADR_BROADCAST);
|
||||
break;
|
||||
}
|
||||
@@ -549,10 +549,10 @@ tEplKernel EplDllkCreateTxFrame(unsigned int *puiHandle_p,
|
||||
EPL_C_DLL_MULTICAST_SOC);
|
||||
// destination node ID
|
||||
AmiSetByteToLe(&pTxFrame->m_le_bDstNodeId,
|
||||
(BYTE) EPL_C_ADR_BROADCAST);
|
||||
(u8) EPL_C_ADR_BROADCAST);
|
||||
// reset Flags
|
||||
//AmiSetByteToLe(&pTxFrame->m_Data.m_Soc.m_le_bFlag1, (BYTE) 0);
|
||||
//AmiSetByteToLe(&pTxFrame->m_Data.m_Soc.m_le_bFlag2, (BYTE) 0);
|
||||
//AmiSetByteToLe(&pTxFrame->m_Data.m_Soc.m_le_bFlag1, (u8) 0);
|
||||
//AmiSetByteToLe(&pTxFrame->m_Data.m_Soc.m_le_bFlag2, (u8) 0);
|
||||
break;
|
||||
|
||||
case kEplMsgTypeSoa:
|
||||
@@ -561,13 +561,13 @@ tEplKernel EplDllkCreateTxFrame(unsigned int *puiHandle_p,
|
||||
EPL_C_DLL_MULTICAST_SOA);
|
||||
// destination node ID
|
||||
AmiSetByteToLe(&pTxFrame->m_le_bDstNodeId,
|
||||
(BYTE) EPL_C_ADR_BROADCAST);
|
||||
(u8) EPL_C_ADR_BROADCAST);
|
||||
// reset Flags
|
||||
//AmiSetByteToLe(&pTxFrame->m_Data.m_Soa.m_le_bFlag1, (BYTE) 0);
|
||||
//AmiSetByteToLe(&pTxFrame->m_Data.m_Soa.m_le_bFlag2, (BYTE) 0);
|
||||
//AmiSetByteToLe(&pTxFrame->m_Data.m_Soa.m_le_bFlag1, (u8) 0);
|
||||
//AmiSetByteToLe(&pTxFrame->m_Data.m_Soa.m_le_bFlag2, (u8) 0);
|
||||
// EPL profile version
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Soa.m_le_bEplVersion,
|
||||
(BYTE) EPL_SPEC_VERSION);
|
||||
(u8) EPL_SPEC_VERSION);
|
||||
break;
|
||||
|
||||
case kEplMsgTypePres:
|
||||
@@ -576,18 +576,18 @@ tEplKernel EplDllkCreateTxFrame(unsigned int *puiHandle_p,
|
||||
EPL_C_DLL_MULTICAST_PRES);
|
||||
// destination node ID
|
||||
AmiSetByteToLe(&pTxFrame->m_le_bDstNodeId,
|
||||
(BYTE) EPL_C_ADR_BROADCAST);
|
||||
(u8) EPL_C_ADR_BROADCAST);
|
||||
// reset Flags
|
||||
//AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.m_le_bFlag1, (BYTE) 0);
|
||||
//AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.m_le_bFlag2, (BYTE) 0);
|
||||
//AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.m_le_bFlag1, (u8) 0);
|
||||
//AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.m_le_bFlag2, (u8) 0);
|
||||
// PDO size
|
||||
//AmiSetWordToLe(&pTxFrame->m_Data.m_Pres.m_le_wSize, 0);
|
||||
break;
|
||||
|
||||
case kEplMsgTypePreq:
|
||||
// reset Flags
|
||||
//AmiSetByteToLe(&pTxFrame->m_Data.m_Preq.m_le_bFlag1, (BYTE) 0);
|
||||
//AmiSetByteToLe(&pTxFrame->m_Data.m_Preq.m_le_bFlag2, (BYTE) 0);
|
||||
//AmiSetByteToLe(&pTxFrame->m_Data.m_Preq.m_le_bFlag1, (u8) 0);
|
||||
//AmiSetByteToLe(&pTxFrame->m_Data.m_Preq.m_le_bFlag2, (u8) 0);
|
||||
// PDO size
|
||||
//AmiSetWordToLe(&pTxFrame->m_Data.m_Preq.m_le_wSize, 0);
|
||||
break;
|
||||
@@ -596,7 +596,7 @@ tEplKernel EplDllkCreateTxFrame(unsigned int *puiHandle_p,
|
||||
break;
|
||||
}
|
||||
// EPL message type
|
||||
AmiSetByteToLe(&pTxFrame->m_le_bMessageType, (BYTE) MsgType_p);
|
||||
AmiSetByteToLe(&pTxFrame->m_le_bMessageType, (u8) MsgType_p);
|
||||
}
|
||||
|
||||
*ppFrame_p = pTxFrame;
|
||||
@@ -672,7 +672,7 @@ tEplKernel EplDllkProcess(tEplEvent * pEvent_p)
|
||||
tEdrvTxBuffer *pTxBuffer;
|
||||
unsigned int uiHandle;
|
||||
unsigned int uiFrameSize;
|
||||
BYTE abMulticastMac[6];
|
||||
u8 abMulticastMac[6];
|
||||
tEplDllAsyncReqPriority AsyncReqPriority;
|
||||
unsigned int uiFrameCount;
|
||||
tEplNmtState NmtState;
|
||||
@@ -711,7 +711,7 @@ tEplKernel EplDllkProcess(tEplEvent * pEvent_p)
|
||||
// EPL profile version
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Asnd.m_Payload.
|
||||
m_IdentResponse.m_le_bEplProfileVersion,
|
||||
(BYTE) EPL_SPEC_VERSION);
|
||||
(u8) EPL_SPEC_VERSION);
|
||||
// FeatureFlags
|
||||
AmiSetDwordToLe(&pTxFrame->m_Data.m_Asnd.m_Payload.
|
||||
m_IdentResponse.m_le_dwFeatureFlags,
|
||||
@@ -1232,7 +1232,7 @@ tEplKernel EplDllkProcess(tEplEvent * pEvent_p)
|
||||
}
|
||||
if (uiFrameCount > 0) {
|
||||
EplDllkInstance_g.m_bFlag2 =
|
||||
(BYTE) (((AsyncReqPriority <<
|
||||
(u8) (((AsyncReqPriority <<
|
||||
EPL_FRAME_FLAG2_PR_SHIFT)
|
||||
& EPL_FRAME_FLAG2_PR)
|
||||
| (uiFrameCount &
|
||||
@@ -1306,7 +1306,7 @@ tEplKernel EplDllkProcess(tEplEvent * pEvent_p)
|
||||
}
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.
|
||||
m_le_bNmtStatus,
|
||||
(BYTE) NmtState);
|
||||
(u8) NmtState);
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.
|
||||
m_le_bFlag2,
|
||||
EplDllkInstance_g.
|
||||
@@ -1532,7 +1532,7 @@ tEplKernel EplDllkSetAsndServiceIdFilter(tEplDllAsndServiceId ServiceId_p,
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
tEplKernel EplDllkSetFlag1OfNode(unsigned int uiNodeId_p, BYTE bSoaFlag1_p)
|
||||
tEplKernel EplDllkSetFlag1OfNode(unsigned int uiNodeId_p, u8 bSoaFlag1_p)
|
||||
{
|
||||
tEplKernel Ret = kEplSuccessful;
|
||||
tEplDllkNodeInfo *pNodeInfo;
|
||||
@@ -1663,7 +1663,7 @@ tEplKernel EplDllkAddNode(tEplDllNodeInfo * pNodeInfo_p)
|
||||
pIntNodeInfo->m_pPreqTxBuffer =
|
||||
&EplDllkInstance_g.m_pTxBuffer[uiHandle];
|
||||
AmiSetByteToLe(&pFrame->m_le_bDstNodeId,
|
||||
(BYTE) pNodeInfo_p->m_uiNodeId);
|
||||
(u8) pNodeInfo_p->m_uiNodeId);
|
||||
|
||||
// set up destination MAC address
|
||||
EPL_MEMCPY(pFrame->m_be_abDstMac, pIntNodeInfo->m_be_abMacAddr,
|
||||
@@ -2430,7 +2430,7 @@ static void EplDllkCbFrameReceived(tEdrvRxBuffer * pRxBuffer_p)
|
||||
tEplDllReqServiceId ReqServiceId;
|
||||
unsigned int uiAsndServiceId;
|
||||
unsigned int uiNodeId;
|
||||
BYTE bFlag1;
|
||||
u8 bFlag1;
|
||||
|
||||
BENCHMARK_MOD_02_SET(3);
|
||||
NmtState = EplNmtkGetNmtState();
|
||||
@@ -2465,7 +2465,7 @@ static void EplDllkCbFrameReceived(tEdrvRxBuffer * pRxBuffer_p)
|
||||
// update frame (NMT state, RD, RS, PR, MS, EN flags)
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.
|
||||
m_le_bNmtStatus,
|
||||
(BYTE) NmtState);
|
||||
(u8) NmtState);
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.
|
||||
m_le_bFlag2,
|
||||
EplDllkInstance_g.
|
||||
@@ -2540,7 +2540,7 @@ static void EplDllkCbFrameReceived(tEdrvRxBuffer * pRxBuffer_p)
|
||||
// update frame (NMT state, RD, RS, PR, MS, EN flags)
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.
|
||||
m_le_bNmtStatus,
|
||||
(BYTE) NmtState);
|
||||
(u8) NmtState);
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.
|
||||
m_le_bFlag2,
|
||||
EplDllkInstance_g.
|
||||
@@ -2802,7 +2802,7 @@ static void EplDllkCbFrameReceived(tEdrvRxBuffer * pRxBuffer_p)
|
||||
}
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.
|
||||
m_le_bNmtStatus,
|
||||
(BYTE) NmtState);
|
||||
(u8) NmtState);
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.
|
||||
m_le_bFlag2,
|
||||
EplDllkInstance_g.m_bFlag2);
|
||||
@@ -2887,7 +2887,7 @@ static void EplDllkCbFrameReceived(tEdrvRxBuffer * pRxBuffer_p)
|
||||
m_Payload.
|
||||
m_StatusResponse.
|
||||
m_le_bNmtStatus,
|
||||
(BYTE) NmtState);
|
||||
(u8) NmtState);
|
||||
AmiSetByteToLe(&pTxFrame->
|
||||
m_Data.m_Asnd.
|
||||
m_Payload.
|
||||
@@ -2953,7 +2953,7 @@ static void EplDllkCbFrameReceived(tEdrvRxBuffer * pRxBuffer_p)
|
||||
m_Payload.
|
||||
m_IdentResponse.
|
||||
m_le_bNmtStatus,
|
||||
(BYTE) NmtState);
|
||||
(u8) NmtState);
|
||||
AmiSetByteToLe(&pTxFrame->
|
||||
m_Data.m_Asnd.
|
||||
m_Payload.
|
||||
@@ -3285,7 +3285,7 @@ static void EplDllkCbFrameTransmitted(tEdrvTxBuffer * pTxBuffer_p)
|
||||
m_Payload.
|
||||
m_StatusResponse.
|
||||
m_le_bNmtStatus,
|
||||
(BYTE) NmtState);
|
||||
(u8) NmtState);
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Asnd.
|
||||
m_Payload.
|
||||
m_StatusResponse.
|
||||
@@ -3321,7 +3321,7 @@ static void EplDllkCbFrameTransmitted(tEdrvTxBuffer * pTxBuffer_p)
|
||||
m_Payload.
|
||||
m_IdentResponse.
|
||||
m_le_bNmtStatus,
|
||||
(BYTE) NmtState);
|
||||
(u8) NmtState);
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Asnd.
|
||||
m_Payload.
|
||||
m_IdentResponse.
|
||||
@@ -3361,12 +3361,12 @@ static void EplDllkCbFrameTransmitted(tEdrvTxBuffer * pTxBuffer_p)
|
||||
if ((AmiGetByteFromLe
|
||||
(&pTxFrame->
|
||||
m_le_bMessageType)
|
||||
== (BYTE) kEplMsgTypeAsnd)
|
||||
== (u8) kEplMsgTypeAsnd)
|
||||
&&
|
||||
(AmiGetByteFromLe
|
||||
(&pTxFrame->m_Data.m_Asnd.
|
||||
m_le_bServiceId)
|
||||
== (BYTE) kEplDllAsndNmtCommand)) { // post event directly to NmtMnu module
|
||||
== (u8) kEplDllAsndNmtCommand)) { // post event directly to NmtMnu module
|
||||
Event.m_EventSink =
|
||||
kEplEventSinkNmtMnu;
|
||||
Event.m_EventType =
|
||||
@@ -3505,7 +3505,7 @@ static tEplKernel EplDllkCheckFrame(tEplFrame * pFrame_p,
|
||||
if (wEtherType == EPL_C_DLL_ETHERTYPE_EPL) {
|
||||
// source node ID
|
||||
AmiSetByteToLe(&pFrame_p->m_le_bSrcNodeId,
|
||||
(BYTE) EplDllkInstance_g.
|
||||
(u8) EplDllkInstance_g.
|
||||
m_DllConfigParam.m_uiNodeId);
|
||||
|
||||
// check message type
|
||||
@@ -3514,7 +3514,7 @@ static tEplKernel EplDllkCheckFrame(tEplFrame * pFrame_p,
|
||||
if (MsgType == 0) {
|
||||
MsgType = kEplMsgTypeAsnd;
|
||||
AmiSetByteToLe(&pFrame_p->m_le_bMessageType,
|
||||
(BYTE) MsgType);
|
||||
(u8) MsgType);
|
||||
}
|
||||
|
||||
if (MsgType == kEplMsgTypeAsnd) {
|
||||
@@ -3825,24 +3825,24 @@ static tEplKernel EplDllkMnSendSoa(tEplNmtState NmtState_p,
|
||||
// update frame (target)
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Soa.
|
||||
m_le_bReqServiceId,
|
||||
(BYTE) EplDllkInstance_g.
|
||||
(u8) EplDllkInstance_g.
|
||||
m_LastReqServiceId);
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Soa.
|
||||
m_le_bReqServiceTarget,
|
||||
(BYTE) EplDllkInstance_g.
|
||||
(u8) EplDllkInstance_g.
|
||||
m_uiLastTargetNodeId);
|
||||
|
||||
} else { // invite nobody
|
||||
// update frame (target)
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Soa.
|
||||
m_le_bReqServiceId, (BYTE) 0);
|
||||
m_le_bReqServiceId, (u8) 0);
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Soa.
|
||||
m_le_bReqServiceTarget, (BYTE) 0);
|
||||
m_le_bReqServiceTarget, (u8) 0);
|
||||
}
|
||||
|
||||
// update frame (NMT state)
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Soa.m_le_bNmtStatus,
|
||||
(BYTE) NmtState_p);
|
||||
(u8) NmtState_p);
|
||||
|
||||
// send SoA frame
|
||||
Ret = EdrvSendTxMsg(pTxBuffer);
|
||||
@@ -3919,7 +3919,7 @@ static tEplKernel EplDllkMnSendPreq(tEplNmtState NmtState_p,
|
||||
tEplKernel Ret = kEplSuccessful;
|
||||
tEdrvTxBuffer *pTxBuffer = NULL;
|
||||
tEplFrame *pTxFrame;
|
||||
BYTE bFlag1 = 0;
|
||||
u8 bFlag1 = 0;
|
||||
|
||||
if (EplDllkInstance_g.m_pCurNodeInfo == NULL) { // start with first isochronous CN
|
||||
EplDllkInstance_g.m_pCurNodeInfo =
|
||||
@@ -3970,7 +3970,7 @@ static tEplKernel EplDllkMnSendPreq(tEplNmtState NmtState_p,
|
||||
if (pTxBuffer == &EplDllkInstance_g.m_pTxBuffer[EPL_DLLK_TXFRAME_PRES]) { // PRes of MN will be sent
|
||||
// update NMT state
|
||||
AmiSetByteToLe(&pTxFrame->m_Data.m_Pres.m_le_bNmtStatus,
|
||||
(BYTE) NmtState_p);
|
||||
(u8) NmtState_p);
|
||||
*pDllStateProposed_p = kEplDllMsWaitSoaTrig;
|
||||
}
|
||||
// $$$ d.k. set EPL_FRAME_FLAG1_MS if necessary
|
||||
@@ -4013,7 +4013,7 @@ static tEplKernel EplDllkAsyncFrameNotReceived(tEplDllReqServiceId
|
||||
unsigned int uiNodeId_p)
|
||||
{
|
||||
tEplKernel Ret = kEplSuccessful;
|
||||
BYTE abBuffer[18];
|
||||
u8 abBuffer[18];
|
||||
tEplFrame *pFrame = (tEplFrame *) abBuffer;
|
||||
tEplFrameInfo FrameInfo;
|
||||
|
||||
@@ -4024,13 +4024,13 @@ static tEplKernel EplDllkAsyncFrameNotReceived(tEplDllReqServiceId
|
||||
// ASnd service registered?
|
||||
if (EplDllkInstance_g.m_aAsndFilter[ReqServiceId_p] == kEplDllAsndFilterAny) { // ASnd service ID is registered
|
||||
AmiSetByteToLe(&pFrame->m_le_bSrcNodeId,
|
||||
(BYTE) uiNodeId_p);
|
||||
(u8) uiNodeId_p);
|
||||
// EPL MsgType ASnd
|
||||
AmiSetByteToLe(&pFrame->m_le_bMessageType,
|
||||
(BYTE) kEplMsgTypeAsnd);
|
||||
(u8) kEplMsgTypeAsnd);
|
||||
// ASnd Service ID
|
||||
AmiSetByteToLe(&pFrame->m_Data.m_Asnd.m_le_bServiceId,
|
||||
(BYTE) ReqServiceId_p);
|
||||
(u8) ReqServiceId_p);
|
||||
// create frame info structure
|
||||
FrameInfo.m_pFrame = pFrame;
|
||||
FrameInfo.m_uiFrameSize = 18; // empty non existing ASnd frame
|
||||
|
||||
@@ -142,9 +142,9 @@ typedef struct {
|
||||
tShbInstance m_ShbInstanceTxGen; // FIFO for Tx frames with generic priority
|
||||
#else
|
||||
unsigned int m_uiFrameSizeNmt;
|
||||
BYTE m_abFrameNmt[1500];
|
||||
u8 m_abFrameNmt[1500];
|
||||
unsigned int m_uiFrameSizeGen;
|
||||
BYTE m_abFrameGen[1500];
|
||||
u8 m_abFrameGen[1500];
|
||||
#endif
|
||||
|
||||
tEplDllkCalStatistics m_Statistics;
|
||||
@@ -536,7 +536,7 @@ tEplKernel EplDllkCalAsyncGetTxFrame(void *pFrame_p,
|
||||
case kEplDllAsyncReqPrioNmt: // NMT request priority
|
||||
ShbError =
|
||||
ShbCirReadDataBlock(EplDllkCalInstance_g.m_ShbInstanceTxNmt,
|
||||
(BYTE *) pFrame_p, *puiFrameSize_p,
|
||||
(u8 *) pFrame_p, *puiFrameSize_p,
|
||||
&ulFrameSize);
|
||||
// returns kShbOk, kShbDataTruncated, kShbInvalidArg, kShbNoReadableData
|
||||
break;
|
||||
@@ -544,7 +544,7 @@ tEplKernel EplDllkCalAsyncGetTxFrame(void *pFrame_p,
|
||||
default: // generic priority
|
||||
ShbError =
|
||||
ShbCirReadDataBlock(EplDllkCalInstance_g.m_ShbInstanceTxGen,
|
||||
(BYTE *) pFrame_p, *puiFrameSize_p,
|
||||
(u8 *) pFrame_p, *puiFrameSize_p,
|
||||
&ulFrameSize);
|
||||
// returns kShbOk, kShbDataTruncated, kShbInvalidArg, kShbNoReadableData
|
||||
break;
|
||||
@@ -876,7 +876,7 @@ tEplKernel EplDllkCalGetStatistics(tEplDllkCalStatistics ** ppStatistics)
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
tEplKernel EplDllkCalIssueRequest(tEplDllReqServiceId Service_p,
|
||||
unsigned int uiNodeId_p, BYTE bSoaFlag1_p)
|
||||
unsigned int uiNodeId_p, u8 bSoaFlag1_p)
|
||||
{
|
||||
tEplKernel Ret = kEplSuccessful;
|
||||
|
||||
|
||||
@@ -355,7 +355,7 @@ tEplKernel EplDlluCalAsyncSend(tEplFrameInfo * pFrameInfo_p,
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
tEplKernel EplDlluCalIssueRequest(tEplDllReqServiceId Service_p,
|
||||
unsigned int uiNodeId_p, BYTE bSoaFlag1_p)
|
||||
unsigned int uiNodeId_p, u8 bSoaFlag1_p)
|
||||
{
|
||||
tEplKernel Ret = kEplSuccessful;
|
||||
|
||||
|
||||
@@ -770,7 +770,7 @@ static tEplKernel EplErrorHandlerkLinkArray(DWORD * pdwValue_p,
|
||||
tEplKernel Ret = kEplSuccessful;
|
||||
tEplVarParam VarParam;
|
||||
tEplObdSize EntrySize;
|
||||
BYTE bIndexEntries;
|
||||
u8 bIndexEntries;
|
||||
|
||||
EntrySize = (tEplObdSize) sizeof(bIndexEntries);
|
||||
Ret = EplObdReadEntry(uiIndex_p,
|
||||
|
||||
@@ -248,7 +248,7 @@ typedef struct {
|
||||
tEplEventSource m_EventSource; // module which posted this error event
|
||||
tEplKernel m_EplError; // EPL error which occured
|
||||
union {
|
||||
BYTE m_bArg;
|
||||
u8 m_bArg;
|
||||
DWORD m_dwArg;
|
||||
tEplEventSource m_EventSource; // from Eventk/u module (originating error source)
|
||||
tEplEventObdError m_ObdError; // from Obd module
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
|
||||
// TracePoint support for realtime-debugging
|
||||
#ifdef _DBG_TRACE_POINTS_
|
||||
void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p);
|
||||
void TgtDbgSignalTracePoint(u8 bTracePointNumber_p);
|
||||
void TgtDbgPostTraceValue(DWORD dwTraceValue_p);
|
||||
#define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p)
|
||||
#define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v)
|
||||
@@ -760,7 +760,7 @@ tEplKernel EplEventkPostError(tEplEventSource EventSource_p,
|
||||
unsigned int uiArgSize_p, void *pArg_p)
|
||||
{
|
||||
tEplKernel Ret;
|
||||
BYTE abBuffer[EPL_MAX_EVENT_ARG_SIZE];
|
||||
u8 abBuffer[EPL_MAX_EVENT_ARG_SIZE];
|
||||
tEplEventError *pEventError = (tEplEventError *) abBuffer;
|
||||
tEplEvent EplEvent;
|
||||
|
||||
@@ -814,7 +814,7 @@ static void EplEventkRxSignalHandlerCb(tShbInstance pShbRxInstance_p,
|
||||
tShbError ShbError;
|
||||
//unsigned long ulBlockCount;
|
||||
//unsigned long ulDataSize;
|
||||
BYTE abDataBuffer[sizeof(tEplEvent) + EPL_MAX_EVENT_ARG_SIZE];
|
||||
u8 abDataBuffer[sizeof(tEplEvent) + EPL_MAX_EVENT_ARG_SIZE];
|
||||
// d.k.: abDataBuffer contains the complete tEplEvent structure
|
||||
// and behind this the argument
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
|
||||
// TracePoint support for realtime-debugging
|
||||
#ifdef _DBG_TRACE_POINTS_
|
||||
void TgtDbgSignalTracePoint(BYTE bTracePointNumber_p);
|
||||
void TgtDbgSignalTracePoint(u8 bTracePointNumber_p);
|
||||
void TgtDbgPostTraceValue(DWORD dwTraceValue_p);
|
||||
#define TGT_DBG_SIGNAL_TRACE_POINT(p) TgtDbgSignalTracePoint(p)
|
||||
#define TGT_DBG_POST_TRACE_VALUE(v) TgtDbgPostTraceValue(v)
|
||||
@@ -693,7 +693,7 @@ tEplKernel EplEventuPostError(tEplEventSource EventSource_p,
|
||||
unsigned int uiArgSize_p, void *pArg_p)
|
||||
{
|
||||
tEplKernel Ret;
|
||||
BYTE abBuffer[EPL_MAX_EVENT_ARG_SIZE];
|
||||
u8 abBuffer[EPL_MAX_EVENT_ARG_SIZE];
|
||||
tEplEventError *pEventError = (tEplEventError *) abBuffer;
|
||||
tEplEvent EplEvent;
|
||||
|
||||
@@ -750,7 +750,7 @@ static void EplEventuRxSignalHandlerCb(tShbInstance pShbRxInstance_p,
|
||||
tShbError ShbError;
|
||||
//unsigned long ulBlockCount;
|
||||
//unsigned long ulDataSize;
|
||||
BYTE abDataBuffer[sizeof(tEplEvent) + EPL_MAX_EVENT_ARG_SIZE];
|
||||
u8 abDataBuffer[sizeof(tEplEvent) + EPL_MAX_EVENT_ARG_SIZE];
|
||||
// d.k.: abDataBuffer contains the complete tEplEvent structure
|
||||
// and behind this the argument
|
||||
|
||||
|
||||
@@ -122,11 +122,11 @@
|
||||
|
||||
typedef struct {
|
||||
// Offset 17
|
||||
BYTE m_le_bRes1; // reserved
|
||||
u8 m_le_bRes1; // reserved
|
||||
// Offset 18
|
||||
BYTE m_le_bFlag1; // Flags: MC, PS
|
||||
u8 m_le_bFlag1; // Flags: MC, PS
|
||||
// Offset 19
|
||||
BYTE m_le_bFlag2; // Flags: res
|
||||
u8 m_le_bFlag2; // Flags: res
|
||||
// Offset 20
|
||||
tEplNetTime m_le_NetTime; // supported if D_NMT_NetTimeIsRealTime_BOOL is set
|
||||
// Offset 28
|
||||
@@ -136,54 +136,54 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
// Offset 17
|
||||
BYTE m_le_bRes1; // reserved
|
||||
u8 m_le_bRes1; // reserved
|
||||
// Offset 18
|
||||
BYTE m_le_bFlag1; // Flags: MS, EA, RD
|
||||
u8 m_le_bFlag1; // Flags: MS, EA, RD
|
||||
// Offset 19
|
||||
BYTE m_le_bFlag2; // Flags: res
|
||||
u8 m_le_bFlag2; // Flags: res
|
||||
// Offset 20
|
||||
BYTE m_le_bPdoVersion;
|
||||
u8 m_le_bPdoVersion;
|
||||
// Offset 21
|
||||
BYTE m_le_bRes2; // reserved
|
||||
u8 m_le_bRes2; // reserved
|
||||
// Offset 22
|
||||
WORD m_le_wSize;
|
||||
// Offset 24
|
||||
BYTE m_le_abPayload[256 /*D_NMT_IsochrRxMaxPayload_U16 */ ];
|
||||
u8 m_le_abPayload[256 /*D_NMT_IsochrRxMaxPayload_U16 */ ];
|
||||
|
||||
} PACK_STRUCT tEplPreqFrame;
|
||||
|
||||
typedef struct {
|
||||
// Offset 17
|
||||
BYTE m_le_bNmtStatus; // NMT state
|
||||
u8 m_le_bNmtStatus; // NMT state
|
||||
// Offset 18
|
||||
BYTE m_le_bFlag1; // Flags: MS, EN, RD
|
||||
u8 m_le_bFlag1; // Flags: MS, EN, RD
|
||||
// Offset 19
|
||||
BYTE m_le_bFlag2; // Flags: PR, RS
|
||||
u8 m_le_bFlag2; // Flags: PR, RS
|
||||
// Offset 20
|
||||
BYTE m_le_bPdoVersion;
|
||||
u8 m_le_bPdoVersion;
|
||||
// Offset 21
|
||||
BYTE m_le_bRes2; // reserved
|
||||
u8 m_le_bRes2; // reserved
|
||||
// Offset 22
|
||||
WORD m_le_wSize;
|
||||
// Offset 24
|
||||
BYTE m_le_abPayload[256 /*D_NMT_IsochrRxMaxPayload_U16
|
||||
u8 m_le_abPayload[256 /*D_NMT_IsochrRxMaxPayload_U16
|
||||
/ D_NMT_IsochrTxMaxPayload_U16 */ ];
|
||||
|
||||
} PACK_STRUCT tEplPresFrame;
|
||||
|
||||
typedef struct {
|
||||
// Offset 17
|
||||
BYTE m_le_bNmtStatus; // NMT state
|
||||
u8 m_le_bNmtStatus; // NMT state
|
||||
// Offset 18
|
||||
BYTE m_le_bFlag1; // Flags: EA, ER
|
||||
u8 m_le_bFlag1; // Flags: EA, ER
|
||||
// Offset 19
|
||||
BYTE m_le_bFlag2; // Flags: res
|
||||
u8 m_le_bFlag2; // Flags: res
|
||||
// Offset 20
|
||||
BYTE m_le_bReqServiceId;
|
||||
u8 m_le_bReqServiceId;
|
||||
// Offset 21
|
||||
BYTE m_le_bReqServiceTarget;
|
||||
u8 m_le_bReqServiceTarget;
|
||||
// Offset 22
|
||||
BYTE m_le_bEplVersion;
|
||||
u8 m_le_bEplVersion;
|
||||
|
||||
} PACK_STRUCT tEplSoaFrame;
|
||||
|
||||
@@ -191,16 +191,16 @@ typedef struct {
|
||||
WORD m_wEntryType;
|
||||
WORD m_wErrorCode;
|
||||
tEplNetTime m_TimeStamp;
|
||||
BYTE m_abAddInfo[8];
|
||||
u8 m_abAddInfo[8];
|
||||
|
||||
} PACK_STRUCT tEplErrHistoryEntry;
|
||||
|
||||
typedef struct {
|
||||
// Offset 18
|
||||
BYTE m_le_bFlag1; // Flags: EN, EC
|
||||
BYTE m_le_bFlag2; // Flags: PR, RS
|
||||
BYTE m_le_bNmtStatus; // NMT state
|
||||
BYTE m_le_bRes1[3];
|
||||
u8 m_le_bFlag1; // Flags: EN, EC
|
||||
u8 m_le_bFlag2; // Flags: PR, RS
|
||||
u8 m_le_bNmtStatus; // NMT state
|
||||
u8 m_le_bRes1[3];
|
||||
QWORD m_le_qwStaticError; // static error bit field
|
||||
tEplErrHistoryEntry m_le_aErrHistoryEntry[14];
|
||||
|
||||
@@ -208,12 +208,12 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
// Offset 18
|
||||
BYTE m_le_bFlag1; // Flags: res
|
||||
BYTE m_le_bFlag2; // Flags: PR, RS
|
||||
BYTE m_le_bNmtStatus; // NMT state
|
||||
BYTE m_le_bIdentRespFlags; // Flags: FW
|
||||
BYTE m_le_bEplProfileVersion;
|
||||
BYTE m_le_bRes1;
|
||||
u8 m_le_bFlag1; // Flags: res
|
||||
u8 m_le_bFlag2; // Flags: PR, RS
|
||||
u8 m_le_bNmtStatus; // NMT state
|
||||
u8 m_le_bIdentRespFlags; // Flags: FW
|
||||
u8 m_le_bEplProfileVersion;
|
||||
u8 m_le_bRes1;
|
||||
DWORD m_le_dwFeatureFlags; // NMT_FeatureFlags_U32
|
||||
WORD m_le_wMtu; // NMT_CycleTiming_REC.AsyncMTU_U16: C_IP_MIN_MTU - C_IP_MAX_MTU
|
||||
WORD m_le_wPollInSize; // NMT_CycleTiming_REC.PReqActPayload_U16
|
||||
@@ -233,44 +233,44 @@ typedef struct {
|
||||
DWORD m_le_dwIpAddress;
|
||||
DWORD m_le_dwSubnetMask;
|
||||
DWORD m_le_dwDefaultGateway;
|
||||
BYTE m_le_sHostname[32];
|
||||
BYTE m_le_abVendorSpecificExt2[48];
|
||||
u8 m_le_sHostname[32];
|
||||
u8 m_le_abVendorSpecificExt2[48];
|
||||
|
||||
} PACK_STRUCT tEplIdentResponse;
|
||||
|
||||
typedef struct {
|
||||
// Offset 18
|
||||
BYTE m_le_bNmtCommandId;
|
||||
BYTE m_le_bRes1;
|
||||
BYTE m_le_abNmtCommandData[32];
|
||||
u8 m_le_bNmtCommandId;
|
||||
u8 m_le_bRes1;
|
||||
u8 m_le_abNmtCommandData[32];
|
||||
|
||||
} PACK_STRUCT tEplNmtCommandService;
|
||||
|
||||
typedef struct {
|
||||
BYTE m_le_bReserved;
|
||||
BYTE m_le_bTransactionId;
|
||||
BYTE m_le_bFlags;
|
||||
BYTE m_le_bCommandId;
|
||||
u8 m_le_bReserved;
|
||||
u8 m_le_bTransactionId;
|
||||
u8 m_le_bFlags;
|
||||
u8 m_le_bCommandId;
|
||||
WORD m_le_wSegmentSize;
|
||||
WORD m_le_wReserved;
|
||||
BYTE m_le_abCommandData[8]; // just reserve a minimum number of bytes as a placeholder
|
||||
u8 m_le_abCommandData[8]; // just reserve a minimum number of bytes as a placeholder
|
||||
|
||||
} PACK_STRUCT tEplAsySdoCom;
|
||||
|
||||
// asynchronous SDO Sequence Header
|
||||
typedef struct {
|
||||
BYTE m_le_bRecSeqNumCon;
|
||||
BYTE m_le_bSendSeqNumCon;
|
||||
BYTE m_le_abReserved[2];
|
||||
u8 m_le_bRecSeqNumCon;
|
||||
u8 m_le_bSendSeqNumCon;
|
||||
u8 m_le_abReserved[2];
|
||||
tEplAsySdoCom m_le_abSdoSeqPayload;
|
||||
|
||||
} PACK_STRUCT tEplAsySdoSeq;
|
||||
|
||||
typedef struct {
|
||||
// Offset 18
|
||||
BYTE m_le_bNmtCommandId;
|
||||
BYTE m_le_bTargetNodeId;
|
||||
BYTE m_le_abNmtCommandData[32];
|
||||
u8 m_le_bNmtCommandId;
|
||||
u8 m_le_bTargetNodeId;
|
||||
u8 m_le_abNmtCommandData[32];
|
||||
|
||||
} PACK_STRUCT tEplNmtRequestService;
|
||||
|
||||
@@ -281,14 +281,14 @@ typedef union {
|
||||
tEplNmtCommandService m_NmtCommandService;
|
||||
tEplNmtRequestService m_NmtRequestService;
|
||||
tEplAsySdoSeq m_SdoSequenceFrame;
|
||||
BYTE m_le_abPayload[256 /*D_NMT_ASndTxMaxPayload_U16
|
||||
u8 m_le_abPayload[256 /*D_NMT_ASndTxMaxPayload_U16
|
||||
/ D_NMT_ASndRxMaxPayload_U16 */ ];
|
||||
|
||||
} tEplAsndPayload;
|
||||
|
||||
typedef struct {
|
||||
// Offset 17
|
||||
BYTE m_le_bServiceId;
|
||||
u8 m_le_bServiceId;
|
||||
// Offset 18
|
||||
tEplAsndPayload m_Payload;
|
||||
|
||||
@@ -306,17 +306,17 @@ typedef union {
|
||||
|
||||
typedef struct {
|
||||
// Offset 0
|
||||
BYTE m_be_abDstMac[6]; // MAC address of the addressed nodes
|
||||
u8 m_be_abDstMac[6]; // MAC address of the addressed nodes
|
||||
// Offset 6
|
||||
BYTE m_be_abSrcMac[6]; // MAC address of the transmitting node
|
||||
u8 m_be_abSrcMac[6]; // MAC address of the transmitting node
|
||||
// Offset 12
|
||||
WORD m_be_wEtherType; // Ethernet message type (big endian)
|
||||
// Offset 14
|
||||
BYTE m_le_bMessageType; // EPL message type
|
||||
u8 m_le_bMessageType; // EPL message type
|
||||
// Offset 15
|
||||
BYTE m_le_bDstNodeId; // EPL node ID of the addressed nodes
|
||||
u8 m_le_bDstNodeId; // EPL node ID of the addressed nodes
|
||||
// Offset 16
|
||||
BYTE m_le_bSrcNodeId; // EPL node ID of the transmitting node
|
||||
u8 m_le_bSrcNodeId; // EPL node ID of the transmitting node
|
||||
// Offset 17
|
||||
tEplFrameData m_Data;
|
||||
|
||||
|
||||
@@ -71,6 +71,8 @@
|
||||
#ifndef _EPLINSTDEF_H_
|
||||
#define _EPLINSTDEF_H_
|
||||
|
||||
#include <linux/kernel.h>
|
||||
|
||||
// =========================================================================
|
||||
// types and macros for generating instances
|
||||
// =========================================================================
|
||||
@@ -84,7 +86,7 @@ typedef enum {
|
||||
//------------------------------------------------------------------------------------------
|
||||
|
||||
typedef void *tEplPtrInstance;
|
||||
typedef BYTE tEplInstanceHdl;
|
||||
typedef u8 tEplInstanceHdl;
|
||||
|
||||
// define const for illegale values
|
||||
#define CCM_ILLINSTANCE NULL
|
||||
@@ -214,8 +216,8 @@ typedef BYTE tEplInstanceHdl;
|
||||
tFastByte InstNumber = 0; \
|
||||
tFastByte i = EPL_MAX_INSTANCES; \
|
||||
do { \
|
||||
pInstance->m_InstState = (BYTE) kStateUnused; \
|
||||
pInstance->m_bInstIndex = (BYTE) InstNumber; \
|
||||
pInstance->m_InstState = (u8) kStateUnused; \
|
||||
pInstance->m_bInstIndex = (u8) InstNumber; \
|
||||
pInstance++; InstNumber++; i--; \
|
||||
} while (i != 0); \
|
||||
}
|
||||
@@ -243,8 +245,8 @@ typedef BYTE tEplInstanceHdl;
|
||||
// this macro defines member variables in instance table which are needed in
|
||||
// all modules of Epl stack
|
||||
#define EPL_MCO_DECL_INSTANCE_MEMBER() \
|
||||
STATIC BYTE m_InstState; \
|
||||
STATIC BYTE m_bInstIndex;
|
||||
STATIC u8 m_InstState; \
|
||||
STATIC u8 m_bInstIndex;
|
||||
|
||||
#define EPL_MCO_INSTANCE_PARAM_IDX_() EPL_MCO_INSTANCE_PARAM_ (EPL_MCO_GLB_VAR (m_bInstIndex))
|
||||
#define EPL_MCO_INSTANCE_PARAM_IDX() EPL_MCO_INSTANCE_PARAM (EPL_MCO_GLB_VAR (m_bInstIndex))
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user