1 // Copyright 2016 The Fuchsia Authors 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 /* legacy i/o ports */ 24 #define ISA_IOPORT_SERIAL1_BASE 0x3f8 25 #define ISA_IOPORT_SERIAL2_BASE 0x2f8 26 #define ISA_IOPORT_PRINTER1_BASE 0x278 27