Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249623
b: refs/heads/master
c: f63c914
h: refs/heads/master
i:
  249621: 9eda0f2
  249619: 486ab78
  249615: d0b4c38
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 17, 2011
1 parent 577e775 commit a9e3377
Show file tree
Hide file tree
Showing 18 changed files with 69 additions and 114 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c35470b2297f0e05596a7aeebff8a67f4c6e3552
refs/heads/master: f63c9149d052c86113fc84edd4ce138db44e768a
1 change: 0 additions & 1 deletion trunk/drivers/staging/hv/blkvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

#include "hyperv.h"
#include "hv_api.h"
#include "logging.h"
#include "vmbus.h"
#include "storvsc_api.h"

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/hv/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

#include "hyperv.h"
#include "hv_api.h"
#include "logging.h"
#include "vmbus_private.h"

#define NUM_PAGES_SPANNED(addr, len) \
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/hv/channel_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

#include "hyperv.h"
#include "hv_api.h"
#include "logging.h"
#include "vmbus_private.h"
#include "utils.h"

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/hv/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

#include "hyperv.h"
#include "hv_api.h"
#include "logging.h"
#include "vmbus_private.h"


Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/hv/hv.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

#include "hyperv.h"
#include "hv_api.h"
#include "logging.h"
#include "vmbus_private.h"

/* The one and only */
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/hv/hv_kvp.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <linux/workqueue.h>

#include "hyperv.h"
#include "logging.h"
#include "hv_api.h"
#include "vmbus.h"
#include "vmbus_private.h"
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

#include "hyperv.h"
#include "hv_api.h"
#include "logging.h"
#include "vmbus.h"
#include "vmbus_api.h"

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/hv/hv_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <linux/pci.h>

#include "hyperv.h"
#include "logging.h"
#include "hv_api.h"
#include "vmbus.h"
#include "vmbus_private.h"
Expand Down
68 changes: 68 additions & 0 deletions trunk/drivers/staging/hv/hyperv.h
Original file line number Diff line number Diff line change
Expand Up @@ -689,4 +689,72 @@ extern void vmbus_get_debug_info(struct vmbus_channel *channel,

extern void vmbus_ontimer(unsigned long data);


#define LOWORD(dw) ((unsigned short)(dw))
#define HIWORD(dw) ((unsigned short)(((unsigned int) (dw) >> 16) & 0xFFFF))


#define VMBUS 0x0001
#define STORVSC 0x0002
#define NETVSC 0x0004
#define INPUTVSC 0x0008
#define BLKVSC 0x0010
#define VMBUS_DRV 0x0100
#define STORVSC_DRV 0x0200
#define NETVSC_DRV 0x0400
#define INPUTVSC_DRV 0x0800
#define BLKVSC_DRV 0x1000

#define ALL_MODULES (VMBUS |\
STORVSC |\
NETVSC |\
INPUTVSC |\
BLKVSC |\
VMBUS_DRV |\
STORVSC_DRV |\
NETVSC_DRV |\
INPUTVSC_DRV|\
BLKVSC_DRV)

/* Logging Level */
#define ERROR_LVL 3
#define WARNING_LVL 4
#define INFO_LVL 6
#define DEBUG_LVL 7
#define DEBUG_LVL_ENTEREXIT 8
#define DEBUG_RING_LVL 9

extern unsigned int vmbus_loglevel;

#define DPRINT(mod, lvl, fmt, args...) do {\
if ((mod & (HIWORD(vmbus_loglevel))) && \
(lvl <= LOWORD(vmbus_loglevel))) \
printk(KERN_DEBUG #mod": %s() " fmt "\n", __func__, ## args);\
} while (0)

#define DPRINT_DBG(mod, fmt, args...) do {\
if ((mod & (HIWORD(vmbus_loglevel))) && \
(DEBUG_LVL <= LOWORD(vmbus_loglevel))) \
printk(KERN_DEBUG #mod": %s() " fmt "\n", __func__, ## args);\
} while (0)

#define DPRINT_INFO(mod, fmt, args...) do {\
if ((mod & (HIWORD(vmbus_loglevel))) && \
(INFO_LVL <= LOWORD(vmbus_loglevel))) \
printk(KERN_INFO #mod": " fmt "\n", ## args);\
} while (0)

#define DPRINT_WARN(mod, fmt, args...) do {\
if ((mod & (HIWORD(vmbus_loglevel))) && \
(WARNING_LVL <= LOWORD(vmbus_loglevel))) \
printk(KERN_WARNING #mod": WARNING! " fmt "\n", ## args);\
} while (0)

#define DPRINT_ERR(mod, fmt, args...) do {\
if ((mod & (HIWORD(vmbus_loglevel))) && \
(ERROR_LVL <= LOWORD(vmbus_loglevel))) \
printk(KERN_ERR #mod": %s() ERROR!! " fmt "\n", \
__func__, ## args);\
} while (0)

#endif /* _HYPERV_H */
98 changes: 0 additions & 98 deletions trunk/drivers/staging/hv/logging.h

This file was deleted.

1 change: 0 additions & 1 deletion trunk/drivers/staging/hv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

#include "hyperv.h"
#include "hv_api.h"
#include "logging.h"
#include "netvsc.h"
#include "rndis_filter.h"

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@

#include "hyperv.h"
#include "hv_api.h"
#include "logging.h"
#include "vmbus.h"
#include "netvsc_api.h"

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/hv/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <linux/mm.h>

#include "hyperv.h"
#include "logging.h"
#include "ring_buffer.h"


Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/hv/rndis_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <linux/netdevice.h>

#include "hyperv.h"
#include "logging.h"
#include "hv_api.h"
#include "netvsc_api.h"
#include "rndis_filter.h"
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/hv/storvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

#include "hyperv.h"
#include "hv_api.h"
#include "logging.h"
#include "storvsc_api.h"
#include "vstorage.h"

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/hv/storvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

#include "hyperv.h"
#include "hv_api.h"
#include "logging.h"
#include "vmbus.h"
#include "storvsc_api.h"
#include "vstorage.h"
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@

#include "hyperv.h"
#include "hv_api.h"
#include "logging.h"
#include "vmbus.h"
#include "vmbus_private.h"

Expand Down

0 comments on commit a9e3377

Please sign in to comment.