summaryrefslogtreecommitdiffstats
path: root/sys/dev/hyperv/include/hyperv.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/hyperv/include/hyperv.h')
-rw-r--r--sys/dev/hyperv/include/hyperv.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/dev/hyperv/include/hyperv.h b/sys/dev/hyperv/include/hyperv.h
index e757da6..aeec8ec 100644
--- a/sys/dev/hyperv/include/hyperv.h
+++ b/sys/dev/hyperv/include/hyperv.h
@@ -691,7 +691,6 @@ typedef struct {
} hv_vmbus_ring_buffer_info;
typedef void (*hv_vmbus_pfn_channel_callback)(void *context);
-typedef void (*hv_vmbus_sc_creation_callback)(void *context);
typedef enum {
HV_CHANNEL_OFFER_STATE,
@@ -804,13 +803,6 @@ typedef struct hv_vmbus_channel {
* response on the same channel.
*/
- /*
- * Multi-channel creation callback. This callback will be called in
- * process context when a Multi-channel offer is received from the host.
- * The guest can open the Multi-channel in the context of this callback.
- */
- hv_vmbus_sc_creation_callback sc_creation_callback;
-
struct mtx sc_lock;
/*
@@ -818,6 +810,7 @@ typedef struct hv_vmbus_channel {
*/
TAILQ_HEAD(, hv_vmbus_channel) sc_list_anchor;
TAILQ_ENTRY(hv_vmbus_channel) sc_list_entry;
+ int subchan_cnt;
/*
* The primary channel this sub-channle belongs to.
@@ -914,6 +907,9 @@ int hv_vmbus_channel_teardown_gpdal(
struct hv_vmbus_channel* vmbus_select_outgoing_channel(struct hv_vmbus_channel *promary);
void vmbus_channel_cpu_set(struct hv_vmbus_channel *chan, int cpu);
+struct hv_vmbus_channel **
+ vmbus_get_subchan(struct hv_vmbus_channel *pri_chan, int subchan_cnt);
+void vmbus_rel_subchan(struct hv_vmbus_channel **subchan, int subchan_cnt);
/**
* @brief Get physical address from virtual
OpenPOWER on IntegriCloud