Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249245
b: refs/heads/master
c: 9f83886
h: refs/heads/master
i:
  249243: 9144ce5
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Apr 26, 2011
1 parent 7e74c00 commit ba6012d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c2e138a6ea31eadeee59dd49ad39df8eefedaa71
refs/heads/master: 9f838864bdfaa98fa1ad4f69350e7c249e210a41
8 changes: 8 additions & 0 deletions trunk/drivers/staging/hv/netvsc_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define _NETVSC_API_H_

#include "vmbus_api.h"
#include "vmbus.h"

/* Fwd declaration */
struct hv_netvsc_packet;
Expand Down Expand Up @@ -103,6 +104,13 @@ struct netvsc_driver {
void *ctx;
};

static inline
struct netvsc_driver *drv_to_netvscdrv(struct device_driver *d)
{
struct hv_driver *hvdrv = drv_to_hv_drv(d);
return container_of(hvdrv, struct netvsc_driver, base);
}

struct netvsc_device_info {
unsigned char mac_adr[6];
bool link_state; /* 0 - link up, 1 - link down */
Expand Down

0 comments on commit ba6012d

Please sign in to comment.