xref: /illumos-gate/usr/src/compat/bhyve/sys/sglist.h (revision d0b3c59b)
1bf21cd93STycho Nightingale /*
2bf21cd93STycho Nightingale  * This file and its contents are supplied under the terms of the
3bf21cd93STycho Nightingale  * Common Development and Distribution License ("CDDL"), version 1.0.
4bf21cd93STycho Nightingale  * You may only use this file in accordance with the terms of version
5bf21cd93STycho Nightingale  * 1.0 of the CDDL.
6bf21cd93STycho Nightingale  *
7bf21cd93STycho Nightingale  * A full copy of the text of the CDDL should have accompanied this
8bf21cd93STycho Nightingale  * source.  A copy of the CDDL is also available via the Internet at
9bf21cd93STycho Nightingale  * http://www.illumos.org/license/CDDL.
10bf21cd93STycho Nightingale  */
11bf21cd93STycho Nightingale 
12bf21cd93STycho Nightingale /*
134c87aefeSPatrick Mooney  * Copyright 2017 Joyent, Inc.
14bf21cd93STycho Nightingale  */
15bf21cd93STycho Nightingale 
164c87aefeSPatrick Mooney #ifndef _COMPAT_FREEBSD_SYS_SGLIST_H_
174c87aefeSPatrick Mooney #define	_COMPAT_FREEBSD_SYS_SGLIST_H_
18bf21cd93STycho Nightingale 
194c87aefeSPatrick Mooney #ifdef _KERNEL
20bf21cd93STycho Nightingale 
214c87aefeSPatrick Mooney struct sglist;
224c87aefeSPatrick Mooney 
234c87aefeSPatrick Mooney struct sglist *sglist_alloc(int, int);
244c87aefeSPatrick Mooney void sglist_free(struct sglist *);
254c87aefeSPatrick Mooney int sglist_append_phys(struct sglist *, vm_paddr_t, size_t);
264c87aefeSPatrick Mooney 
274c87aefeSPatrick Mooney #endif /* _KERNEL */
284c87aefeSPatrick Mooney 
294c87aefeSPatrick Mooney #endif	/* _COMPAT_FREEBSD_SYS_SGLIST_H_ */
30