summaryrefslogtreecommitdiffstats
path: root/sys/dev/hyperv/utilities/hv_util.h
diff options
context:
space:
mode:
authorsephe <sephe@FreeBSD.org>2016-10-13 01:43:15 +0000
committersephe <sephe@FreeBSD.org>2016-10-13 01:43:15 +0000
commit77f1bb908895d8de1488000f873da71fbdf25d25 (patch)
tree2b37086e7451faf61ac4e5270e7b14fd8aae2dda /sys/dev/hyperv/utilities/hv_util.h
parentcec90d75d1d83dbec8e8e6fb5a3446ef4e085236 (diff)
downloadFreeBSD-src-77f1bb908895d8de1488000f873da71fbdf25d25.zip
FreeBSD-src-77f1bb908895d8de1488000f873da71fbdf25d25.tar.gz
MFC 303822-303824
303822 hyperv/ic: Remove never used second parameter of hv_negotiate_version() Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7422 303823 hyperv/ic: Expose the receive buffer length for callers to use. Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7423 303824 hyperv/ic: Pass the channel callback to hv_util_attach() The saved channel callback in util softc is actually never used. Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7424
Diffstat (limited to 'sys/dev/hyperv/utilities/hv_util.h')
-rw-r--r--sys/dev/hyperv/utilities/hv_util.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/sys/dev/hyperv/utilities/hv_util.h b/sys/dev/hyperv/utilities/hv_util.h
index 09202e7..8cc9fda 100644
--- a/sys/dev/hyperv/utilities/hv_util.h
+++ b/sys/dev/hyperv/utilities/hv_util.h
@@ -31,23 +31,20 @@
#ifndef _HVUTIL_H_
#define _HVUTIL_H_
+#include <dev/hyperv/include/vmbus.h>
+
/**
* hv_util related structures
*
*/
typedef struct hv_util_sc {
- /*
- * function to process Hyper-V messages
- */
- void (*callback)(struct vmbus_channel *, void *);
uint8_t *receive_buffer;
+ int ic_buflen;
} hv_util_sc;
-void hv_negotiate_version(
- struct hv_vmbus_icmsg_hdr* icmsghdrp,
- struct hv_vmbus_icmsg_negotiate* negop,
- uint8_t* buf);
+void hv_negotiate_version(struct hv_vmbus_icmsg_hdr *icmsghdrp, uint8_t *buf);
-int hv_util_attach(device_t dev);
+int hv_util_attach(device_t dev, vmbus_chan_callback_t cb);
int hv_util_detach(device_t dev);
+
#endif
OpenPOWER on IntegriCloud