Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141728
b: refs/heads/master
c: 2ed53cf
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Apr 3, 2009
1 parent 39ab0fd commit eaca3f1
Show file tree
Hide file tree
Showing 52 changed files with 405 additions and 406 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 48c13450c82817f6ce2d33fdb3692a759817c00b
refs/heads/master: 2ed53cf8a523d3e2fc133d892f8d040c3fc9656d
4 changes: 2 additions & 2 deletions trunk/drivers/staging/epl/Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
28 changes: 14 additions & 14 deletions trunk/drivers/staging/epl/Edrv8139.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -359,7 +359,7 @@ static struct pci_driver EdrvDriver = {
// local function prototypes
//---------------------------------------------------------------------------

static BYTE EdrvCalcHash(BYTE * pbMAC_p);
static u8 EdrvCalcHash(u8 * pbMAC_p);

//---------------------------------------------------------------------------
//
Expand Down Expand Up @@ -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);
/*
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand All @@ -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;
}
2 changes: 1 addition & 1 deletion trunk/drivers/staging/epl/EdrvFec.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/epl/EdrvSim.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_
6 changes: 3 additions & 3 deletions trunk/drivers/staging/epl/Epl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down
14 changes: 7 additions & 7 deletions trunk/drivers/staging/epl/EplAmi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down
32 changes: 16 additions & 16 deletions trunk/drivers/staging/epl/EplApiGeneric.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/epl/EplApiLinuxKernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/epl/EplApiProcessImage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/epl/EplDll.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/epl/EplDllCal.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ typedef struct {
typedef struct {
tEplDllReqServiceId m_Service;
unsigned int m_uiNodeId;
BYTE m_bSoaFlag1;
u8 m_bSoaFlag1;

} tEplDllCalIssueRequest;

Expand Down
Loading

0 comments on commit eaca3f1

Please sign in to comment.