Merge from vendor branch CVS:
[dragonfly.git] / sys / dev / netif / nv / os.h.patch
1 $DragonFly: src/sys/dev/netif/nv/Attic/os.h.patch,v 1.2 2005/04/04 18:45:07 joerg Exp $
2
3 --- os.h.orig   2005-03-12 10:59:28.000000000 +0100
4 +++ os.h        2005-04-02 20:33:43.000000000 +0200
5 @@ -28,9 +28,9 @@
6  
7  #define HDO_VERSION_STRING "HDR O: $Revision: #21 $";
8  
9 -// This is the maximum packet size that we will be sending
10 -// #define MAX_PACKET_SIZE     2048
11 -//#define RX_BUFFER_SIZE      2048
12 +/* This is the maximum packet size that we will be sending */
13 +/* #define MAX_PACKET_SIZE     2048 */
14 +/*#define RX_BUFFER_SIZE      2048 */
15  
16  #define MIN_PACKET_MTU_SIZE     576
17  #define MAX_PACKET_MTU_SIZE     9202
18 @@ -56,7 +56,7 @@
19      NV_UINT32    uiLength;
20      /* Parameter to OS layer to indicate what type of memory is needed */
21      NV_UINT16    AllocFlags;
22 -    NV_UINT16    AlignmentSize; //always power of 2
23 +    NV_UINT16    AlignmentSize; /*always power of 2 */
24      /* Following three fields used for aligned memory allocation */
25      PNV_VOID   pLogicalOrig;
26      NV_UINT32    pPhysicalOrigLow;
27 @@ -65,7 +65,7 @@
28  }   MEMORY_BLOCKEX, *PMEMORY_BLOCKEX;
29  
30  
31 -// The typedefs for the OS functions
32 +/* The typedefs for the OS functions */
33  typedef NV_API_CALL NV_SINT32 (* PFN_MEMORY_ALLOC) (PNV_VOID pOSCX, PMEMORY_BLOCK pMem);
34  typedef NV_API_CALL NV_SINT32 (* PFN_MEMORY_FREE)  (PNV_VOID pOSCX, PMEMORY_BLOCK pMem);
35  typedef NV_API_CALL NV_SINT32 (* PFN_MEMORY_ALLOCEX) (PNV_VOID pOSCX, PMEMORY_BLOCKEX pMem);
36 @@ -92,14 +92,14 @@
37  typedef NV_API_CALL NV_SINT32 (* PFN_LOCK_RELEASE) (PNV_VOID pOSCX, NV_SINT32 iLockType, PNV_VOID pvLock);
38  typedef NV_API_CALL PNV_VOID (* PFN_RETURN_BUFFER_VIRTUAL) (PNV_VOID pvContext, PNV_VOID pvADReadData);
39  
40 -// Here are the OS functions that those objects below the OS interface
41 -// can call up to.
42 +/* Here are the OS functions that those objects below the OS interface
43 +** can call up to. */
44  typedef struct  _OS_API
45  {
46 -    // OS Context -- this is a parameter to every OS API call
47 +    /* OS Context -- this is a parameter to every OS API call */
48      PNV_VOID                       pOSCX;
49  
50 -    // Basic OS functions
51 +    /* Basic OS functions */
52      PFN_MEMORY_ALLOC            pfnAllocMemory;
53      PFN_MEMORY_FREE             pfnFreeMemory;
54      PFN_MEMORY_ALLOCEX          pfnAllocMemoryEx;
55 @@ -125,4 +125,4 @@
56      PFN_RETURN_BUFFER_VIRTUAL    pfnReturnBufferVirtual;
57  }   OS_API, *POS_API;
58  
59 -#endif // _OS_H_
60 +#endif /* _OS_H_ */