xref: /illumos-gate/usr/src/uts/intel/io/vmm/sys/seg_vmm.h (revision dd72704bd9e794056c558153663c739e2012d721)
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 
12 /*
13  * Copyright 2018 Joyent, Inc.
14  * Copyright 2021 Oxide Computer Company
15  */
16 
17 #ifndef	_VM_SEG_VMM_H
18 #define	_VM_SEG_VMM_H
19 
20 #include <sys/vmm_vm.h>
21 
22 typedef struct segvmm_crargs {
23 	uchar_t		prot;		/* protection */
24 	uintptr_t	offset;
25 	vm_object_t	*vmo;
26 	vm_client_t	*vmc;
27 } segvmm_crargs_t;
28 
29 int segvmm_create(struct seg **, void *);
30 
31 #endif	/* _VM_SEG_VMM_H */
32