stand/efi: Use hex values to get the uart type

To keep the SPCR uart type to name map aligned always use the hex value
as an index in the types array.

Reviewed by:	manu, imp
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D48525
This commit is contained in:
Andrew Turner
2025-01-23 17:10:54 +00:00
parent 80defb51b2
commit 7eb3273a7b
+4 -4
View File
@@ -798,10 +798,10 @@ static const char *
acpi_uart_type(UINT8 t)
{
static const char *types[] = {
[0] = "ns8250", /* Full 16550 */
[1] = "ns8250", /* DBGP Rev 1 16550 subset */
[3] = "pl011", /* Arm PL011 */
[5] = "ns8250", /* Nvidia 16550 */
[0x00] = "ns8250", /* Full 16550 */
[0x01] = "ns8250", /* DBGP Rev 1 16550 subset */
[0x03] = "pl011", /* Arm PL011 */
[0x05] = "ns8250", /* Nvidia 16550 */
[0x12] = "ns8250", /* 16550 defined in SerialPort */
};