X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=test%2Fgeekos_test_vm%2Finclude%2Fgeekos%2Firq.h;fp=test%2Fgeekos_test_vm%2Finclude%2Fgeekos%2Firq.h;h=31641700862be0e222497331a4f7de4028e77aa7;hp=0000000000000000000000000000000000000000;hb=a70930549d1b741704dd7af4e6bb0e89f6f8a519;hpb=afb634a80f946634454a5d067a92aa600227bd93 diff --git a/test/geekos_test_vm/include/geekos/irq.h b/test/geekos_test_vm/include/geekos/irq.h new file mode 100644 index 0000000..3164170 --- /dev/null +++ b/test/geekos_test_vm/include/geekos/irq.h @@ -0,0 +1,28 @@ +/* + * This is the device-driver interface to the interrupt system. + * Copyright (c) 2001,2003 David H. Hovemeyer + * $Revision: 1.1 $ + * + * This is free software. You are permitted to use, + * redistribute, and modify it as specified in the file "COPYING". + */ + +#ifndef GEEKOS_IRQ_H +#define GEEKOS_IRQ_H + +#include + +void Install_IRQ(int irq, Interrupt_Handler handler); +ushort_t Get_IRQ_Mask(void); +void Set_IRQ_Mask(ushort_t mask); +void Enable_IRQ(int irq); +void Disable_IRQ(int irq); + +/* + * IRQ handlers should call these to begin and end the + * interrupt. + */ +void Begin_IRQ(struct Interrupt_State* state); +void End_IRQ(struct Interrupt_State* state); + +#endif /* GEEKOS_IRQ_H */