xref: /openbsd-src/sys/arch/alpha/include/sysarch.h (revision 4a39ccd02c887d988c1a5398dd2142879056da5f)
1*4a39ccd0Sderaadt /*	$OpenBSD: sysarch.h,v 1.9 2012/12/05 23:20:09 deraadt Exp $	*/
2433075b6Spvalchev /*	$NetBSD: sysarch.h,v 1.8 2001/04/26 03:10:46 ross Exp $	*/
3433075b6Spvalchev 
4433075b6Spvalchev /*-
5433075b6Spvalchev  * Copyright (c) 2000 The NetBSD Foundation, Inc.
6433075b6Spvalchev  * All rights reserved.
7433075b6Spvalchev  *
8433075b6Spvalchev  * This code is derived from software contributed to The NetBSD Foundation
9433075b6Spvalchev  * by Jason R. Thorpe.
10433075b6Spvalchev  *
11433075b6Spvalchev  * Redistribution and use in source and binary forms, with or without
12433075b6Spvalchev  * modification, are permitted provided that the following conditions
13433075b6Spvalchev  * are met:
14433075b6Spvalchev  * 1. Redistributions of source code must retain the above copyright
15433075b6Spvalchev  *    notice, this list of conditions and the following disclaimer.
16433075b6Spvalchev  * 2. Redistributions in binary form must reproduce the above copyright
17433075b6Spvalchev  *    notice, this list of conditions and the following disclaimer in the
18433075b6Spvalchev  *    documentation and/or other materials provided with the distribution.
19433075b6Spvalchev  *
20433075b6Spvalchev  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
21433075b6Spvalchev  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22433075b6Spvalchev  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23433075b6Spvalchev  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
24433075b6Spvalchev  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25433075b6Spvalchev  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26433075b6Spvalchev  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27433075b6Spvalchev  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28433075b6Spvalchev  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29433075b6Spvalchev  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30433075b6Spvalchev  * POSSIBILITY OF SUCH DAMAGE.
31433075b6Spvalchev  */
32433075b6Spvalchev 
332fa72412Spirofti #ifndef _MACHINE_SYSARCH_H_
342fa72412Spirofti #define _MACHINE_SYSARCH_H_
35433075b6Spvalchev 
36433075b6Spvalchev #include <machine/ieeefp.h>
37433075b6Spvalchev 
38433075b6Spvalchev /*
39433075b6Spvalchev  * Architecture specific syscalls (ALPHA)
40433075b6Spvalchev  */
41433075b6Spvalchev 
42433075b6Spvalchev #define	ALPHA_FPGETMASK			0
43433075b6Spvalchev #define	ALPHA_FPSETMASK			1
44433075b6Spvalchev #define	ALPHA_FPSETSTICKY		2
45433075b6Spvalchev #define	ALPHA_FPGETSTICKY		6
46433075b6Spvalchev #define	ALPHA_GET_FP_C			7
47433075b6Spvalchev #define	ALPHA_SET_FP_C			8
48433075b6Spvalchev 
49433075b6Spvalchev struct alpha_fp_except_args {
50433075b6Spvalchev 	fp_except mask;
51433075b6Spvalchev };
52433075b6Spvalchev 
53433075b6Spvalchev struct alpha_fp_c_args {
54433075b6Spvalchev 	uint64_t fp_c;
55433075b6Spvalchev };
56433075b6Spvalchev 
571540486aSmartynas #ifndef _KERNEL
58*4a39ccd0Sderaadt 
59*4a39ccd0Sderaadt #include <sys/cdefs.h>
60*4a39ccd0Sderaadt 
6107db63b9Ssthen __BEGIN_DECLS
62433075b6Spvalchev int	sysarch(int, void *);
6307db63b9Ssthen __END_DECLS
641540486aSmartynas #endif /* !_KERNEL */
65433075b6Spvalchev 
662fa72412Spirofti #endif /* !_MACHINE_SYSARCH_H_ */
67