diff options
| author | K. Y. Srinivasan <kys@microsoft.com> | 2012-02-02 19:56:48 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-09 11:32:43 -0500 |
| commit | 59a084a70afa0678bda2a23a7bc7cc59664945c7 (patch) | |
| tree | 8c3e8f469460cfb33adad68f03780b172f7bbcf2 /include/linux | |
| parent | 976a0be03a15f1c268e3f569c0ade3e7ff8ce478 (diff) | |
drivers: hv: Cleanup the kvp related state in hyperv.h
Now cleanup the hyperv.h with regards to KVP definitions.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/hyperv.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 7332b3faecc8..b822978ecbc8 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h | |||
| @@ -137,7 +137,6 @@ struct hv_ku_msg { | |||
| 137 | 137 | ||
| 138 | 138 | ||
| 139 | 139 | ||
| 140 | #ifdef __KERNEL__ | ||
| 141 | 140 | ||
| 142 | /* | 141 | /* |
| 143 | * Registry value types. | 142 | * Registry value types. |
| @@ -163,28 +162,30 @@ enum hv_kvp_exchg_pool { | |||
| 163 | }; | 162 | }; |
| 164 | 163 | ||
| 165 | struct hv_kvp_hdr { | 164 | struct hv_kvp_hdr { |
| 166 | u8 operation; | 165 | __u8 operation; |
| 167 | u8 pool; | 166 | __u8 pool; |
| 168 | }; | 167 | __u16 pad; |
| 168 | } __attribute__((packed)); | ||
| 169 | 169 | ||
| 170 | struct hv_kvp_exchg_msg_value { | 170 | struct hv_kvp_exchg_msg_value { |
| 171 | u32 value_type; | 171 | __u32 value_type; |
| 172 | u32 key_size; | 172 | __u32 key_size; |
| 173 | u32 value_size; | 173 | __u32 value_size; |
| 174 | u8 key[HV_KVP_EXCHANGE_MAX_KEY_SIZE]; | 174 | __u8 key[HV_KVP_EXCHANGE_MAX_KEY_SIZE]; |
| 175 | u8 value[HV_KVP_EXCHANGE_MAX_VALUE_SIZE]; | 175 | __u8 value[HV_KVP_EXCHANGE_MAX_VALUE_SIZE]; |
| 176 | }; | 176 | } __attribute__((packed)); |
| 177 | 177 | ||
| 178 | struct hv_kvp_msg_enumerate { | 178 | struct hv_kvp_msg_enumerate { |
| 179 | u32 index; | 179 | __u32 index; |
| 180 | struct hv_kvp_exchg_msg_value data; | 180 | struct hv_kvp_exchg_msg_value data; |
| 181 | }; | 181 | } __attribute__((packed)); |
| 182 | 182 | ||
| 183 | struct hv_kvp_msg { | 183 | struct hv_kvp_msg { |
| 184 | struct hv_kvp_hdr kvp_hdr; | 184 | struct hv_kvp_hdr kvp_hdr; |
| 185 | struct hv_kvp_msg_enumerate kvp_data; | 185 | struct hv_kvp_msg_enumerate kvp_data; |
| 186 | }; | 186 | } __attribute__((packed)); |
| 187 | 187 | ||
| 188 | #ifdef __KERNEL__ | ||
| 188 | #include <linux/scatterlist.h> | 189 | #include <linux/scatterlist.h> |
| 189 | #include <linux/list.h> | 190 | #include <linux/list.h> |
| 190 | #include <linux/uuid.h> | 191 | #include <linux/uuid.h> |
