1 $DragonFly: src/sys/dev/netif/nv/Attic/os.h.patch,v 1.1 2004/08/28 15:08:02 joerg Exp $
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
8 #define HDO_VERSION_STRING "HDR O: $Revision: #21 $";
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 */
16 typedef struct _MEMORY_BLOCK
20 /* Parameter to OS layer to indicate what type of memory is needed */
22 - USHORT AlignmentSize; //always power of 2
23 + USHORT AlignmentSize; /* always power of 2 */
24 /* Following three fields used for aligned memory allocation */
26 ULONG pPhysicalOrigLow;
28 } MEMORY_BLOCKEX, *PMEMORY_BLOCKEX;
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);
37 typedef int (* PFN_LOCK_RELEASE) (PVOID pOSCX, int iLockType, PVOID pvLock);
38 typedef PVOID (* PFN_RETURN_BUFFER_VIRTUAL) (PVOID pvContext, PVOID pvADReadData);
40 -// Here are the OS functions that those objects below the OS interface
43 + * Here are the OS functions that those objects below the OS interface
46 typedef struct _OS_API
48 - // OS Context -- this is a parameter to every OS API call
49 + /* OS Context -- this is a parameter to every OS API call */
52 - // Basic OS functions
53 + /* Basic OS functions */
54 PFN_MEMORY_ALLOC pfnAllocMemory;
55 PFN_MEMORY_FREE pfnFreeMemory;
56 PFN_MEMORY_ALLOCEX pfnAllocMemoryEx;
58 PFN_RETURN_BUFFER_VIRTUAL pfnReturnBufferVirtual;