diff options
author | gjb <gjb@FreeBSD.org> | 2014-09-26 02:30:47 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2014-09-26 02:30:47 +0000 |
commit | d7f74356449e59ba511e94714ccff7ee2f7219ff (patch) | |
tree | 28a75f09346b1f6fc8d967dc567ff8bd8644ca7e /sys/dev/hyperv/include | |
parent | 8c4f6ee128c206b479ac27824a2f8c5ceede92db (diff) | |
download | FreeBSD-src-d7f74356449e59ba511e94714ccff7ee2f7219ff.zip FreeBSD-src-d7f74356449e59ba511e94714ccff7ee2f7219ff.tar.gz |
Revert r272149, which introduces obscure vestiges from the
r272128 reversal.
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/dev/hyperv/include')
-rw-r--r-- | sys/dev/hyperv/include/hyperv.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sys/dev/hyperv/include/hyperv.h b/sys/dev/hyperv/include/hyperv.h index 4257b37..8a45d89 100644 --- a/sys/dev/hyperv/include/hyperv.h +++ b/sys/dev/hyperv/include/hyperv.h @@ -795,5 +795,34 @@ hv_get_phys_addr(void *virt) return (ret); } + +/** + * KVP related structures + * + */ +typedef struct hv_vmbus_service { + hv_guid guid; /* Hyper-V GUID */ + char *name; /* name of service */ + boolean_t enabled; /* service enabled */ + hv_work_queue *work_queue; /* background work queue */ + + /* + * function to initialize service + */ + int (*init)(struct hv_vmbus_service *); + + /* + * function to process Hyper-V messages + */ + void (*callback)(void *); +} hv_vmbus_service; + +extern uint8_t* receive_buffer[]; +extern hv_vmbus_service service_table[]; + +void hv_kvp_callback(void *context); +int hv_kvp_init(hv_vmbus_service *serv); +void hv_kvp_deinit(void); + #endif /* __HYPERV_H__ */ |