1 /* 2 * Copyright (c) 2009 Corey Tabaka 3 * Copyright (c) 2015 Intel Corporation 4 * 5 * Use of this source code is governed by a MIT-style 6 * license that can be found in the LICENSE file or at 7 * https://opensource.org/licenses/MIT 8 */ 9 #pragma once 10 11 #include <platform/pc/memmap.h> 12 #include <platform/pc/iomap.h> 13 14 /* NOTE: keep arch/x86/crt0.S in sync with these definitions */ 15 16 /* interrupts */ 17 #define INT_VECTORS 0x31 18 19 /* defined interrupts */ 20 #define INT_BASE 0x20 21 #define INT_PIT 0x20 22 #define INT_KEYBOARD 0x21 23 #define INT_PIC2 0x22 24 #define INT_COM2_COM4 0x23 25 #define INT_COM1_COM3 0x24 26 27 #define INT_BASE2 0x28 28 #define INT_CMOSRTC 0x28 29 #define INT_PS2MOUSE 0x2c 30 #define INT_IDE0 0x2e 31 #define INT_IDE1 0x2f 32 33 /* APIC vectors */ 34 #define INT_APIC_TIMER 0x22 35 36 /* PIC remap bases */ 37 #define PIC1_BASE 0x20 38 #define PIC2_BASE 0x28 39 40