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