hv_kvp.h (255414) | hv_kvp.h (255427) |
---|---|
1/*- 2 * Copyright (c) 2009-2012 Microsoft Corp. 3 * Copyright (c) 2012 NetApp Inc. 4 * Copyright (c) 2012 Citrix Inc. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 236 unchanged lines hidden (view full) --- 245struct hv_kvp_ip_msg { 246 uint8_t operation; 247 uint8_t pool; 248 struct hv_kvp_ipaddr_value kvp_ip_val; 249} __attribute__((packed)); 250 251#define BSD_SOC_PATH "/etc/hyperv/socket" 252 | 1/*- 2 * Copyright (c) 2009-2012 Microsoft Corp. 3 * Copyright (c) 2012 NetApp Inc. 4 * Copyright (c) 2012 Citrix Inc. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 236 unchanged lines hidden (view full) --- 245struct hv_kvp_ip_msg { 246 uint8_t operation; 247 uint8_t pool; 248 struct hv_kvp_ipaddr_value kvp_ip_val; 249} __attribute__((packed)); 250 251#define BSD_SOC_PATH "/etc/hyperv/socket" 252 |
253#define HV_SHUT_DOWN 0 254#define HV_TIME_SYNCH 1 255#define HV_HEART_BEAT 2 256#define HV_KVP 3 257#define HV_MAX_UTIL_SERVICES 4 | 253#define HV_SHUT_DOWN 0 254#define HV_TIME_SYNCH 1 255#define HV_HEART_BEAT 2 256#define HV_KVP 3 257#define HV_MAX_UTIL_SERVICES 4 |
258 259#define HV_WLTIMEDELTA 116444736000000000L /* in 100ns unit */ 260#define HV_ICTIMESYNCFLAG_PROBE 0 261#define HV_ICTIMESYNCFLAG_SYNC 1 262#define HV_ICTIMESYNCFLAG_SAMPLE 2 | 258 259#define HV_WLTIMEDELTA 116444736000000000L /* in 100ns unit */ 260#define HV_ICTIMESYNCFLAG_PROBE 0 261#define HV_ICTIMESYNCFLAG_SYNC 1 262#define HV_ICTIMESYNCFLAG_SAMPLE 2 |
263#define HV_NANO_SEC_PER_SEC 1000000000 | 263#define HV_NANO_SEC_PER_SEC 1000000000 |
264 265typedef struct hv_vmbus_service { 266 hv_guid guid; /* Hyper-V GUID */ 267 char* name; /* name of service */ 268 boolean_t enabled; /* service enabled */ 269 hv_work_queue* work_queue; /* background work queue */ 270 271 // --- 5 unchanged lines hidden (view full) --- 277 // function to process Hyper-V messages 278 // 279 void (*callback)(void *); 280} hv_vmbus_service; 281 282extern uint8_t* receive_buffer[]; 283extern hv_vmbus_service service_table[]; 284 | 264 265typedef struct hv_vmbus_service { 266 hv_guid guid; /* Hyper-V GUID */ 267 char* name; /* name of service */ 268 boolean_t enabled; /* service enabled */ 269 hv_work_queue* work_queue; /* background work queue */ 270 271 // --- 5 unchanged lines hidden (view full) --- 277 // function to process Hyper-V messages 278 // 279 void (*callback)(void *); 280} hv_vmbus_service; 281 282extern uint8_t* receive_buffer[]; 283extern hv_vmbus_service service_table[]; 284 |
285void hv_kvp_callback(void *context); 286int hv_kvp_init(hv_vmbus_service *serv); | |
287#endif /* _KVP_H */ | 285#endif /* _KVP_H */ |