summaryrefslogtreecommitdiff
path: root/drivers/staging/hv/include/HvHcApi.h
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2009-08-07 17:50:51 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2009-08-07 17:50:51 +1000
commiteec1ba76a0f043bdea21db10df4287bb5a4d25a8 (patch)
tree269e10ce578105322820dd426e30cf9eea7513c6 /drivers/staging/hv/include/HvHcApi.h
parent9fdbbf93bb3bb2b62335e780bb94871fc39dc5d8 (diff)
parentbb104a76ac0e6c103c36623616c7dee8cd9d165c (diff)
Merge branch 'quilt/staging'
Conflicts: drivers/staging/epl/VirtualEthernetLinux.c
Diffstat (limited to 'drivers/staging/hv/include/HvHcApi.h')
-rw-r--r--drivers/staging/hv/include/HvHcApi.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/drivers/staging/hv/include/HvHcApi.h b/drivers/staging/hv/include/HvHcApi.h
new file mode 100644
index 000000000000..034bab79c0a8
--- /dev/null
+++ b/drivers/staging/hv/include/HvHcApi.h
@@ -0,0 +1,60 @@
+/*
+ *
+ * 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>
+ *
+ */
+
+
+#pragma once
+
+
+/* Declare the various hypercall operations. */
+
+typedef enum _HV_CALL_CODE
+{
+
+ HvCallPostMessage = 0x005c,
+ HvCallSignalEvent = 0x005d,
+
+} HV_CALL_CODE, *PHV_CALL_CODE;
+
+/* Definition of the HvPostMessage hypercall input structure. */
+
+
+typedef struct _HV_INPUT_POST_MESSAGE
+{
+ HV_CONNECTION_ID ConnectionId;
+ u32 Reserved;
+ HV_MESSAGE_TYPE MessageType;
+ u32 PayloadSize;
+ u64 Payload[HV_MESSAGE_PAYLOAD_QWORD_COUNT];
+} HV_INPUT_POST_MESSAGE, *PHV_INPUT_POST_MESSAGE;
+
+
+
+/* Definition of the HvSignalEvent hypercall input structure. */
+
+
+typedef struct _HV_INPUT_SIGNAL_EVENT
+{
+ HV_CONNECTION_ID ConnectionId;
+ u16 FlagNumber;
+ u16 RsvdZ;
+} HV_INPUT_SIGNAL_EVENT, *PHV_INPUT_SIGNAL_EVENT;