]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
Staging: hv: move NetVscApi.h
authorGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Aug 2009 23:23:17 +0000 (16:23 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:02:00 +0000 (12:02 -0700)
Move it out of the include subdirectory.

No code changes here, just file movements.

Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/NetVsc.h
drivers/staging/hv/NetVscApi.h [new file with mode: 0644]
drivers/staging/hv/RndisFilter.c
drivers/staging/hv/include/NetVscApi.h [deleted file]
drivers/staging/hv/netvsc_drv.c

index 93734400fc9c45958739c8ff292f4b807bb07708..afa764f13acf6fca7ccd96eb69df76975c50b8d3 100644 (file)
@@ -27,7 +27,7 @@
 #include "include/VmbusPacketFormat.h"
 #include "include/VmbusChannelInterface.h"
 #include "List.h"
-#include "include/NetVscApi.h"
+#include "NetVscApi.h"
 
 
 #define NVSP_INVALID_PROTOCOL_VERSION  ((u32)0xFFFFFFFF)
diff --git a/drivers/staging/hv/NetVscApi.h b/drivers/staging/hv/NetVscApi.h
new file mode 100644 (file)
index 0000000..9166c5c
--- /dev/null
@@ -0,0 +1,140 @@
+/*
+ *
+ * Copyright (c) 2009, Microsoft Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ * Place - Suite 330, Boston, MA 02111-1307 USA.
+ *
+ * Authors:
+ *   Haiyang Zhang <haiyangz@microsoft.com>
+ *   Hank Janssen  <hjanssen@microsoft.com>
+ *
+ */
+
+
+#ifndef _NETVSC_API_H_
+#define _NETVSC_API_H_
+
+#include "include/VmbusApi.h"
+#include "List.h"
+
+/* Defines */
+#define NETVSC_DEVICE_RING_BUFFER_SIZE (64*PAGE_SIZE)
+#define HW_MACADDR_LEN                 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;
+
+       /* # of netvsc packets this xfer packet contains */
+       u32 Count;
+};
+
+/* The number of pages which are enough to cover jumbo frame buffer. */
+#define NETVSC_PACKET_MAXPAGE          4
+
+/*
+ * Represent netvsc packet which contains 1 RNDIS and 1 ethernet frame
+ * within the RNDIS
+ */
+struct hv_netvsc_packet {
+       /* Bookkeeping stuff */
+       LIST_ENTRY ListEntry;
+
+       struct hv_device *Device;
+       bool IsDataPacket;
+
+       /*
+        * Valid only for receives when we break a xfer page packet
+        * into multiple netvsc packets
+        */
+       struct xferpage_packet *XferPagePacket;
+
+       union {
+               struct{
+                       u64 ReceiveCompletionTid;
+                       void *ReceiveCompletionContext;
+                       PFN_ON_SENDRECVCOMPLETION OnReceiveCompletion;
+               } Recv;
+               struct{
+                       u64 SendCompletionTid;
+                       void *SendCompletionContext;
+                       PFN_ON_SENDRECVCOMPLETION OnSendCompletion;
+               } Send;
+       } Completion;
+
+       /* This points to the memory after PageBuffers */
+       void *Extension;
+
+       u32 TotalDataBufferLength;
+       /* Points to the send/receive buffer where the ethernet frame is */
+       u32 PageBufferCount;
+       struct hv_page_buffer PageBuffers[NETVSC_PACKET_MAXPAGE];
+};
+
+/* Represents the net vsc driver */
+struct netvsc_driver {
+       /* Must be the first field */
+       /* Which is a bug FIXME! */
+       struct hv_driver Base;
+
+       u32 RingBufferSize;
+       u32 RequestExtSize;
+
+       /* Additional num  of page buffers to allocate */
+       u32 AdditionalRequestPageBufferCount;
+
+       /*
+        * 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;
+
+       /* Specific to this driver */
+       PFN_ON_OPEN OnOpen;
+       PFN_ON_CLOSE OnClose;
+       PFN_ON_SEND OnSend;
+       /* PFN_ON_RECVCOMPLETION OnReceiveCompletion; */
+
+       /* PFN_QUERY_LINKSTATUS QueryLinkStatus; */
+
+       void *Context;
+};
+
+struct netvsc_device_info {
+    unsigned char MacAddr[6];
+    bool LinkState;    /* 0 - link up, 1 - link down */
+};
+
+/* Interface */
+int NetVscInitialize(struct hv_driver *drv);
+
+#endif /* _NETVSC_API_H_ */
index 1c2f15799d3b951b0857e2bdf309474685a9c347..a509cb34ce683fefe710fc6053b1efea428cac51 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "osd.h"
 #include "logging.h"
