]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[uart] Support 16550 UARTs accessed via either MMIO or port I/O
authorMichael Brown <mcb30@ipxe.org>
Tue, 4 Nov 2025 16:43:44 +0000 (16:43 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 4 Nov 2025 21:14:41 +0000 (21:14 +0000)
commita786c8d2313ebe973ace0cbbe4f8f3825251062a
treeadf43a1c3a8b9757004dbf372375e6fc4342ec48
parentf7de1b53dc60ed3262181841e8cd845a50e72863
[uart] Support 16550 UARTs accessed via either MMIO or port I/O

Use the combined accessors ioread8() and iowrite8() to read and write
16550 UART registers, to allow the decision between using MMIO and
port I/O to be made at runtime.

Minimise the increase in code size for x86 by ignoring the register
shift, since this is essentially used only for non-x86 SoCs.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/include/bits/ns16550.h
src/include/bits/ns16550.h