Staging: epl: remove QWORD
authorGreg Kroah-Hartman <gregkh@suse.de>
Mon, 23 Mar 2009 19:43:05 +0000 (12:43 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:54:21 +0000 (14:54 -0700)
It's u64 in kernelspace, not QWORD.

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>
drivers/staging/epl/Epl.h
drivers/staging/epl/EplAmi.h
drivers/staging/epl/EplDll.h
drivers/staging/epl/EplFrame.h
drivers/staging/epl/EplObd.c
drivers/staging/epl/EplObd.h
drivers/staging/epl/EplPdok.c
drivers/staging/epl/EplPdou.c
drivers/staging/epl/amix86.c
drivers/staging/epl/global.h

index 0a6b9b8a2dd9a96aae25e563d6d656a096f54124..09a3d0a2491ea6bdb2ac5948cebeba82236e658e 100644 (file)
@@ -181,7 +181,7 @@ typedef struct {
        DWORD m_dwProductCode;  // NMT_IdentityObject_REC.ProductCode_U32
        DWORD m_dwRevisionNumber;       // NMT_IdentityObject_REC.RevisionNo_U32
        DWORD m_dwSerialNumber; // NMT_IdentityObject_REC.SerialNo_U32
-       QWORD m_qwVendorSpecificExt1;
+       u64 m_qwVendorSpecificExt1;
        DWORD m_dwVerifyConfigurationDate;      // CFM_VerifyConfiguration_REC.ConfDate_U32
        DWORD m_dwVerifyConfigurationTime;      // CFM_VerifyConfiguration_REC.ConfTime_U32
        DWORD m_dwApplicationSwDate;    // PDL_LocVerApplSw_REC.ApplSwDate_U32 on programmable device or date portion of NMT_ManufactSwVers_VS on non-programmable device
index 7abcb6c2028ff4b6048bf31ac620bcb55812af8f..1d6080afacd426f5698285df42a7151ef0e4cb07 100644 (file)
@@ -177,8 +177,8 @@ DWORD AmiGetDword24FromLe(void *pAddr_p);
 //
 //---------------------------------------------------------------------------
 
-void AmiSetQword40ToBe(void *pAddr_p, QWORD qwQwordVal_p);
-void AmiSetQword40ToLe(void *pAddr_p, QWORD qwQwordVal_p);
+void AmiSetQword40ToBe(void *pAddr_p, u64 qwQwordVal_p);
+void AmiSetQword40ToLe(void *pAddr_p, u64 qwQwordVal_p);
 
 //---------------------------------------------------------------------------
 //
@@ -188,12 +188,12 @@ void AmiSetQword40ToLe(void *pAddr_p, QWORD qwQwordVal_p);
 //
 // Parameters:  pAddr_p         = pointer to source buffer
 //
-// Return:      QWORD
+// Return:      u64
 //
 //---------------------------------------------------------------------------
 
-QWORD AmiGetQword40FromBe(void *pAddr_p);
-QWORD AmiGetQword40FromLe(void *pAddr_p);
+u64 AmiGetQword40FromBe(void *pAddr_p);
+u64 AmiGetQword40FromLe(void *pAddr_p);
 
 //---------------------------------------------------------------------------
 //
@@ -208,8 +208,8 @@ QWORD AmiGetQword40FromLe(void *pAddr_p);
 //
 //---------------------------------------------------------------------------
 
-void AmiSetQword48ToBe(void *pAddr_p, QWORD qwQwordVal_p);
-void AmiSetQword48ToLe(void *pAddr_p, QWORD qwQwordVal_p);
+void AmiSetQword48ToBe(void *pAddr_p, u64 qwQwordVal_p);
+void AmiSetQword48ToLe(void *pAddr_p, u64 qwQwordVal_p);
 
 //---------------------------------------------------------------------------
 //
@@ -219,12 +219,12 @@ void AmiSetQword48ToLe(void *pAddr_p, QWORD qwQwordVal_p);
 //
 // Parameters:  pAddr_p         = pointer to source buffer
 //
-// Return:      QWORD
+// Return:      u64
 //
 //---------------------------------------------------------------------------
 
-QWORD AmiGetQword48FromBe(void *pAddr_p);
-QWORD AmiGetQword48FromLe(void *pAddr_p);
+u64 AmiGetQword48FromBe(void *pAddr_p);
+u64 AmiGetQword48FromLe(void *pAddr_p);
 
 //---------------------------------------------------------------------------
 //
@@ -239,8 +239,8 @@ QWORD AmiGetQword48FromLe(void *pAddr_p);
 //
 //---------------------------------------------------------------------------
 
-void AmiSetQword56ToBe(void *pAddr_p, QWORD qwQwordVal_p);
-void AmiSetQword56ToLe(void *pAddr_p, QWORD qwQwordVal_p);
+void AmiSetQword56ToBe(void *pAddr_p, u64 qwQwordVal_p);
+void AmiSetQword56ToLe(void *pAddr_p, u64 qwQwordVal_p);
 
 //---------------------------------------------------------------------------
 //
@@ -250,12 +250,12 @@ void AmiSetQword56ToLe(void *pAddr_p, QWORD qwQwordVal_p);
 //
 // Parameters:  pAddr_p         = pointer to source buffer
 //
-// Return:      QWORD
+// Return:      u64
 //
 //---------------------------------------------------------------------------
 
-QWORD AmiGetQword56FromBe(void *pAddr_p);
-QWORD AmiGetQword56FromLe(void *pAddr_p);
+u64 AmiGetQword56FromBe(void *pAddr_p);
+u64 AmiGetQword56FromLe(void *pAddr_p);
 
 //---------------------------------------------------------------------------
 //
@@ -270,8 +270,8 @@ QWORD AmiGetQword56FromLe(void *pAddr_p);
 //
 //---------------------------------------------------------------------------
 
-void AmiSetQword64ToBe(void *pAddr_p, QWORD qwQwordVal_p);
-void AmiSetQword64ToLe(void *pAddr_p, QWORD qwQwordVal_p);
+void AmiSetQword64ToBe(void *pAddr_p, u64 qwQwordVal_p);
+void AmiSetQword64ToLe(void *pAddr_p, u64 qwQwordVal_p);
 
 //---------------------------------------------------------------------------
 //
@@ -285,8 +285,8 @@ void AmiSetQword64ToLe(void *pAddr_p, QWORD qwQwordVal_p);
 //
 //---------------------------------------------------------------------------
 
-QWORD AmiGetQword64FromBe(void *pAddr_p);
-QWORD AmiGetQword64FromLe(void *pAddr_p);
+u64 AmiGetQword64FromBe(void *pAddr_p);
+u64 AmiGetQword64FromLe(void *pAddr_p);
 
 //---------------------------------------------------------------------------
 //
index cd2d25d5506b5d9ab7072ccdd9ccd80fac3b8107..863728a9053aef1124b5c1aa7b7e1843996e5d41 100644 (file)
@@ -177,7 +177,7 @@ typedef struct {
        DWORD m_dwProductCode;  // NMT_IdentityObject_REC.ProductCode_U32
        DWORD m_dwRevisionNumber;       // NMT_IdentityObject_REC.RevisionNo_U32
        DWORD m_dwSerialNumber; // NMT_IdentityObject_REC.SerialNo_U32
-       QWORD m_qwVendorSpecificExt1;
+       u64 m_qwVendorSpecificExt1;
        DWORD m_dwVerifyConfigurationDate;      // CFM_VerifyConfiguration_REC.ConfDate_U32
        DWORD m_dwVerifyConfigurationTime;      // CFM_VerifyConfiguration_REC.ConfTime_U32
        DWORD m_dwApplicationSwDate;    // PDL_LocVerApplSw_REC.ApplSwDate_U32 on programmable device or date portion of NMT_ManufactSwVers_VS on non-programmable device
index 0f8d59f937bca2e2d3bf15ad2c7e2059047c3785..156f907a1cfd11e5120822cc73ecbd209f1d6049 100644 (file)
@@ -130,7 +130,7 @@ typedef struct {
        // Offset 20
        tEplNetTime m_le_NetTime;       // supported if D_NMT_NetTimeIsRealTime_BOOL is set
        // Offset 28
-       QWORD m_le_RelativeTime;        // in us (supported if D_NMT_RelativeTime_BOOL is set)
+       u64 m_le_RelativeTime;  // in us (supported if D_NMT_RelativeTime_BOOL is set)
 
 } PACK_STRUCT tEplSocFrame;
 
@@ -201,7 +201,7 @@ typedef struct {
        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
+       u64 m_le_qwStaticError; // static error bit field
        tEplErrHistoryEntry m_le_aErrHistoryEntry[14];
 
 } PACK_STRUCT tEplStatusResponse;
@@ -225,7 +225,7 @@ typedef struct {
        DWORD m_le_dwProductCode;       // NMT_IdentityObject_REC.ProductCode_U32
        DWORD m_le_dwRevisionNumber;    // NMT_IdentityObject_REC.RevisionNo_U32
        DWORD m_le_dwSerialNumber;      // NMT_IdentityObject_REC.SerialNo_U32
-       QWORD m_le_qwVendorSpecificExt1;
+       u64 m_le_qwVendorSpecificExt1;
        DWORD m_le_dwVerifyConfigurationDate;   // CFM_VerifyConfiguration_REC.ConfDate_U32
        DWORD m_le_dwVerifyConfigurationTime;   // CFM_VerifyConfiguration_REC.ConfTime_U32
        DWORD m_le_dwApplicationSwDate; // PDL_LocVerApplSw_REC.ApplSwDate_U32 on programmable device or date portion of NMT_ManufactSwVers_VS on non-programmable device
index e55cf07a3e6b1963e25583f75dda8ff69d737027..ca61db449cee7f7558c884c477ee27734fbfa325 100644 (file)
@@ -1105,7 +1105,7 @@ EPLDLLEXPORT tEplKernel EplObdReadEntryToLe(EPL_MCO_DECL_INSTANCE_PTR_ unsigned
        case kEplObdTypInt40:
        case kEplObdTypUInt40:
                {
-                       AmiSetQword40ToLe(pDstData_p, *((QWORD *) pSrcData));
+                       AmiSetQword40ToLe(pDstData_p, *((u64 *) pSrcData));
                        break;
                }
 
@@ -1113,7 +1113,7 @@ EPLDLLEXPORT tEplKernel EplObdReadEntryToLe(EPL_MCO_DECL_INSTANCE_PTR_ unsigned
        case kEplObdTypInt48:
        case kEplObdTypUInt48:
                {
-                       AmiSetQword48ToLe(pDstData_p, *((QWORD *) pSrcData));
+                       AmiSetQword48ToLe(pDstData_p, *((u64 *) pSrcData));
                        break;
                }
 
@@ -1121,7 +1121,7 @@ EPLDLLEXPORT tEplKernel EplObdReadEntryToLe(EPL_MCO_DECL_INSTANCE_PTR_ unsigned
        case kEplObdTypInt56:
        case kEplObdTypUInt56:
                {
-                       AmiSetQword56ToLe(pDstData_p, *((QWORD *) pSrcData));
+                       AmiSetQword56ToLe(pDstData_p, *((u64 *) pSrcData));
                        break;
                }
 
@@ -1130,7 +1130,7 @@ EPLDLLEXPORT tEplKernel EplObdReadEntryToLe(EPL_MCO_DECL_INSTANCE_PTR_ unsigned
        case kEplObdTypUInt64:
        case kEplObdTypReal64:
                {
-                       AmiSetQword64ToLe(pDstData_p, *((QWORD *) pSrcData));
+                       AmiSetQword64ToLe(pDstData_p, *((u64 *) pSrcData));
                        break;
                }
 
@@ -1191,7 +1191,7 @@ EPLDLLEXPORT tEplKernel EplObdWriteEntryFromLe(EPL_MCO_DECL_INSTANCE_PTR_ unsign
        tEplObdCbParam CbParam;
        void *pDstData;
        tEplObdSize ObdSize;
-       QWORD qwBuffer;
+       u64 qwBuffer;
        void *pBuffer = &qwBuffer;
 
        Ret = EplObdWriteEntryPre(EPL_MCO_INSTANCE_PTR_
@@ -1255,7 +1255,7 @@ EPLDLLEXPORT tEplKernel EplObdWriteEntryFromLe(EPL_MCO_DECL_INSTANCE_PTR_ unsign
        case kEplObdTypInt40:
        case kEplObdTypUInt40:
                {
-                       *((QWORD *) pBuffer) = AmiGetQword40FromLe(pSrcData_p);
+                       *((u64 *) pBuffer) = AmiGetQword40FromLe(pSrcData_p);
                        break;
                }
 
@@ -1263,7 +1263,7 @@ EPLDLLEXPORT tEplKernel EplObdWriteEntryFromLe(EPL_MCO_DECL_INSTANCE_PTR_ unsign
        case kEplObdTypInt48:
        case kEplObdTypUInt48:
                {
-                       *((QWORD *) pBuffer) = AmiGetQword48FromLe(pSrcData_p);
+                       *((u64 *) pBuffer) = AmiGetQword48FromLe(pSrcData_p);
                        break;
                }
 
@@ -1271,7 +1271,7 @@ EPLDLLEXPORT tEplKernel EplObdWriteEntryFromLe(EPL_MCO_DECL_INSTANCE_PTR_ unsign
        case kEplObdTypInt56:
        case kEplObdTypUInt56:
                {
-                       *((QWORD *) pBuffer) = AmiGetQword56FromLe(pSrcData_p);
+                       *((u64 *) pBuffer) = AmiGetQword56FromLe(pSrcData_p);
                        break;
                }
 
@@ -1280,7 +1280,7 @@ EPLDLLEXPORT tEplKernel EplObdWriteEntryFromLe(EPL_MCO_DECL_INSTANCE_PTR_ unsign
        case kEplObdTypUInt64:
        case kEplObdTypReal64:
                {
-                       *((QWORD *) pBuffer) = AmiGetQword64FromLe(pSrcData_p);
+                       *((u64 *) pBuffer) = AmiGetQword64FromLe(pSrcData_p);
                        break;
                }
 
@@ -1740,18 +1740,18 @@ static tEplKernel EplObdCheckObjectRange(tEplObdSubEntryPtr pSubindexEntry_p,
        case kEplObdTypInt64:
 
                // switch to lower limit
-               pRangeData = ((signed QWORD *)pRangeData) + 1;
+               pRangeData = ((signed u64 *)pRangeData) + 1;
 
                // check if value is to low
-               if (*((signed QWORD *)pData_p) < *((signed QWORD *)pRangeData)) {
+               if (*((signed u64 *)pData_p) < *((signed u64 *)pRangeData)) {
                        Ret = kEplObdValueTooLow;
                        break;
                }
                // switch to higher limit
-               pRangeData = ((signed QWORD *)pRangeData) + 1;
+               pRangeData = ((signed u64 *)pRangeData) + 1;
 
                // check if value is to high
-               if (*((signed QWORD *)pData_p) > *((signed QWORD *)pRangeData)) {
+               if (*((signed u64 *)pData_p) > *((signed u64 *)pRangeData)) {
                        Ret = kEplObdValueTooHigh;
                }
 
@@ -1764,20 +1764,20 @@ static tEplKernel EplObdCheckObjectRange(tEplObdSubEntryPtr pSubindexEntry_p,
        case kEplObdTypUInt64:
 
                // switch to lower limit
-               pRangeData = ((unsigned QWORD *)pRangeData) + 1;
+               pRangeData = ((unsigned u64 *)pRangeData) + 1;
 
                // check if value is to low
-               if (*((unsigned QWORD *)pData_p) <
-                   *((unsigned QWORD *)pRangeData)) {
+               if (*((unsigned u64 *)pData_p) <
+                   *((unsigned u64 *)pRangeData)) {
                        Ret = kEplObdValueTooLow;
                        break;
                }
                // switch to higher limit
-               pRangeData = ((unsigned QWORD *)pRangeData) + 1;
+               pRangeData = ((unsigned u64 *)pRangeData) + 1;
 
                // check if value is to high
-               if (*((unsigned QWORD *)pData_p) >
-                   *((unsigned QWORD *)pRangeData)) {
+               if (*((unsigned u64 *)pData_p) >
+                   *((unsigned u64 *)pRangeData)) {
                        Ret = kEplObdValueTooHigh;
                }
 
index eebff886bf89a57cd0017701d27c2553327e1f36..587f57a6aba7a8d5a4cec25e1c6c65a4f000ad18 100644 (file)
 
 ****************************************************************************/
 
-#include "EplInc.h"
-
 #ifndef _EPLOBD_H_
 #define _EPLOBD_H_
 
+#include "EplInc.h"
+
 // ============================================================================
 // defines
 // ============================================================================
@@ -255,15 +255,15 @@ typedef unsigned char tEplObdDomain;      // 000F
 typedef signed long tEplObdInteger24;  // 0010
 typedef unsigned long tEplObdUnsigned24;       // 0016
 
-typedef signed QWORD tEplObdInteger40; // 0012
-typedef signed QWORD tEplObdInteger48; // 0013
-typedef signed QWORD tEplObdInteger56; // 0014
-typedef signed QWORD tEplObdInteger64; // 0015
+typedef s64 tEplObdInteger40;  // 0012
+typedef s64 tEplObdInteger48;  // 0013
+typedef s64 tEplObdInteger56;  // 0014
+typedef s64 tEplObdInteger64;  // 0015
 
-typedef unsigned QWORD tEplObdUnsigned40;      // 0018
-typedef unsigned QWORD tEplObdUnsigned48;      // 0019
-typedef unsigned QWORD tEplObdUnsigned56;      // 001A
-typedef unsigned QWORD tEplObdUnsigned64;      // 001B
+typedef u64 tEplObdUnsigned40; // 0018
+typedef u64 tEplObdUnsigned48; // 0019
+typedef u64 tEplObdUnsigned56; // 001A
+typedef u64 tEplObdUnsigned64; // 001B
 
 typedef double tEplObdReal64;  // 0011
 
index 163dc53344e08fe7020a55d6ea2c9cbec45f88ad..848fdb1e3875ca99b8f9f38e1b0d3a23881d601e 100644 (file)
@@ -318,7 +318,7 @@ tEplKernel EplPdokProcess(tEplEvent * pEvent_p)
        WORD wBitOffset;
        WORD wBitSize;
        WORD wVarSize;
-       QWORD qwObjectMapping;
+       u64 qwObjectMapping;
        u8 bMappSubindex;
        u8 bObdSubindex;
        WORD wObdMappIndex;
@@ -423,7 +423,7 @@ tEplKernel EplPdokProcess(tEplEvent * pEvent_p)
                        // process mapping
                        for (bMappSubindex = 1; bMappSubindex <= bObjectCount;
                             bMappSubindex++) {
-                               ObdSize = 8;    // QWORD
+                               ObdSize = 8;    // u64
                                // read object mapping from OD
                                Ret =
                                    EplObdReadEntry(wObdMappIndex,
@@ -553,7 +553,7 @@ tEplKernel EplPdokProcess(tEplEvent * pEvent_p)
                        // process mapping
                        for (bMappSubindex = 1; bMappSubindex <= bObjectCount;
                             bMappSubindex++) {
-                               ObdSize = 8;    // QWORD
+                               ObdSize = 8;    // u64
                                // read object mapping from OD
                                Ret =
                                    EplObdReadEntry(wObdMappIndex,
index 4536d4dc6a46158efa6a3e527005c7c8da6107ed..d65e21ce0b5c064d0b76408b34512a69b87f7b8c 100644 (file)
 static tEplKernel EplPdouCheckPdoValidity(tEplObdCbParam *pParam_p,
                                          unsigned int uiIndex_p);
 
-static void EplPdouDecodeObjectMapping(QWORD qwObjectMapping_p,
+static void EplPdouDecodeObjectMapping(u64 qwObjectMapping_p,
                                       unsigned int *puiIndex_p,
                                       unsigned int *puiSubIndex_p,
                                       unsigned int *puiBitOffset_p,
                                       unsigned int *puiBitSize_p);
 
-static tEplKernel EplPdouCheckObjectMapping(QWORD qwObjectMapping_p,
+static tEplKernel EplPdouCheckObjectMapping(u64 qwObjectMapping_p,
                                            tEplObdAccess AccessType_p,
                                            DWORD * pdwAbortCode_p,
                                            unsigned int *puiPdoSize_p);
@@ -233,7 +233,7 @@ tEplKernel EplPdouCbObdAccess(tEplObdCbParam *pParam_p)
        unsigned int uiIndexType;
        tEplObdSize ObdSize;
        u8 bObjectCount;
-       QWORD qwObjectMapping;
+       u64 qwObjectMapping;
        tEplObdAccess AccessType;
        u8 bMappSubindex;
        unsigned int uiCurPdoSize;
@@ -326,7 +326,7 @@ tEplKernel EplPdouCbObdAccess(tEplObdCbParam *pParam_p)
                for (bMappSubindex = 1; bMappSubindex <= bObjectCount;
                     bMappSubindex++) {
                        // read object mapping from OD
-                       ObdSize = sizeof(qwObjectMapping);      // QWORD
+                       ObdSize = sizeof(qwObjectMapping);      // u64
                        Ret = EplObduReadEntry(pParam_p->m_uiIndex,
                                               bMappSubindex, &qwObjectMapping,
                                               &ObdSize);
@@ -360,7 +360,7 @@ tEplKernel EplPdouCbObdAccess(tEplObdCbParam *pParam_p)
                }
                // check existence of object and validity of object length
 
-               qwObjectMapping = *((QWORD *) pParam_p->m_pArg);
+               qwObjectMapping = *((u64 *) pParam_p->m_pArg);
 
                Ret = EplPdouCheckObjectMapping(qwObjectMapping,
                                                AccessType,
@@ -439,7 +439,7 @@ static tEplKernel EplPdouCheckPdoValidity(tEplObdCbParam *pParam_p,
 //
 //---------------------------------------------------------------------------
 
-static void EplPdouDecodeObjectMapping(QWORD qwObjectMapping_p,
+static void EplPdouDecodeObjectMapping(u64 qwObjectMapping_p,
                                       unsigned int *puiIndex_p,
                                       unsigned int *puiSubIndex_p,
                                       unsigned int *puiBitOffset_p,
@@ -480,7 +480,7 @@ static void EplPdouDecodeObjectMapping(QWORD qwObjectMapping_p,
 //
 //---------------------------------------------------------------------------
 
-static tEplKernel EplPdouCheckObjectMapping(QWORD qwObjectMapping_p,
+static tEplKernel EplPdouCheckObjectMapping(u64 qwObjectMapping_p,
                                            tEplObdAccess AccessType_p,
                                            DWORD * pdwAbortCode_p,
                                            unsigned int *puiPdoSize_p)
index 7f1a5028df69f5d1966abe39bf552ab08401a824..b8e891d1cd0b70cbb2518093b2b6d50580b6fd7a 100644 (file)
@@ -89,7 +89,7 @@ typedef struct {
 } tdwStruct;
 
 typedef struct {
-       QWORD m_qwQword;
+       u64 m_qwQword;
 
 } tqwStruct;
 
@@ -415,7 +415,7 @@ DWORD AmiGetDword24FromLe(void *pAddr_p)
 // State:       not tested
 //
 //---------------------------------------------------------------------------
-void AmiSetQword64ToBe(void *pAddr_p, QWORD qwQwordVal_p)
+void AmiSetQword64ToBe(void *pAddr_p, u64 qwQwordVal_p)
 {
        ((u8 *) pAddr_p)[0] = ((u8 *) & qwQwordVal_p)[7];
        ((u8 *) pAddr_p)[1] = ((u8 *) & qwQwordVal_p)[6];
@@ -441,11 +441,11 @@ void AmiSetQword64ToBe(void *pAddr_p, QWORD qwQwordVal_p)
 // State:       not tested
 //
 //---------------------------------------------------------------------------
-void AmiSetQword64ToLe(void *pAddr_p, QWORD qwQwordVal_p)
+void AmiSetQword64ToLe(void *pAddr_p, u64 qwQwordVal_p)
 {
-       QWORD *pqwDst;
+       u64 *pqwDst;
 
-       pqwDst = (QWORD *) pAddr_p;
+       pqwDst = (u64 *) pAddr_p;
        *pqwDst = qwQwordVal_p;
 }
 
@@ -462,7 +462,7 @@ void AmiSetQword64ToLe(void *pAddr_p, QWORD qwQwordVal_p)
 // State:       not tested
 //
 //---------------------------------------------------------------------------
-QWORD AmiGetQword64FromBe(void *pAddr_p)
+u64 AmiGetQword64FromBe(void *pAddr_p)
 {
        tqwStruct qwStruct;
 
@@ -491,7 +491,7 @@ QWORD AmiGetQword64FromBe(void *pAddr_p)
 // State:       not tested
 //
 //---------------------------------------------------------------------------
-QWORD AmiGetQword64FromLe(void *pAddr_p)
+u64 AmiGetQword64FromLe(void *pAddr_p)
 {
        tqwStruct *pqwStruct;
        tqwStruct qwStruct;
@@ -517,7 +517,7 @@ QWORD AmiGetQword64FromLe(void *pAddr_p)
 //
 //---------------------------------------------------------------------------
 
-void AmiSetQword40ToBe(void *pAddr_p, QWORD qwQwordVal_p)
+void AmiSetQword40ToBe(void *pAddr_p, u64 qwQwordVal_p)
 {
 
        ((u8 *) pAddr_p)[0] = ((u8 *) & qwQwordVal_p)[4];
@@ -543,7 +543,7 @@ void AmiSetQword40ToBe(void *pAddr_p, QWORD qwQwordVal_p)
 //
 //---------------------------------------------------------------------------
 
-void AmiSetQword40ToLe(void *pAddr_p, QWORD qwQwordVal_p)
+void AmiSetQword40ToLe(void *pAddr_p, u64 qwQwordVal_p)
 {
 
        ((DWORD *) pAddr_p)[0] = ((DWORD *) & qwQwordVal_p)[0];
@@ -559,13 +559,13 @@ void AmiSetQword40ToLe(void *pAddr_p, QWORD qwQwordVal_p)
 //
 // Parameters:  pAddr_p         = pointer to source buffer
 //
-// Return:      QWORD
+// Return:      u64
 //
 // State:       not tested
 //
 //---------------------------------------------------------------------------
 
-QWORD AmiGetQword40FromBe(void *pAddr_p)
+u64 AmiGetQword40FromBe(void *pAddr_p)
 {
 
        tqwStruct qwStruct;
@@ -585,13 +585,13 @@ QWORD AmiGetQword40FromBe(void *pAddr_p)
 //
 // Parameters:  pAddr_p         = pointer to source buffer
 //
-// Return:      QWORD
+// Return:      u64
 //
 // State:       not tested
 //
 //---------------------------------------------------------------------------
 
-QWORD AmiGetQword40FromLe(void *pAddr_p)
+u64 AmiGetQword40FromLe(void *pAddr_p)
 {
 
        tqwStruct qwStruct;
@@ -618,7 +618,7 @@ QWORD AmiGetQword40FromLe(void *pAddr_p)
 //
 //---------------------------------------------------------------------------
 
-void AmiSetQword48ToBe(void *pAddr_p, QWORD qwQwordVal_p)
+void AmiSetQword48ToBe(void *pAddr_p, u64 qwQwordVal_p)
 {
 
        ((u8 *) pAddr_p)[0] = ((u8 *) & qwQwordVal_p)[5];
@@ -645,7 +645,7 @@ void AmiSetQword48ToBe(void *pAddr_p, QWORD qwQwordVal_p)
 //
 //---------------------------------------------------------------------------
 
-void AmiSetQword48ToLe(void *pAddr_p, QWORD qwQwordVal_p)
+void AmiSetQword48ToLe(void *pAddr_p, u64 qwQwordVal_p)
 {
 
        ((DWORD *) pAddr_p)[0] = ((DWORD *) & qwQwordVal_p)[0];
@@ -661,13 +661,13 @@ void AmiSetQword48ToLe(void *pAddr_p, QWORD qwQwordVal_p)
 //
 // Parameters:  pAddr_p         = pointer to source buffer
 //
-// Return:      QWORD
+// Return:      u64
 //
 // State:       not tested
 //
 //---------------------------------------------------------------------------
 
-QWORD AmiGetQword48FromBe(void *pAddr_p)
+u64 AmiGetQword48FromBe(void *pAddr_p)
 {
 
        tqwStruct qwStruct;
@@ -687,13 +687,13 @@ QWORD AmiGetQword48FromBe(void *pAddr_p)
 //
 // Parameters:  pAddr_p         = pointer to source buffer
 //
-// Return:      QWORD
+// Return:      u64
 //
 // State:       not tested
 //
 //---------------------------------------------------------------------------
 
-QWORD AmiGetQword48FromLe(void *pAddr_p)
+u64 AmiGetQword48FromLe(void *pAddr_p)
 {
 
        tqwStruct qwStruct;
@@ -720,7 +720,7 @@ QWORD AmiGetQword48FromLe(void *pAddr_p)
 //
 //---------------------------------------------------------------------------
 
-void AmiSetQword56ToBe(void *pAddr_p, QWORD qwQwordVal_p)
+void AmiSetQword56ToBe(void *pAddr_p, u64 qwQwordVal_p)
 {
 
        ((u8 *) pAddr_p)[0] = ((u8 *) & qwQwordVal_p)[6];
@@ -748,7 +748,7 @@ void AmiSetQword56ToBe(void *pAddr_p, QWORD qwQwordVal_p)
 //
 //---------------------------------------------------------------------------
 
-void AmiSetQword56ToLe(void *pAddr_p, QWORD qwQwordVal_p)
+void AmiSetQword56ToLe(void *pAddr_p, u64 qwQwordVal_p)
 {
 
        ((DWORD *) pAddr_p)[0] = ((DWORD *) & qwQwordVal_p)[0];
@@ -765,13 +765,13 @@ void AmiSetQword56ToLe(void *pAddr_p, QWORD qwQwordVal_p)
 //
 // Parameters:  pAddr_p         = pointer to source buffer
 //
-// Return:      QWORD
+// Return:      u64
 //
 // State:       not tested
 //
 //---------------------------------------------------------------------------
 
-QWORD AmiGetQword56FromBe(void *pAddr_p)
+u64 AmiGetQword56FromBe(void *pAddr_p)
 {
 
        tqwStruct qwStruct;
@@ -791,13 +791,13 @@ QWORD AmiGetQword56FromBe(void *pAddr_p)
 //
 // Parameters:  pAddr_p         = pointer to source buffer
 //
-// Return:      QWORD
+// Return:      u64
 //
 // State:       not tested
 //
 //---------------------------------------------------------------------------
 
-QWORD AmiGetQword56FromLe(void *pAddr_p)
+u64 AmiGetQword56FromLe(void *pAddr_p)
 {
 
        tqwStruct qwStruct;
index f5e48e4163b8daf8fd30eb53a6de836dc0df9ce7..c83163e73882cf159d5fcae88eedbe353c7e7c12 100644 (file)
 #define _GLOBAL_H_
 
 
-#ifndef QWORD
-#define QWORD long long int
-#endif
-
 #define TRACE  printk
 
 // --- logic types ---