xref: /netbsd-src/sys/arch/xen/include/xenfunc.h (revision 3eb5fd5e6de9c8c4dad8a220d95417f14d98c8ae)
1*3eb5fd5eSbouyer /*	$NetBSD: xenfunc.h,v 1.18 2019/05/09 17:09:50 bouyer Exp $	*/
241d325dcScl 
341d325dcScl /*
441d325dcScl  *
541d325dcScl  * Copyright (c) 2004 Christian Limpach.
641d325dcScl  * All rights reserved.
741d325dcScl  *
841d325dcScl  * Redistribution and use in source and binary forms, with or without
941d325dcScl  * modification, are permitted provided that the following conditions
1041d325dcScl  * are met:
1141d325dcScl  * 1. Redistributions of source code must retain the above copyright
1241d325dcScl  *    notice, this list of conditions and the following disclaimer.
1341d325dcScl  * 2. Redistributions in binary form must reproduce the above copyright
1441d325dcScl  *    notice, this list of conditions and the following disclaimer in the
1541d325dcScl  *    documentation and/or other materials provided with the distribution.
1641d325dcScl  *
1741d325dcScl  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1841d325dcScl  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1941d325dcScl  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2041d325dcScl  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2141d325dcScl  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2241d325dcScl  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2341d325dcScl  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2441d325dcScl  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2541d325dcScl  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2641d325dcScl  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2741d325dcScl  */
2841d325dcScl 
2941d325dcScl 
3041d325dcScl #ifndef _XEN_XENFUNC_H_
3141d325dcScl #define _XEN_XENFUNC_H_
3241d325dcScl 
334e541343Sbouyer #include <xen/xen.h>
344e541343Sbouyer #include <xen/hypervisor.h>
354e541343Sbouyer #include <xen/evtchn.h>
364e541343Sbouyer #include <xen/xenpmap.h>
3741d325dcScl #include <machine/pte.h>
3841d325dcScl 
39d9eb2ac8Scherry u_long xen_read_psl(void);
40d9eb2ac8Scherry void xen_write_psl(u_long);
41d9eb2ac8Scherry 
4241d325dcScl void xen_set_ldt(vaddr_t, uint32_t);
4341d325dcScl #endif /* _XEN_XENFUNC_H_ */
44