00001 /* 00002 ** sec.h for lseos in lseos-lib/libc/sysinterf 00003 ** 00004 ** Copyright (c)2004 Vianney Rancurel 00005 ** Login <vianney@epita.fr> 00006 ** 00007 ** Started on Tue Nov 9 16:58:02 2004 Vianney Rancurel 00008 ** Last update Mon Nov 29 18:26:08 2004 Vianney Rancurel 00009 */ 00010 #ifndef __SYSINTERF_SEC_H__ 00011 #define __SYSINTERF_SEC_H__ 1 00012 #include <libc.h> 00013 00014 #define SYSSEC_SRVREG 1 00015 #define SYSSEC_IOACQUIRE 2 00016 #define SYSSEC_IORELE 3 00017 00018 /* PROTO sec.c */ 00019 /* sec.c */ 00020 int secmgr(pid_t pid); 00021 int sec_srvreg(int cpu, int gate, union descriptor *desc); 00022 int srvreg(int cpu, int gate, union descriptor *desc); 00023 int sec_ioacquire(pid_t pid, int ioport); 00024 int sec_iorele(pid_t pid, int ioport); 00025 int ioacquire(pid_t pid, int ioport); 00026 int iorele(pid_t pid, int ioport); 00027 #endif