1*ce489a5eSPatrick Mooney /* 2*ce489a5eSPatrick Mooney * This file and its contents are supplied under the terms of the 3*ce489a5eSPatrick Mooney * Common Development and Distribution License ("CDDL"), version 1.0. 4*ce489a5eSPatrick Mooney * You may only use this file in accordance with the terms of version 5*ce489a5eSPatrick Mooney * 1.0 of the CDDL. 6*ce489a5eSPatrick Mooney * 7*ce489a5eSPatrick Mooney * A full copy of the text of the CDDL should have accompanied this 8*ce489a5eSPatrick Mooney * source. A copy of the CDDL is also available via the Internet at 9*ce489a5eSPatrick Mooney * http://www.illumos.org/license/CDDL. 10*ce489a5eSPatrick Mooney */ 11*ce489a5eSPatrick Mooney 12*ce489a5eSPatrick Mooney /* 13*ce489a5eSPatrick Mooney * Copyright 2024 Oxide Computer Company 14*ce489a5eSPatrick Mooney */ 15*ce489a5eSPatrick Mooney 16*ce489a5eSPatrick Mooney #ifndef _VIONA_SUITE_H 17*ce489a5eSPatrick Mooney #define _VIONA_SUITE_H 18*ce489a5eSPatrick Mooney 19*ce489a5eSPatrick Mooney #include <libdladm.h> 20*ce489a5eSPatrick Mooney 21*ce489a5eSPatrick Mooney /* 22*ce489a5eSPatrick Mooney * Shared definitions for tests included in viona suite of tests. 23*ce489a5eSPatrick Mooney */ 24*ce489a5eSPatrick Mooney 25*ce489a5eSPatrick Mooney /* 26*ce489a5eSPatrick Mooney * Name of simnet link create viona instances upon. 27*ce489a5eSPatrick Mooney * 28*ce489a5eSPatrick Mooney * This is created and destroyed by the setup.ksh/cleanup.ksh scripts, and the 29*ce489a5eSPatrick Mooney * name must be kept in sync with them. 30*ce489a5eSPatrick Mooney */ 31*ce489a5eSPatrick Mooney #define VIONA_TEST_IFACE_NAME "bhyvetest_viona0" 32*ce489a5eSPatrick Mooney 33*ce489a5eSPatrick Mooney #define VIONA_DEV "/dev/viona" 34*ce489a5eSPatrick Mooney 35*ce489a5eSPatrick Mooney int open_viona(void); 36*ce489a5eSPatrick Mooney dladm_status_t query_dlid(const char *, datalink_id_t *); 37*ce489a5eSPatrick Mooney 38*ce489a5eSPatrick Mooney #endif /* _VIONA_SUITE_H */ 39