Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162200
b: refs/heads/master
c: b010e5a
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Sep 15, 2009
1 parent 113373f commit 3fa1b5f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a0086dc512ba6c2161dcf48195daf177ad0c3615
refs/heads/master: b010e5a7bc3673d219363b01bf8591629215c384
52 changes: 25 additions & 27 deletions trunk/drivers/staging/hv/NetVsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,60 +31,58 @@

#include "include/NetVscApi.h"

/* #defines */
/* #define NVSC_MIN_PROTOCOL_VERSION 1 */
/* #define NVSC_MAX_PROTOCOL_VERSION 1 */

/* #define NVSC_MIN_PROTOCOL_VERSION 1 */
/* #define NVSC_MAX_PROTOCOL_VERSION 1 */
#define NETVSC_SEND_BUFFER_SIZE (64*1024) /* 64K */
#define NETVSC_SEND_BUFFER_ID 0xface

#define NETVSC_SEND_BUFFER_SIZE 64*1024 /* 64K */
#define NETVSC_SEND_BUFFER_ID 0xface

#define NETVSC_RECEIVE_BUFFER_SIZE (1024*1024) /* 1MB */

#define NETVSC_RECEIVE_BUFFER_SIZE 1024*1024 /* 1MB */
#define NETVSC_RECEIVE_BUFFER_ID 0xcafe

#define NETVSC_RECEIVE_BUFFER_ID 0xcafe

#define NETVSC_RECEIVE_SG_COUNT 1
#define NETVSC_RECEIVE_SG_COUNT 1

/* Preallocated receive packets */
#define NETVSC_RECEIVE_PACKETLIST_COUNT 256


/* Data types */


/* Per netvsc channel-specific */
struct NETVSC_DEVICE {
struct hv_device *Device;

atomic_t RefCount;
atomic_t NumOutstandingSends;
/* List of free preallocated hv_netvsc_packet to represent receive packet */
LIST_ENTRY ReceivePacketList;
/*
* List of free preallocated hv_netvsc_packet to represent receive
* packet
*/
LIST_ENTRY ReceivePacketList;
spinlock_t receive_packet_list_lock;

/* Send buffer allocated by us but manages by NetVSP */
void * SendBuffer;
u32 SendBufferSize;
u32 SendBufferGpadlHandle;
u32 SendSectionSize;
void *SendBuffer;
u32 SendBufferSize;
u32 SendBufferGpadlHandle;
u32 SendSectionSize;

/* Receive buffer allocated by us but manages by NetVSP */
void * ReceiveBuffer;
u32 ReceiveBufferSize;
u32 ReceiveBufferGpadlHandle;
u32 ReceiveSectionCount;
PNVSP_1_RECEIVE_BUFFER_SECTION ReceiveSections;
void *ReceiveBuffer;
u32 ReceiveBufferSize;
u32 ReceiveBufferGpadlHandle;
u32 ReceiveSectionCount;
PNVSP_1_RECEIVE_BUFFER_SECTION ReceiveSections;

/* Used for NetVSP initialization protocol */
struct osd_waitevent *ChannelInitEvent;
NVSP_MESSAGE ChannelInitPacket;
NVSP_MESSAGE ChannelInitPacket;

NVSP_MESSAGE RevokePacket;
/* unsigned char HwMacAddr[HW_MACADDR_LEN]; */
NVSP_MESSAGE RevokePacket;
/* unsigned char HwMacAddr[HW_MACADDR_LEN]; */

/* Holds rndis device info */
void *Extension;
void *Extension;
};

#endif /* _NETVSC_H_ */

0 comments on commit 3fa1b5f

Please sign in to comment.