blob: 055e22a87c04cb6e0c172062ebf087da7a4a1b24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
void init_pic()
{
ioport_out(PIC1_COMMAND_PORT, 0x11);
ioport_out(PIC2_COMMAND_PORT, 0x11);
ioport_out(PIC1_DATA_PORT, 0x20);
ioport_out(PIC2_DATA_PORT, 0x28);
ioport_out(PIC1_DATA_PORT, 0x04);
ioport_out(PIC2_DATA_PORT, 0x02);
ioport_out(PIC1_DATA_PORT, 0x01);
ioport_out(PIC2_DATA_PORT, 0x01);
ioport_out(PIC1_DATA_PORT, 0xff);
ioport_out(PIC2_DATA_PORT, 0xff);
ioport_out(PIC1_DATA_PORT, 0xFC);
}
|