xref: /freebsd/usr.sbin/bhyve/pctestdev.h (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
12f40fc6fSPeter Grehan /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
32f40fc6fSPeter Grehan  *
42f40fc6fSPeter Grehan  * Copyright (c) 2020 Adam Fenn <adam@fenn.io>
52f40fc6fSPeter Grehan  *
62f40fc6fSPeter Grehan  * Redistribution and use in source and binary forms, with or without
72f40fc6fSPeter Grehan  * modification, are permitted provided that the following conditions
82f40fc6fSPeter Grehan  * are met:
92f40fc6fSPeter Grehan  * 1. Redistributions of source code must retain the above copyright
102f40fc6fSPeter Grehan  *    notice, this list of conditions and the following disclaimer.
112f40fc6fSPeter Grehan  * 2. Redistributions in binary form must reproduce the above copyright
122f40fc6fSPeter Grehan  *    notice, this list of conditions and the following disclaimer in the
132f40fc6fSPeter Grehan  *    documentation and/or other materials provided with the distribution.
142f40fc6fSPeter Grehan  *
152f40fc6fSPeter Grehan  * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
162f40fc6fSPeter Grehan  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
172f40fc6fSPeter Grehan  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
182f40fc6fSPeter Grehan  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
192f40fc6fSPeter Grehan  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
202f40fc6fSPeter Grehan  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
212f40fc6fSPeter Grehan  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
222f40fc6fSPeter Grehan  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
232f40fc6fSPeter Grehan  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
242f40fc6fSPeter Grehan  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
252f40fc6fSPeter Grehan  * SUCH DAMAGE.
262f40fc6fSPeter Grehan  */
272f40fc6fSPeter Grehan 
282f40fc6fSPeter Grehan /*
292f40fc6fSPeter Grehan  * Emulation of selected legacy test/debug interfaces expected by KVM-unit-tests
302f40fc6fSPeter Grehan  */
312f40fc6fSPeter Grehan 
322f40fc6fSPeter Grehan #ifndef	_PCTESTDEV_H_
332f40fc6fSPeter Grehan #define	_PCTESTDEV_H_
342f40fc6fSPeter Grehan 
352f40fc6fSPeter Grehan struct vmctx;
362f40fc6fSPeter Grehan 
372f40fc6fSPeter Grehan const char	*pctestdev_getname(void);
382f40fc6fSPeter Grehan int		 pctestdev_init(struct vmctx *ctx);
392f40fc6fSPeter Grehan 
402f40fc6fSPeter Grehan #endif
41