aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv/netvsc_api.h
diff options
context:
space:
mode:
authorHaiyang Zhang <haiyangz@microsoft.com>2010-12-10 15:03:58 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-13 13:31:51 -0500
commit72a2f5bd53bf83302f4dcfe8500d4ec440545d27 (patch)
tree4e239bcca2cd75eb25fa475e1ee1e4a3f8942e00 /drivers/staging/hv/netvsc_api.h
parent9c26aa0d763a8390177f50ae841148706a249793 (diff)
staging: hv: Convert camel cased struct fields in netvsc_api.h to lower cases
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/netvsc_api.h')
-rw-r--r--drivers/staging/hv/netvsc_api.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/drivers/staging/hv/netvsc_api.h b/drivers/staging/hv/netvsc_api.h
index 315271d6991..ac40db56e1f 100644
--- a/drivers/staging/hv/netvsc_api.h
+++ b/drivers/staging/hv/netvsc_api.h
@@ -32,10 +32,10 @@ struct hv_netvsc_packet;
32 32
33/* Represent the xfer page packet which contains 1 or more netvsc packet */ 33/* Represent the xfer page packet which contains 1 or more netvsc packet */
34struct xferpage_packet { 34struct xferpage_packet {
35 struct list_head ListEntry; 35 struct list_head list_ent;
36 36
37 /* # of netvsc packets this xfer packet contains */ 37 /* # of netvsc packets this xfer packet contains */
38 u32 Count; 38 u32 count;
39}; 39};
40 40
41/* The number of pages which are enough to cover jumbo frame buffer. */ 41/* The number of pages which are enough to cover jumbo frame buffer. */
@@ -47,65 +47,65 @@ struct xferpage_packet {
47 */ 47 */
48struct hv_netvsc_packet { 48struct hv_netvsc_packet {
49 /* Bookkeeping stuff */ 49 /* Bookkeeping stuff */
50 struct list_head ListEntry; 50 struct list_head list_ent;
51 51
52 struct hv_device *Device; 52 struct hv_device *device;
53 bool IsDataPacket; 53 bool is_data_pkt;
54 54
55 /* 55 /*
56 * Valid only for receives when we break a xfer page packet 56 * Valid only for receives when we break a xfer page packet
57 * into multiple netvsc packets 57 * into multiple netvsc packets
58 */ 58 */
59 struct xferpage_packet *XferPagePacket; 59 struct xferpage_packet *xfer_page_pkt;
60 60
61 union { 61 union {
62 struct{ 62 struct{
63 u64 ReceiveCompletionTid; 63 u64 recv_completion_tid;
64 void *ReceiveCompletionContext; 64 void *recv_completion_ctx;
65 void (*OnReceiveCompletion)(void *context); 65 void (*recv_completion)(void *context);
66 } Recv; 66 } recv;
67 struct{ 67 struct{
68 u64 SendCompletionTid; 68 u64 send_completion_tid;
69 void *SendCompletionContext; 69 void *send_completion_ctx;
70 void (*OnSendCompletion)(void *context); 70 void (*send_completion)(void *context);
71 } Send; 71 } send;
72 } Completion; 72 } completion;
73 73
74 /* This points to the memory after PageBuffers */ 74 /* This points to the memory after page_buf */
75 void *Extension; 75 void *extension;
76 76
77 u32 TotalDataBufferLength; 77 u32 total_data_buflen;
78 /* Points to the send/receive buffer where the ethernet frame is */ 78 /* Points to the send/receive buffer where the ethernet frame is */
79 u32 PageBufferCount; 79 u32 page_buf_cnt;
80 struct hv_page_buffer PageBuffers[NETVSC_PACKET_MAXPAGE]; 80 struct hv_page_buffer page_buf[NETVSC_PACKET_MAXPAGE];
81}; 81};
82 82
83/* Represents the net vsc driver */ 83/* Represents the net vsc driver */
84struct netvsc_driver { 84struct netvsc_driver {
85 /* Must be the first field */ 85 /* Must be the first field */
86 /* Which is a bug FIXME! */ 86 /* Which is a bug FIXME! */
87 struct hv_driver Base; 87 struct hv_driver base;
88 88
89 u32 RingBufferSize; 89 u32 ring_buf_size;
90 u32 RequestExtSize; 90 u32 req_ext_size;
91 91
92 /* 92 /*
93 * This is set by the caller to allow us to callback when we 93 * This is set by the caller to allow us to callback when we
94 * receive a packet from the "wire" 94 * receive a packet from the "wire"
95 */ 95 */
96 int (*OnReceiveCallback)(struct hv_device *dev, 96 int (*recv_cb)(struct hv_device *dev,
97 struct hv_netvsc_packet *packet); 97 struct hv_netvsc_packet *packet);
98 void (*OnLinkStatusChanged)(struct hv_device *dev, u32 Status); 98 void (*link_status_change)(struct hv_device *dev, u32 Status);
99 99
100 /* Specific to this driver */ 100 /* Specific to this driver */
101 int (*OnSend)(struct hv_device *dev, struct hv_netvsc_packet *packet); 101 int (*send)(struct hv_device *dev, struct hv_netvsc_packet *packet);
102 102
103 void *Context; 103 void *ctx;
104}; 104};
105 105
106struct netvsc_device_info { 106struct netvsc_device_info {
107 unsigned char MacAddr[6]; 107 unsigned char mac_adr[6];
108 bool LinkState; /* 0 - link up, 1 - link down */ 108 bool link_state; /* 0 - link up, 1 - link down */
109}; 109};
110 110
111/* Interface */ 111/* Interface */