From 0bff8199e4a800d5ea1bd422dcf06643d6daf008 Mon Sep 17 00:00:00 2001 From: Aleksa Vučković Date: Mon, 10 Jan 2022 22:15:15 +0100 Subject: include/setup.sh --- include/04.idt/deo11 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/04.idt/deo11 (limited to 'include/04.idt/deo11') diff --git a/include/04.idt/deo11 b/include/04.idt/deo11 new file mode 100644 index 0000000..055e22a --- /dev/null +++ b/include/04.idt/deo11 @@ -0,0 +1,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); +} -- cgit v1.2.3