Subversion Repositories HelenOS

Rev

Rev 2787 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2787 Rev 4377
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
/** @addtogroup ia32   
29
/** @addtogroup ia32
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
33
 */
33
 */
34
 
34
 
Line 36... Line 36...
36
#define KERN_ia32_I8259_H_
36
#define KERN_ia32_I8259_H_
37
 
37
 
38
#include <arch/types.h>
38
#include <arch/types.h>
39
#include <arch/interrupt.h>
39
#include <arch/interrupt.h>
40
 
40
 
41
#define PIC_PIC0PORT1   0x20
41
#define PIC_PIC0PORT1  ((ioport8_t *) 0x20)
42
#define PIC_PIC0PORT2   0x21
42
#define PIC_PIC0PORT2  ((ioport8_t *) 0x21)
43
#define PIC_PIC1PORT1   0xa0
43
#define PIC_PIC1PORT1  ((ioport8_t *) 0xa0)
44
#define PIC_PIC1PORT2   0xa1
44
#define PIC_PIC1PORT2  ((ioport8_t *) 0xa1)
45
 
45
 
46
#define PIC_NEEDICW4    (1<<0)
46
#define PIC_NEEDICW4  (1 << 0)
47
#define PIC_ICW1    (1<<4)
47
#define PIC_ICW1      (1 << 4)
48
 
48
 
49
extern void i8259_init(void);
49
extern void i8259_init(void);
50
extern void pic_enable_irqs(uint16_t irqmask);
50
extern void pic_enable_irqs(uint16_t irqmask);
51
extern void pic_disable_irqs(uint16_t irqmask);
51
extern void pic_disable_irqs(uint16_t irqmask);
52
extern void pic_eoi(void);
52
extern void pic_eoi(void);