aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-07-27 16:47:44 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 12:01:51 -0700
commitd1af1db7d6cd7818e92531e170cc65510dd57692 (patch)
treef123d14d6956ba0d121077074676ab37d15c9577
parenta9a71354b07dc1a3ee6a4053b43d5219fcda7a42 (diff)
Staging: hv: remove NETVSC_DEVICE typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/hv/NetVsc.c66
-rw-r--r--drivers/staging/hv/NetVsc.h4
-rw-r--r--drivers/staging/hv/RndisFilter.c14
3 files changed, 42 insertions, 42 deletions
diff --git a/drivers/staging/hv/NetVsc.c b/drivers/staging/hv/NetVsc.c
index 111e149d88b..c0d5dc39ccd 100644
--- a/drivers/staging/hv/NetVsc.c
+++ b/drivers/staging/hv/NetVsc.c
@@ -71,12 +71,12 @@ NetVscInitializeReceiveBufferWithNetVsp(
static int
NetVscDestroySendBuffer(
- NETVSC_DEVICE *NetDevice
+ struct NETVSC_DEVICE *NetDevice
);
static int
NetVscDestroyReceiveBuffer(
- NETVSC_DEVICE *NetDevice
+ struct NETVSC_DEVICE *NetDevice
);
static int
@@ -113,11 +113,11 @@ NetVscSendReceiveCompletion(
u64 TransactionId
);
-static inline NETVSC_DEVICE* AllocNetDevice(DEVICE_OBJECT *Device)
+static inline struct NETVSC_DEVICE *AllocNetDevice(DEVICE_OBJECT *Device)
{
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
- netDevice = kzalloc(sizeof(NETVSC_DEVICE), GFP_KERNEL);
+ netDevice = kzalloc(sizeof(struct NETVSC_DEVICE), GFP_KERNEL);
if (!netDevice)
return NULL;
@@ -130,7 +130,7 @@ static inline NETVSC_DEVICE* AllocNetDevice(DEVICE_OBJECT *Device)
return netDevice;
}
-static inline void FreeNetDevice(NETVSC_DEVICE *Device)
+static inline void FreeNetDevice(struct NETVSC_DEVICE *Device)
{
ASSERT(Device->RefCount == 0);
Device->Device->Extension = NULL;
@@ -139,11 +139,11 @@ static inline void FreeNetDevice(NETVSC_DEVICE *Device)
/* Get the net device object iff exists and its refcount > 1 */
-static inline NETVSC_DEVICE* GetOutboundNetDevice(DEVICE_OBJECT *Device)
+static inline struct NETVSC_DEVICE *GetOutboundNetDevice(DEVICE_OBJECT *Device)
{
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
- netDevice = (NETVSC_DEVICE*)Device->Extension;
+ netDevice = (struct NETVSC_DEVICE*)Device->Extension;
if (netDevice && netDevice->RefCount > 1)
{
InterlockedIncrement(&netDevice->RefCount);
@@ -157,11 +157,11 @@ static inline NETVSC_DEVICE* GetOutboundNetDevice(DEVICE_OBJECT *Device)
}
/* Get the net device object iff exists and its refcount > 0 */
-static inline NETVSC_DEVICE* GetInboundNetDevice(DEVICE_OBJECT *Device)
+static inline struct NETVSC_DEVICE *GetInboundNetDevice(DEVICE_OBJECT *Device)
{
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
- netDevice = (NETVSC_DEVICE*)Device->Extension;
+ netDevice = (struct NETVSC_DEVICE*)Device->Extension;
if (netDevice && netDevice->RefCount)
{
InterlockedIncrement(&netDevice->RefCount);
@@ -176,19 +176,19 @@ static inline NETVSC_DEVICE* GetInboundNetDevice(DEVICE_OBJECT *Device)
static inline void PutNetDevice(DEVICE_OBJECT *Device)
{
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
- netDevice = (NETVSC_DEVICE*)Device->Extension;
+ netDevice = (struct NETVSC_DEVICE*)Device->Extension;
ASSERT(netDevice);
InterlockedDecrement(&netDevice->RefCount);
}
-static inline NETVSC_DEVICE* ReleaseOutboundNetDevice(DEVICE_OBJECT *Device)
+static inline struct NETVSC_DEVICE *ReleaseOutboundNetDevice(DEVICE_OBJECT *Device)
{
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
- netDevice = (NETVSC_DEVICE*)Device->Extension;
+ netDevice = (struct NETVSC_DEVICE*)Device->Extension;
if (netDevice == NULL)
return NULL;
@@ -201,11 +201,11 @@ static inline NETVSC_DEVICE* ReleaseOutboundNetDevice(DEVICE_OBJECT *Device)
return netDevice;
}
-static inline NETVSC_DEVICE* ReleaseInboundNetDevice(DEVICE_OBJECT *Device)
+static inline struct NETVSC_DEVICE *ReleaseInboundNetDevice(DEVICE_OBJECT *Device)
{
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
- netDevice = (NETVSC_DEVICE*)Device->Extension;
+ netDevice = (struct NETVSC_DEVICE*)Device->Extension;
if (netDevice == NULL)
return NULL;
@@ -272,7 +272,7 @@ NetVscInitializeReceiveBufferWithNetVsp(
)
{
int ret=0;
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
NVSP_MESSAGE *initPacket;
DPRINT_ENTER(NETVSC);
@@ -401,7 +401,7 @@ NetVscInitializeSendBufferWithNetVsp(
)
{
int ret=0;
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
NVSP_MESSAGE *initPacket;
DPRINT_ENTER(NETVSC);
@@ -496,7 +496,7 @@ Exit:
static int
NetVscDestroyReceiveBuffer(
- NETVSC_DEVICE *NetDevice
+ struct NETVSC_DEVICE *NetDevice
)
{
NVSP_MESSAGE *revokePacket;
@@ -584,7 +584,7 @@ NetVscDestroyReceiveBuffer(
static int
NetVscDestroySendBuffer(
- NETVSC_DEVICE *NetDevice
+ struct NETVSC_DEVICE *NetDevice
)
{
NVSP_MESSAGE *revokePacket;
@@ -665,7 +665,7 @@ NetVscConnectToVsp(
)
{
int ret=0;
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
NVSP_MESSAGE *initPacket;
int ndisVersion;
@@ -771,7 +771,7 @@ Cleanup:
static void
NetVscDisconnectFromVsp(
- NETVSC_DEVICE *NetDevice
+ struct NETVSC_DEVICE *NetDevice
)
{
DPRINT_ENTER(NETVSC);
@@ -801,7 +801,7 @@ NetVscOnDeviceAdd(
int ret=0;
int i;
- NETVSC_DEVICE* netDevice;
+ struct NETVSC_DEVICE *netDevice;
NETVSC_PACKET* packet;
LIST_ENTRY *entry;
@@ -914,7 +914,7 @@ NetVscOnDeviceRemove(
DEVICE_OBJECT *Device
)
{
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
NETVSC_PACKET *netvscPacket;
int ret=0;
LIST_ENTRY *entry;
@@ -997,7 +997,7 @@ NetVscOnSendCompletion(
VMPACKET_DESCRIPTOR *Packet
)
{
- NETVSC_DEVICE* netDevice;
+ struct NETVSC_DEVICE *netDevice;
NVSP_MESSAGE *nvspPacket;
NETVSC_PACKET *nvscPacket;
@@ -1051,7 +1051,7 @@ NetVscOnSend(
NETVSC_PACKET *Packet
)
{
- NETVSC_DEVICE* netDevice;
+ struct NETVSC_DEVICE *netDevice;
int ret=0;
NVSP_MESSAGE sendMessage;
@@ -1115,7 +1115,7 @@ NetVscOnReceive(
VMPACKET_DESCRIPTOR *Packet
)
{
- NETVSC_DEVICE* netDevice;
+ struct NETVSC_DEVICE *netDevice;
VMTRANSFER_PAGE_PACKET_HEADER *vmxferpagePacket;
NVSP_MESSAGE *nvspPacket;
NETVSC_PACKET *netvscPacket=NULL;
@@ -1359,7 +1359,7 @@ NetVscOnReceiveCompletion(
{
NETVSC_PACKET *packet = (NETVSC_PACKET*)Context;
DEVICE_OBJECT *device = (DEVICE_OBJECT*)packet->Device;
- NETVSC_DEVICE* netDevice;
+ struct NETVSC_DEVICE *netDevice;
u64 transactionId=0;
bool fSendReceiveComp = false;
unsigned long flags;
@@ -1418,7 +1418,7 @@ NetVscOnChannelCallback(
const int netPacketSize=2048;
int ret=0;
DEVICE_OBJECT *device=(DEVICE_OBJECT*)Context;
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
u32 bytesRecvd;
u64 requestId;
diff --git a/drivers/staging/hv/NetVsc.h b/drivers/staging/hv/NetVsc.h
index acc4217fd41..145b1c5317c 100644
--- a/drivers/staging/hv/NetVsc.h
+++ b/drivers/staging/hv/NetVsc.h
@@ -54,7 +54,7 @@
/* Per netvsc channel-specific */
-typedef struct _NETVSC_DEVICE {
+struct NETVSC_DEVICE {
DEVICE_OBJECT *Device;
int RefCount;
@@ -86,6 +86,6 @@ typedef struct _NETVSC_DEVICE {
/* Holds rndis device info */
void *Extension;
-} NETVSC_DEVICE;
+};
#endif /* _NETVSC_H_ */
diff --git a/drivers/staging/hv/RndisFilter.c b/drivers/staging/hv/RndisFilter.c
index 91916676174..fd483fc88aa 100644
--- a/drivers/staging/hv/RndisFilter.c
+++ b/drivers/staging/hv/RndisFilter.c
@@ -46,7 +46,7 @@ typedef enum {
} RNDIS_DEVICE_STATE;
typedef struct _RNDIS_DEVICE {
- NETVSC_DEVICE *NetDevice;
+ struct NETVSC_DEVICE *NetDevice;
RNDIS_DEVICE_STATE State;
u32 LinkStatus;
@@ -494,7 +494,7 @@ RndisFilterOnReceive(
NETVSC_PACKET *Packet
)
{
- NETVSC_DEVICE *netDevice = (NETVSC_DEVICE*)Device->Extension;
+ struct NETVSC_DEVICE *netDevice = (struct NETVSC_DEVICE*)Device->Extension;
RNDIS_DEVICE *rndisDevice;
RNDIS_MESSAGE rndisMessage;
RNDIS_MESSAGE *rndisHeader;
@@ -933,7 +933,7 @@ RndisFilterOnDeviceAdd(
)
{
int ret;
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
RNDIS_DEVICE *rndisDevice;
NETVSC_DEVICE_INFO *deviceInfo = (NETVSC_DEVICE_INFO*)AdditionalInfo;
@@ -962,7 +962,7 @@ RndisFilterOnDeviceAdd(
/* Initialize the rndis device */
- netDevice = (NETVSC_DEVICE*)Device->Extension;
+ netDevice = (struct NETVSC_DEVICE*)Device->Extension;
ASSERT(netDevice);
ASSERT(netDevice->Device);
@@ -1010,7 +1010,7 @@ RndisFilterOnDeviceRemove(
DEVICE_OBJECT *Device
)
{
- NETVSC_DEVICE *netDevice = (NETVSC_DEVICE*)Device->Extension;
+ struct NETVSC_DEVICE *netDevice = (struct NETVSC_DEVICE*)Device->Extension;
RNDIS_DEVICE *rndisDevice = (RNDIS_DEVICE*)netDevice->Extension;
DPRINT_ENTER(NETVSC);
@@ -1046,7 +1046,7 @@ RndisFilterOnOpen(
)
{
int ret;
- NETVSC_DEVICE *netDevice = (NETVSC_DEVICE*)Device->Extension;
+ struct NETVSC_DEVICE *netDevice = (struct NETVSC_DEVICE*)Device->Extension;
DPRINT_ENTER(NETVSC);
@@ -1064,7 +1064,7 @@ RndisFilterOnClose(
)
{
int ret;
- NETVSC_DEVICE *netDevice = (NETVSC_DEVICE*)Device->Extension;
+ struct NETVSC_DEVICE *netDevice = (struct NETVSC_DEVICE*)Device->Extension;
DPRINT_ENTER(NETVSC);