1 /* 2 * This file and its contents are supplied under the terms of the 3 * Common Development and Distribution License ("CDDL"), version 1.0. 4 * You may only use this file in accordance with the terms of version 5 * 1.0 of the CDDL. 6 * 7 * A full copy of the text of the CDDL should have accompanied this 8 * source. A copy of the CDDL is also available via the Internet at 9 * http://www.illumos.org/license/CDDL. 10 */ 11 /* This file is dual-licensed; see usr/src/contrib/bhyve/LICENSE */ 12 13 /* 14 * Copyright 2018 Joyent, Inc. 15 * Copyright 2021 Oxide Computer Company 16 */ 17 18 #ifndef _VM_SEG_VMM_H 19 #define _VM_SEG_VMM_H 20 21 #include <sys/vmm_vm.h> 22 23 typedef struct segvmm_crargs { 24 uchar_t prot; /* protection */ 25 uintptr_t offset; 26 vm_object_t *vmo; 27 vm_client_t *vmc; 28 } segvmm_crargs_t; 29 30 int segvmm_create(struct seg **, void *); 31 32 #endif /* _VM_SEG_VMM_H */ 33