16960cd89SAndy Fiddaman /*- 2*32640292SAndy Fiddaman * SPDX-License-Identifier: BSD-2-Clause 36960cd89SAndy Fiddaman * 46960cd89SAndy Fiddaman * Copyright (c) 2020 Adam Fenn <adam@fenn.io> 56960cd89SAndy Fiddaman * 66960cd89SAndy Fiddaman * Redistribution and use in source and binary forms, with or without 76960cd89SAndy Fiddaman * modification, are permitted provided that the following conditions 86960cd89SAndy Fiddaman * are met: 96960cd89SAndy Fiddaman * 1. Redistributions of source code must retain the above copyright 106960cd89SAndy Fiddaman * notice, this list of conditions and the following disclaimer. 116960cd89SAndy Fiddaman * 2. Redistributions in binary form must reproduce the above copyright 126960cd89SAndy Fiddaman * notice, this list of conditions and the following disclaimer in the 136960cd89SAndy Fiddaman * documentation and/or other materials provided with the distribution. 146960cd89SAndy Fiddaman * 156960cd89SAndy Fiddaman * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 166960cd89SAndy Fiddaman * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 176960cd89SAndy Fiddaman * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 186960cd89SAndy Fiddaman * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE 196960cd89SAndy Fiddaman * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 206960cd89SAndy Fiddaman * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 216960cd89SAndy Fiddaman * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 226960cd89SAndy Fiddaman * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 236960cd89SAndy Fiddaman * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 246960cd89SAndy Fiddaman * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 256960cd89SAndy Fiddaman * SUCH DAMAGE. 266960cd89SAndy Fiddaman */ 276960cd89SAndy Fiddaman 286960cd89SAndy Fiddaman /* 296960cd89SAndy Fiddaman * Emulation of selected legacy test/debug interfaces expected by KVM-unit-tests 306960cd89SAndy Fiddaman */ 316960cd89SAndy Fiddaman 326960cd89SAndy Fiddaman #ifndef _PCTESTDEV_H_ 336960cd89SAndy Fiddaman #define _PCTESTDEV_H_ 346960cd89SAndy Fiddaman 356960cd89SAndy Fiddaman struct vmctx; 366960cd89SAndy Fiddaman 376960cd89SAndy Fiddaman const char *pctestdev_getname(void); 386960cd89SAndy Fiddaman int pctestdev_init(struct vmctx *ctx); 396960cd89SAndy Fiddaman 406960cd89SAndy Fiddaman #endif 41