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