Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162280
b: refs/heads/master
c: 211ccd6
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Sep 15, 2009
1 parent 4158e55 commit 1f684e2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 26 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: 74982610d08e7687c435fa6f07245fdfb2362f6d
refs/heads/master: 211ccd6e0b4b62abc0c93eeb671f5cd970b3c185
32 changes: 8 additions & 24 deletions trunk/drivers/staging/hv/NetVscApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,6 @@
/* Fwd declaration */
struct hv_netvsc_packet;

/* Data types */
typedef int (*PFN_ON_OPEN)(struct hv_device *Device);
typedef int (*PFN_ON_CLOSE)(struct hv_device *Device);

typedef void (*PFN_QUERY_LINKSTATUS)(struct hv_device *Device);
typedef int (*PFN_ON_SEND)(struct hv_device *dev,
struct hv_netvsc_packet *packet);
typedef void (*PFN_ON_SENDRECVCOMPLETION)(void *Context);

typedef int (*PFN_ON_RECVCALLBACK)(struct hv_device *dev,
struct hv_netvsc_packet *packet);
typedef void (*PFN_ON_LINKSTATUS_CHANGED)(struct hv_device *dev, u32 Status);

/* Represent the xfer page packet which contains 1 or more netvsc packet */
struct xferpage_packet {
LIST_ENTRY ListEntry;
Expand Down Expand Up @@ -80,12 +67,12 @@ struct hv_netvsc_packet {
struct{
u64 ReceiveCompletionTid;
void *ReceiveCompletionContext;
PFN_ON_SENDRECVCOMPLETION OnReceiveCompletion;
void (*OnReceiveCompletion)(void *context);
} Recv;
struct{
u64 SendCompletionTid;
void *SendCompletionContext;
PFN_ON_SENDRECVCOMPLETION OnSendCompletion;
void (*OnSendCompletion)(void *context);
} Send;
} Completion;

Expand Down Expand Up @@ -114,17 +101,14 @@ struct netvsc_driver {
* This is set by the caller to allow us to callback when we
* receive a packet from the "wire"
*/
PFN_ON_RECVCALLBACK OnReceiveCallback;

PFN_ON_LINKSTATUS_CHANGED OnLinkStatusChanged;
int (*OnReceiveCallback)(struct hv_device *dev,
struct hv_netvsc_packet *packet);
void (*OnLinkStatusChanged)(struct hv_device *dev, u32 Status);

/* Specific to this driver */
PFN_ON_OPEN OnOpen;
PFN_ON_CLOSE OnClose;
PFN_ON_SEND OnSend;
/* PFN_ON_RECVCOMPLETION OnReceiveCompletion; */

/* PFN_QUERY_LINKSTATUS QueryLinkStatus; */
int (*OnOpen)(struct hv_device *dev);
int (*OnClose)(struct hv_device *dev);
int (*OnSend)(struct hv_device *dev, struct hv_netvsc_packet *packet);

void *Context;
};
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/hv/RndisFilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct rndis_request {

struct rndis_filter_packet {
void *CompletionContext;
PFN_ON_SENDRECVCOMPLETION OnCompletion;
void (*OnCompletion)(void *context);
struct rndis_message Message;
};

Expand Down

0 comments on commit 1f684e2

Please sign in to comment.