Home | History | Annotate | Line # | Download | only in include
sysarch.h revision 1.7
      1 /*	$NetBSD: sysarch.h,v 1.7 1995/10/11 04:20:26 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 
     15 struct i386_get_ldt_args {
     16 	int start;
     17 	union descriptor *desc;
     18 	int num;
     19 };
     20 
     21 struct i386_set_ldt_args {
     22 	int start;
     23 	union descriptor *desc;
     24 	int num;
     25 };
     26 
     27 struct i386_iopl_args {
     28 	int iopl;
     29 };
     30 
     31 struct i386_get_ioperm_args {
     32 	u_long *iomap;
     33 };
     34 
     35 struct i386_set_ioperm_args {
     36 	u_long *iomap;
     37 };
     38 
     39 #ifndef _KERNEL
     40 int i386_get_ldt __P((int, union descriptor *, int));
     41 int i386_set_ldt __P((int, union descriptor *, int));
     42 int i386_iopl __P((int));
     43 int i386_get_ioperm __P((u_long *));
     44 int i386_set_ioperm __P((u_long *));
     45 int sysarch __P((int, char *));
     46 #endif
     47 
     48 #endif /* !_I386_SYSARCH_H_ */
     49