2017-11-24 23:41:14 +01:00
|
|
|
#pragma once
|
|
|
|
//2 PIC 8259 are available on x86
|
|
|
|
//
|
|
|
|
// Master - command: 0x20, data: 0x21
|
|
|
|
// Slave - command: 0xA0, data: 0xA1
|
|
|
|
//
|
|
|
|
// http://www.jamesmolloy.co.uk/tutorial_html/5.-IRQs%20and%20the%20PIT.html
|
|
|
|
// SimpleOS art2
|
|
|
|
// http://wiki.osdev.org/PIC
|
|
|
|
|
|
|
|
#define PIC_MASTER_CMD 0x20
|
|
|
|
#define PIC_SLAVE_CMD 0xa0
|
|
|
|
#define PIC_MASTER_DATA 0x21
|
2018-07-13 14:14:14 +02:00
|
|
|
#define PIC_SLAVE_DATA 0xa1
|
2017-11-24 23:41:14 +01:00
|
|
|
|
|
|
|
void initPic(void);
|
|
|
|
void enableIrq(int irq);
|
|
|
|
void disableIrq(int irq);
|