This moves osd.h out of the include/ subdirectory.
No code changes are made here.
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
#include <linux/kernel.h>
#include <linux/mm.h>
+#include "osd.h"
#include "StorVsc.c"
static const char* gBlkDriverName="blkvsc";
#include <linux/kernel.h>
#include <linux/mm.h>
-#include "include/osd.h"
+#include "osd.h"
#include "include/logging.h"
#include "VmbusPrivate.h"
#ifndef _CHANNEL_H_
#define _CHANNEL_H_
-#include "include/osd.h"
#include "ChannelMgmt.h"
/* The format must be the same as VMDATA_GPA_DIRECT */
#include <linux/kernel.h>
#include <linux/mm.h>
-#include "include/osd.h"
-
+#include "osd.h"
#include "VmbusPrivate.h"
static int
#include <linux/kernel.h>
#include <linux/mm.h>
-#include "include/osd.h"
+#include "osd.h"
#include "include/logging.h"
#include "VmbusPrivate.h"
#ifndef _CHANNEL_MGMT_H_
#define _CHANNEL_MGMT_H_
-#include "include/osd.h"
#include "include/List.h"
#include "RingBuffer.h"
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/vmalloc.h>
+#include "osd.h"
#include "include/logging.h"
#include "VmbusPrivate.h"
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/vmalloc.h>
+#include "osd.h"
#include "include/logging.h"
#include "VmbusPrivate.h"
#ifndef __HV_H__
#define __HV_H__
-#include "include/osd.h"
-
#include "include/HvTypes.h"
#include "include/HvStatus.h"
#include "include/HvHalApi.h"
#include <linux/mm.h>
#include <linux/delay.h>
#include <asm/io.h>
+#include "osd.h"
#include "include/logging.h"
#include "NetVsc.h"
#include "RndisFilter.h"
#include <linux/kernel.h>
#include <linux/mm.h>
+#include "osd.h"
#include "include/logging.h"
#include "RingBuffer.h"
#include <linux/scatterlist.h>
-#include "include/osd.h"
-
typedef struct _RING_BUFFER {
/* Offset in bytes from the start of ring data below */
volatile u32 WriteIndex;
#include <asm/kmap_types.h>
#include <asm/io.h>
+#include "osd.h"
#include "include/logging.h"
-
#include "include/NetVscApi.h"
#include "RndisFilter.h"
#define __struct_bcount(x)
-#include "include/osd.h"
#include "NetVsc.h"
#include "include/rndis.h"
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/delay.h>
+#include "osd.h"
#include "include/logging.h"
-
#include "include/StorVscApi.h"
#include "include/VmbusPacketFormat.h"
#include "include/vstorage.h"
#include <linux/kernel.h>
#include <linux/mm.h>
+#include "osd.h"
#include "include/logging.h"
#include "VersionInfo.h"
#include "VmbusPrivate.h"
#include <scsi/scsi_eh.h>
#include <scsi/scsi_dbg.h>
+#include "osd.h"
#include "include/logging.h"
#include "include/vmbus.h"
#ifndef _LIST_H_
#define _LIST_H_
-#include "osd.h"
/*
*
* Doubly-linked list manipulation routines. Implemented as macros
#ifndef _VMBUS_API_H_
#define _VMBUS_API_H_
-#include "osd.h"
/* Defines */
/* #include <linux/init.h> */
/* #include <linux/module.h> */
-#include "osd.h"
#define VMBUS 0x0001
#define STORVSC 0x0002
+++ /dev/null
-/*
- *
- * 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 _OSD_H_
-#define _OSD_H_
-
-
-/* Defines */
-
-
-
-#define ALIGN_UP(value, align) ( ((value) & (align-1))? ( ((value) + (align-1)) & ~(align-1) ): (value) )
-#define ALIGN_DOWN(value, align) ( (value) & ~(align-1) )
-#define NUM_PAGES_SPANNED(addr, len) ( (ALIGN_UP(addr+len, PAGE_SIZE) - ALIGN_DOWN(addr, PAGE_SIZE)) >> PAGE_SHIFT )
-
-#define LOWORD(dw) ((unsigned short) (dw))
-#define HIWORD(dw) ((unsigned short) (((unsigned int) (dw) >> 16) & 0xFFFF))
-
-typedef struct _DLIST_ENTRY {
- struct _DLIST_ENTRY *Flink;
- struct _DLIST_ENTRY *Blink;
-} DLIST_ENTRY;
-
-
-/* Other types */
-
-/* typedef unsigned char GUID[16]; */
-
-typedef struct {
- unsigned char Data[16];
-} GUID;
-
-struct osd_waitevent {
- int condition;
- wait_queue_head_t event;
-};
-
-/* Osd routines */
-
-extern void *osd_VirtualAllocExec(unsigned int size);
-
-extern void *osd_PageAlloc(unsigned int count);
-extern void osd_PageFree(void* page, unsigned int count);
-
-extern struct osd_waitevent *osd_WaitEventCreate(void);
-extern void osd_WaitEventSet(struct osd_waitevent *waitEvent);
-extern int osd_WaitEventWait(struct osd_waitevent *waitEvent);
-
-/* If >0, waitEvent got signaled. If ==0, timeout. If < 0, error */
-extern int osd_WaitEventWaitEx(struct osd_waitevent *waitEvent, u32 TimeoutInMs);
-
-
-int osd_schedule_callback(struct workqueue_struct *wq,
- void (*func)(void *),
- void *data);
-
-#endif /* _OSD_H_ */
#include <net/sock.h>
#include <net/pkt_sched.h>
+#include "osd.h"
#include "include/logging.h"
#include "include/vmbus.h"
#include <asm/kmap_types.h>
#include <asm/atomic.h>
-#include "include/osd.h"
+#include "osd.h"
/* Data types */
--- /dev/null
+/*
+ *
+ * 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 _OSD_H_
+#define _OSD_H_
+
+
+/* Defines */
+
+
+
+#define ALIGN_UP(value, align) ( ((value) & (align-1))? ( ((value) + (align-1)) & ~(align-1) ): (value) )
+#define ALIGN_DOWN(value, align) ( (value) & ~(align-1) )
+#define NUM_PAGES_SPANNED(addr, len) ( (ALIGN_UP(addr+len, PAGE_SIZE) - ALIGN_DOWN(addr, PAGE_SIZE)) >> PAGE_SHIFT )
+
+#define LOWORD(dw) ((unsigned short) (dw))
+#define HIWORD(dw) ((unsigned short) (((unsigned int) (dw) >> 16) & 0xFFFF))
+
+typedef struct _DLIST_ENTRY {
+ struct _DLIST_ENTRY *Flink;
+ struct _DLIST_ENTRY *Blink;
+} DLIST_ENTRY;
+
+
+/* Other types */
+
+/* typedef unsigned char GUID[16]; */
+
+typedef struct {
+ unsigned char Data[16];
+} GUID;
+
+struct osd_waitevent {
+ int condition;
+ wait_queue_head_t event;
+};
+
+/* Osd routines */
+
+extern void *osd_VirtualAllocExec(unsigned int size);
+
+extern void *osd_PageAlloc(unsigned int count);
+extern void osd_PageFree(void* page, unsigned int count);
+
+extern struct osd_waitevent *osd_WaitEventCreate(void);
+extern void osd_WaitEventSet(struct osd_waitevent *waitEvent);
+extern int osd_WaitEventWait(struct osd_waitevent *waitEvent);
+
+/* If >0, waitEvent got signaled. If ==0, timeout. If < 0, error */
+extern int osd_WaitEventWaitEx(struct osd_waitevent *waitEvent, u32 TimeoutInMs);
+
+
+int osd_schedule_callback(struct workqueue_struct *wq,
+ void (*func)(void *),
+ void *data);
+
+#endif /* _OSD_H_ */
#include <scsi/scsi_dbg.h>
+#include "osd.h"
#include "include/logging.h"
#include "include/vmbus.h"
-
#include "include/StorVscApi.h"
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/sysctl.h>
-
+#include "osd.h"
#include "include/logging.h"
#include "include/vmbus.h"