x86defs/serial.rs
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! Fixed resources of standard PC COM ports.
5
6/// IO register bases, ordered COM1 through COM4.
7pub const COM_BASES: [u16; 4] = [0x3f8, 0x2f8, 0x3e8, 0x2e8];
8/// Interrupt lines, ordered COM1 through COM4.
9pub const COM_IRQS: [u8; 4] = [4, 3, 4, 3];
10/// Number of registers in a 16550 UART. Standard COM registers are one byte wide.
11pub const COM_REGISTER_COUNT: u8 = 8;