xref: /netbsd-src/sys/arch/i386/include/sysarch.h (revision 76dfffe33547c37f8bdd446e3e4ab0f3c16cea4b)
1 /*	$NetBSD: sysarch.h,v 1.8 1996/01/08 13:51:44 mycroft Exp $	*/
2 
3 #ifndef _I386_SYSARCH_H_
4 #define _I386_SYSARCH_H_
5 
6 /*
7  * Architecture specific syscalls (i386)
8  */
9 #define I386_GET_LDT	0
10 #define I386_SET_LDT	1
11 #define	I386_IOPL	2
12 #define	I386_GET_IOPERM	3
13 #define	I386_SET_IOPERM	4
14 #define	I386_VM86	5
15 
16 struct i386_get_ldt_args {
17 	int start;
18 	union descriptor *desc;
19 	int num;
20 };
21 
22 struct i386_set_ldt_args {
23 	int start;
24 	union descriptor *desc;
25 	int num;
26 };
27 
28 struct i386_iopl_args {
29 	int iopl;
30 };
31 
32 struct i386_get_ioperm_args {
33 	u_long *iomap;
34 };
35 
36 struct i386_set_ioperm_args {
37 	u_long *iomap;
38 };
39 
40 #ifndef _KERNEL
41 int i386_get_ldt __P((int, union descriptor *, int));
42 int i386_set_ldt __P((int, union descriptor *, int));
43 int i386_iopl __P((int));
44 int i386_get_ioperm __P((u_long *));
45 int i386_set_ioperm __P((u_long *));
46 int sysarch __P((int, char *));
47 #endif
48 
49 #endif /* !_I386_SYSARCH_H_ */
50