1 $DragonFly: src/sys/dev/netif/nv/Attic/os.h.patch,v 1.2 2005/04/04 18:45:07 joerg Exp $
3 --- os.h.orig 2005-03-12 10:59:28.000000000 +0100
4 +++ os.h 2005-04-02 20:33:43.000000000 +0200
7 #define HDO_VERSION_STRING "HDR O: $Revision: #21 $";
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 */
16 #define MIN_PACKET_MTU_SIZE 576
17 #define MAX_PACKET_MTU_SIZE 9202
20 /* Parameter to OS layer to indicate what type of memory is needed */
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;
28 } MEMORY_BLOCKEX, *PMEMORY_BLOCKEX;
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);
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);
40 -// Here are the OS functions that those objects below the OS interface
42 +/* Here are the OS functions that those objects below the OS interface
43 +** can call up to. */
44 typedef struct _OS_API
46 - // OS Context -- this is a parameter to every OS API call
47 + /* OS Context -- this is a parameter to every OS API call */
50 - // Basic OS functions
51 + /* Basic OS functions */
52 PFN_MEMORY_ALLOC pfnAllocMemory;
53 PFN_MEMORY_FREE pfnFreeMemory;
54 PFN_MEMORY_ALLOCEX pfnAllocMemoryEx;
56 PFN_RETURN_BUFFER_VIRTUAL pfnReturnBufferVirtual;