Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
hyperv.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  hv_kvp_ipaddr_value
 
struct  hv_kvp_hdr
 
struct  hv_kvp_exchg_msg_value
 
struct  hv_kvp_msg_enumerate
 
struct  hv_kvp_msg_get
 
struct  hv_kvp_msg_set
 
struct  hv_kvp_msg_delete
 
struct  hv_kvp_register
 
struct  hv_kvp_msg
 
struct  hv_kvp_ip_msg
 

Macros

#define HV_KVP_EXCHANGE_MAX_VALUE_SIZE   (2048)
 
#define HV_KVP_EXCHANGE_MAX_KEY_SIZE   (512)
 
#define REG_SZ   1
 
#define REG_U32   4
 
#define REG_U64   8
 
#define KVP_OP_REGISTER   4
 
#define KVP_OP_REGISTER1   100
 
#define HV_S_OK   0x00000000
 
#define HV_E_FAIL   0x80004005
 
#define HV_S_CONT   0x80070103
 
#define HV_ERROR_NOT_SUPPORTED   0x80070032
 
#define HV_ERROR_MACHINE_LOCKED   0x800704F7
 
#define HV_ERROR_DEVICE_NOT_CONNECTED   0x8007048F
 
#define HV_INVALIDARG   0x80070057
 
#define HV_GUID_NOTFOUND   0x80041002
 
#define ADDR_FAMILY_NONE   0x00
 
#define ADDR_FAMILY_IPV4   0x01
 
#define ADDR_FAMILY_IPV6   0x02
 
#define MAX_ADAPTER_ID_SIZE   128
 
#define MAX_IP_ADDR_SIZE   1024
 
#define MAX_GATEWAY_SIZE   512
 

Enumerations

enum  hv_kvp_exchg_op {
  KVP_OP_GET = 0, KVP_OP_SET, KVP_OP_DELETE, KVP_OP_ENUMERATE,
  KVP_OP_GET_IP_INFO, KVP_OP_SET_IP_INFO, KVP_OP_COUNT
}
 
enum  hv_kvp_exchg_pool {
  KVP_POOL_EXTERNAL = 0, KVP_POOL_GUEST, KVP_POOL_AUTO, KVP_POOL_AUTO_EXTERNAL,
  KVP_POOL_AUTO_INTERNAL, KVP_POOL_COUNT
}
 

Functions

struct hv_kvp_ipaddr_value __attribute__ ((packed))
 

Variables

__u16 adapter_id [MAX_ADAPTER_ID_SIZE]
 
__u8 addr_family
 
__u8 dhcp_enabled
 
__u16 ip_addr [MAX_IP_ADDR_SIZE]
 
__u16 sub_net [MAX_IP_ADDR_SIZE]
 
__u16 gate_way [MAX_GATEWAY_SIZE]
 
__u16 dns_addr [MAX_IP_ADDR_SIZE]
 
__u8 operation
 
__u8 pool
 
__u16 pad
 
__u32 value_type
 
__u32 key_size
 
__u32 value_size
 
__u8 key [HV_KVP_EXCHANGE_MAX_KEY_SIZE]
 
union {
   __u8   value [HV_KVP_EXCHANGE_MAX_VALUE_SIZE]
 
   __u32   value_u32
 
   __u64   value_u64
 
}; 
 
__u32 index
 
struct hv_kvp_exchg_msg_value data
 
struct hv_kvp_msg_get __attribute__
 
union {
   struct hv_kvp_hdr   kvp_hdr
 
   int   error
 
}; 
 
union {
   struct hv_kvp_msg_get   kvp_get
 
   struct hv_kvp_msg_set   kvp_set
 
   struct hv_kvp_msg_delete   kvp_delete
 
   struct hv_kvp_msg_enumerate   kvp_enum_data
 
   struct hv_kvp_ipaddr_value   kvp_ip_val
 
