1 /*
2  * Copyright (c) 2009 Corey Tabaka
3  *
4  * Use of this source code is governed by a MIT-style
5  * license that can be found in the LICENSE file or at
6  * https://opensource.org/licenses/MIT
7  */
8 #pragma once
9 
10 /* i8253/i8254 programmable interval timer registers */
11 #define I8253_CONTROL_REG   0x43
12 #define I8253_DATA_REG      0x40
13 
14 /* i8042 keyboard controller registers */
15 #define I8042_COMMAND_REG   0x64
16 #define I8042_STATUS_REG    0x64
17 #define I8042_DATA_REG      0x60
18 
19 /* CGA registers */
20 #define CGA_INDEX_REG       0x3d4
21 #define CGA_DATA_REG        0x3d5
22 
23 /* COM (serial) ports */
24 #define COM1_REG            0x3f8
25 #define COM2_REG            0x2f8
26 #define COM3_REG            0x3e8
27 #define COM4_REG            0x2e8
28 
29