Staging: hv: clean up NetVsc.h

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, September 16, 2009 - 9:07 am

Gitweb:     http://git.kernel.org/linus/b010e5a7bc3673d219363b01bf8591629215c384
Commit:     b010e5a7bc3673d219363b01bf8591629215c384
Parent:     a0086dc512ba6c2161dcf48195daf177ad0c3615
Author:     Greg Kroah-Hartman <gregkh@suse.de>
AuthorDate: Tue Aug 18 15:18:36 2009 -0700
Committer:  Greg Kroah-Hartman <gregkh@suse.de>
CommitDate: Tue Sep 15 12:01:55 2009 -0700

    Staging: hv: clean up NetVsc.h
    
    Cleans up coding style issues with NetVsc.h
    
    Cc: Hank Janssen <hjanssen@microsoft.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 drivers/staging/hv/NetVsc.h |   52 ++++++++++++++++++++----------------------
 1 files changed, 25 insertions(+), 27 deletions(-)

diff --git a/drivers/staging/hv/NetVsc.h b/drivers/staging/hv/NetVsc.h
index 770a7b4..ba81452 100644
--- a/drivers/staging/hv/NetVsc.h
+++ b/drivers/staging/hv/NetVsc.h
@@ -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_ */
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Staging: hv: clean up NetVsc.h, Linux Kernel Mailing ..., (Wed Sep 16, 9:07 am)