vmbus_if.m revision 307448
1302629Ssephe#- 2302629Ssephe# Copyright (c) 2016 Microsoft Corp. 3302629Ssephe# All rights reserved. 4302629Ssephe# 5302629Ssephe# Redistribution and use in source and binary forms, with or without 6302629Ssephe# modification, are permitted provided that the following conditions 7302629Ssephe# are met: 8302629Ssephe# 1. Redistributions of source code must retain the above copyright 9302629Ssephe# notice unmodified, this list of conditions, and the following 10302629Ssephe# disclaimer. 11302629Ssephe# 2. Redistributions in binary form must reproduce the above copyright 12302629Ssephe# notice, this list of conditions and the following disclaimer in the 13302629Ssephe# documentation and/or other materials provided with the distribution. 14302629Ssephe# 15302629Ssephe# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16302629Ssephe# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17302629Ssephe# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18302629Ssephe# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19302629Ssephe# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20302629Ssephe# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21302629Ssephe# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22302629Ssephe# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23302629Ssephe# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24302629Ssephe# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25302629Ssephe# 26302629Ssephe# $FreeBSD: stable/11/sys/dev/hyperv/vmbus/vmbus_if.m 307448 2016-10-17 01:47:49Z sephe $ 27302629Ssephe# 28302629Ssephe 29302629Ssephe#include <sys/param.h> 30302629Ssephe#include <sys/bus.h> 31302629Ssephe 32302629SsepheINTERFACE vmbus; 33302629Ssephe 34307307SsepheHEADER { 35307448Ssephe struct hyperv_guid; 36307307Ssephe}; 37307307Ssephe 38302629SsepheMETHOD uint32_t get_version { 39302629Ssephe device_t bus; 40302629Ssephe device_t dev; 41302629Ssephe}; 42307307Ssephe 43307307SsepheMETHOD int probe_guid { 44307307Ssephe device_t bus; 45307307Ssephe device_t dev; 46307448Ssephe const struct hyperv_guid *guid; 47307307Ssephe}; 48