00001 /* 00002 ** libpic.h for lseos in lseos-srv/hw/pic 00003 ** 00004 ** Copyright(c)2004 Vianney Rancurel 00005 ** Login <vianney@epita.fr> 00006 ** 00007 ** Started on Wed Mar 3 12:27:20 2004 Vianney Rancurel 00008 ** Last update Mon Dec 6 12:22:46 2004 Vianney Rancurel 00009 */ 00010 #ifndef __LIBPIC_H__ 00011 #define __LIBPIC_H__ 1 00012 #include <libc.h> 00013 00014 #define SYSPIC_REGISTER 1 00015 #define SYSPIC_UNREGISTER 2 00016 #define SYSPIC_ENABLE 3 00017 #define SYSPIC_DISABLE 4 00018 #define SYSPIC_EOI 5 00019 #define SYSPIC_ALLOW 6 00020 #define SYSPIC_DISALLOW 7 00021 00022 #define SYSPIC_DUMP 10 00023 00024 /* PROTO libpic.c */ 00025 /* libpic.c */ 00026 int pic_register(int intr); 00027 int pic_unregister(int intr); 00028 int pic_enable(int intr); 00029 int pic_disable(int intr); 00030 int pic_eoi(int intr); 00031 int pic_allow(int intr, pid_t pid); 00032 int pic_disallow(int intr, pid_t pid); 00033 int pic_dump(void); 00034 #endif