X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=bootcensus;a=blobdiff_plain;f=src%2Fintr.h;h=fe6ed4403fb7e11188a08048eb87fa76faa48545;hp=04c775ce906faea4286e62a0bdce5020506c553c;hb=e253f9a0cad14f636a51f6211308491ab19dfbe5;hpb=a2f94f569a4c99204de02814a20098a71527e913 diff --git a/src/intr.h b/src/intr.h index 04c775c..fe6ed44 100644 --- a/src/intr.h +++ b/src/intr.h @@ -1,3 +1,20 @@ +/* +pcboot - bootable PC demo/game kernel +Copyright (C) 2018 John Tsiombikas + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY, without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ #ifndef INTR_H_ #define INTR_H_ @@ -55,6 +72,11 @@ void interrupt(int intr_num, intr_func_t func); */ void set_intr_entry(int num, void (*handler)(void)); +void set_pic_mask(int pic, unsigned char mask); +unsigned char get_pic_mask(int pic); +void mask_irq(int irq); +void unmask_irq(int irq); + /* defined in intr_asm.S */ int get_intr_flag(void); void set_intr_flag(int onoff);