-#include "include/NetVscApi.h"
+#include "NetVscApi.h"
 #include "RndisFilter.h"
 
 
diff --git a/drivers/staging/hv/include/NetVscApi.h b/drivers/staging/hv/include/NetVscApi.h
deleted file mode 100644 (file)
index 5075494..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-/*
- *
- * Copyright (c) 2009, Microsoft Corporation.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms and conditions of the GNU General Public License,
- * version 2, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place - Suite 330, Boston, MA 02111-1307 USA.
- *
- * Authors:
- *   Haiyang Zhang <haiyangz@microsoft.com>
- *   Hank Janssen  <hjanssen@microsoft.com>
- *
- */
-
-
-#ifndef _NETVSC_API_H_
-#define _NETVSC_API_H_
-
-#include "VmbusApi.h"
-#include "../List.h"
-
-/* Defines */
-#define NETVSC_DEVICE_RING_BUFFER_SIZE (64*PAGE_SIZE)
-#define HW_MACADDR_LEN                 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;
-
-       /* # of netvsc packets this xfer packet contains */
-       u32 Count;
-};
-
-/* The number of pages which are enough to cover jumbo frame buffer. */
-#define NETVSC_PACKET_MAXPAGE          4
-
-/*
- * Represent netvsc packet which contains 1 RNDIS and 1 ethernet frame
- * within the RNDIS
- */
-struct hv_netvsc_packet {
-       /* Bookkeeping stuff */
-       LIST_ENTRY ListEntry;
-
-       struct hv_device *Device;
-       bool IsDataPacket;
-
-       /*
-        * Valid only for receives when we break a xfer page packet
-        * into multiple netvsc packets
-        */
-       struct xferpage_packet *XferPagePacket;
-
-       union {
-               struct{
-                       u64 ReceiveCompletionTid;
-                       void *ReceiveCompletionContext;
-                       PFN_ON_SENDRECVCOMPLETION OnReceiveCompletion;
-               } Recv;
-               struct{
-                       u64 SendCompletionTid;
-                       void *SendCompletionContext;
-                       PFN_ON_SENDRECVCOMPLETION OnSendCompletion;
-               } Send;
-       } Completion;
-
-       /* This points to the memory after PageBuffers */
-       void *Extension;
-
-       u32 TotalDataBufferLength;
-       /* Points to the send/receive buffer where the ethernet frame is */
-       u32 PageBufferCount;
-       struct hv_page_buffer PageBuffers[NETVSC_PACKET_MAXPAGE];
-};
-
-/* Represents the net vsc driver */
-struct netvsc_driver {
-       /* Must be the first field */
-       /* Which is a bug FIXME! */
-       struct hv_driver Base;
-
-       u32 RingBufferSize;
-       u32 RequestExtSize;
-
-       /* Additional num  of page buffers to allocate */
-       u32 AdditionalRequestPageBufferCount;
-
-       /*
-        * 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;
-
-       /* Specific to this driver */
-       PFN_ON_OPEN OnOpen;
-       PFN_ON_CLOSE OnClose;
-       PFN_ON_SEND OnSend;
-       /* PFN_ON_RECVCOMPLETION OnReceiveCompletion; */
-
-       /* PFN_QUERY_LINKSTATUS QueryLinkStatus; */
-
-       void *Context;
-};
-
-struct netvsc_device_info {
-    unsigned char MacAddr[6];
-    bool LinkState;    /* 0 - link up, 1 - link down */
-};
-
-/* Interface */
-int NetVscInitialize(struct hv_driver *drv);
-
-#endif /* _NETVSC_API_H_ */
index f10a0cf43f3eb3c0b7ca88f731c8ecc53a209d12..bec135bc704c4b8ec9bcb7005e7113f6ce5f48fb 100644 (file)
@@ -40,7 +40,7 @@
 #include "logging.h"
 #include "vmbus.h"
 
-#include "include/NetVscApi.h"
+#include "NetVscApi.h"
 
 MODULE_LICENSE("GPL");