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