   struct hv_kvp_register   kvp_register
 
body
 

Macro Definition Documentation

#define ADDR_FAMILY_IPV4   0x01

Definition at line 198 of file hyperv.h.

#define ADDR_FAMILY_IPV6   0x02

Definition at line 199 of file hyperv.h.

#define ADDR_FAMILY_NONE   0x00

Definition at line 197 of file hyperv.h.

#define HV_E_FAIL   0x80004005

Definition at line 189 of file hyperv.h.

#define HV_ERROR_DEVICE_NOT_CONNECTED   0x8007048F

Definition at line 193 of file hyperv.h.

#define HV_ERROR_MACHINE_LOCKED   0x800704F7

Definition at line 192 of file hyperv.h.

#define HV_ERROR_NOT_SUPPORTED   0x80070032

Definition at line 191 of file hyperv.h.

#define HV_GUID_NOTFOUND   0x80041002

Definition at line 195 of file hyperv.h.

#define HV_INVALIDARG   0x80070057

Definition at line 194 of file hyperv.h.

#define HV_KVP_EXCHANGE_MAX_KEY_SIZE   (512)

Definition at line 66 of file hyperv.h.

#define HV_KVP_EXCHANGE_MAX_VALUE_SIZE   (2048)

Definition at line 58 of file hyperv.h.

#define HV_S_CONT   0x80070103

Definition at line 190 of file hyperv.h.

#define HV_S_OK   0x00000000

Definition at line 188 of file hyperv.h.

#define KVP_OP_REGISTER   4

Definition at line 154 of file hyperv.h.

#define KVP_OP_REGISTER1   100

Definition at line 163 of file hyperv.h.

#define MAX_ADAPTER_ID_SIZE   128

Definition at line 201 of file hyperv.h.

#define MAX_GATEWAY_SIZE   512

Definition at line 203 of file hyperv.h.

#define MAX_IP_ADDR_SIZE   1024

Definition at line 202 of file hyperv.h.

#define REG_SZ   1

Definition at line 121 of file hyperv.h.

#define REG_U32   4

Definition at line 122 of file hyperv.h.

#define REG_U64   8

Definition at line 123 of file hyperv.h.

Enumeration Type Documentation

Enumerator:
KVP_OP_GET 
KVP_OP_SET 
KVP_OP_DELETE 
KVP_OP_ENUMERATE 
KVP_OP_GET_IP_INFO 
KVP_OP_SET_IP_INFO 
KVP_OP_COUNT 

Definition at line 165 of file hyperv.h.

Enumerator:
KVP_POOL_EXTERNAL 
KVP_POOL_GUEST 
KVP_POOL_AUTO 
KVP_POOL_AUTO_EXTERNAL 
KVP_POOL_AUTO_INTERNAL 
KVP_POOL_COUNT 

Definition at line 175 of file hyperv.h.

Function Documentation

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

Variable Documentation

union { ... }
union { ... }

Definition at line 215 of file hyperv.h.

__u8 addr_family

Definition at line 216 of file hyperv.h.

union { ... } body

Definition at line 240 of file hyperv.h.

__u8 dhcp_enabled

Definition at line 217 of file hyperv.h.

Definition at line 221 of file hyperv.h.

int error

Definition at line 273 of file hyperv.h.

Definition at line 220 of file hyperv.h.

__u32 index

Definition at line 239 of file hyperv.h.

Definition at line 218 of file hyperv.h.

Definition at line 237 of file hyperv.h.

__u32 key_size

Definition at line 235 of file hyperv.h.

Definition at line 278 of file hyperv.h.

Definition at line 279 of file hyperv.h.

Definition at line 276 of file hyperv.h.

struct hv_kvp_hdr kvp_hdr

Definition at line 272 of file hyperv.h.

Definition at line 280 of file hyperv.h.

static void kvp_register

Definition at line 281 of file hyperv.h.

Definition at line 277 of file hyperv.h.

Definition at line 222 of file hyperv.h.

__u16 pad

Definition at line 224 of file hyperv.h.

Definition at line 223 of file hyperv.h.

Definition at line 219 of file hyperv.h.

Definition at line 239 of file hyperv.h.

__u32 value_size

Definition at line 236 of file hyperv.h.

__u32 value_type

Definition at line 234 of file hyperv.h.

__u32 value_u32

Definition at line 240 of file hyperv.h.

__u64 value_u64

Definition at line 241 of file hyperv.h.