aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/hv
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-05-04 08:21:01 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-11 11:36:04 -0700
commitb3413092cc86d6c1b5b1408c3bb37998a82a588a (patch)
tree825322d92c1276614cd8159880e748d2bc3a814a /drivers/staging/hv
parentc88c4e4c7a427ee65556f33e6327b604ec209ec3 (diff)
Staging: hv: fix up formatting issues in utils.h
-------- cut here and print out and paste on wall -------- Tabs, not spaces -------- cut here and print out and paste on wall -------- Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv')
-rw-r--r--drivers/staging/hv/utils.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/drivers/staging/hv/utils.h b/drivers/staging/hv/utils.h
index 4e09804e5b9..0f2507dcc89 100644
--- a/drivers/staging/hv/utils.h
+++ b/drivers/staging/hv/utils.h
@@ -18,54 +18,54 @@
* Haiyang Zhang <haiyangz@microsoft.com>
* Hank Janssen <hjanssen@microsoft.com>
*/
-#ifndef _UTILS_H_
-#define _UTILS_H_
+#ifndef __HV_UTILS_H_
+#define __HV_UTILS_H_
/*
* Common header for Hyper-V ICs
*/
-#define ICMSGTYPE_NEGOTIATE 0
-#define ICMSGTYPE_HEARTBEAT 1
-#define ICMSGTYPE_KVPEXCHANGE 2
-#define ICMSGTYPE_SHUTDOWN 3
-#define ICMSGTYPE_TIMESYNC 4
-#define ICMSGTYPE_VSS 5
+#define ICMSGTYPE_NEGOTIATE 0
+#define ICMSGTYPE_HEARTBEAT 1
+#define ICMSGTYPE_KVPEXCHANGE 2
+#define ICMSGTYPE_SHUTDOWN 3
+#define ICMSGTYPE_TIMESYNC 4
+#define ICMSGTYPE_VSS 5
-#define ICMSGHDRFLAG_TRANSACTION 1
-#define ICMSGHDRFLAG_REQUEST 2
-#define ICMSGHDRFLAG_RESPONSE 4
+#define ICMSGHDRFLAG_TRANSACTION 1
+#define ICMSGHDRFLAG_REQUEST 2
+#define ICMSGHDRFLAG_RESPONSE 4
-#define HV_S_OK 0x00000000
-#define HV_E_FAIL 0x80004005
-#define HV_ERROR_NOT_SUPPORTED 0x80070032
-#define HV_ERROR_MACHINE_LOCKED 0x800704F7
+#define HV_S_OK 0x00000000
+#define HV_E_FAIL 0x80004005
+#define HV_ERROR_NOT_SUPPORTED 0x80070032
+#define HV_ERROR_MACHINE_LOCKED 0x800704F7
struct vmbuspipe_hdr {
- u32 flags;
- u32 msgsize;
+ u32 flags;
+ u32 msgsize;
} __attribute__((packed));
struct ic_version {
- u16 major;
- u16 minor;
+ u16 major;
+ u16 minor;
} __attribute__((packed));
struct icmsg_hdr {
- struct ic_version icverframe;
- u16 icmsgtype;
- struct ic_version icvermsg;
- u16 icmsgsize;
- u32 status;
- u8 ictransaction_id;
- u8 icflags;
- u8 reserved[2];
+ struct ic_version icverframe;
+ u16 icmsgtype;
+ struct ic_version icvermsg;
+ u16 icmsgsize;
+ u32 status;
+ u8 ictransaction_id;
+ u8 icflags;
+ u8 reserved[2];
} __attribute__((packed));
struct icmsg_negotiate {
- u16 icframe_vercnt;
- u16 icmsg_vercnt;
- u32 reserved;
- struct ic_version icversion_data[1]; /* any size array */
+ u16 icframe_vercnt;
+ u16 icmsg_vercnt;
+ u32 reserved;
+ struct ic_version icversion_data[1]; /* any size array */
} __attribute__((packed));
struct shutdown_msg_data {
@@ -75,7 +75,7 @@ struct shutdown_msg_data {
u8 display_message[2048];
} __attribute__((packed));
-#define HV_SHUTDOWN_MSG 0
+#define HV_SHUTDOWN_MSG 0
struct hyperv_service_callback {
u8 msg_type;
@@ -86,9 +86,9 @@ struct hyperv_service_callback {
};
extern void prep_negotiate_resp(struct icmsg_hdr *,
- struct icmsg_negotiate *, u8 *);
+ struct icmsg_negotiate *, u8 *);
extern void shutdown_linux_system(void);
extern void chn_cb_negotiate(void *);
extern struct hyperv_service_callback hv_cb_utils[];
-#endif /* _UTILS_H_ */
+#endif /* __HV_UTILS_H_ */