aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bhyve/pci_lpc.c
diff options
context:
space:
mode:
authorPeter Grehan <grehan@FreeBSD.org>2021-01-19 17:30:22 +0000
committerPeter Grehan <grehan@FreeBSD.org>2021-01-19 17:30:22 +0000
commiteed1cc6cdfa743e52ac3ea0b788e95b069a5f2f3 (patch)
treeb84fe2acec48d5764a7355d16e7b8af8e6f63001 /usr.sbin/bhyve/pci_lpc.c
parente6cc42f181ce346a294ae7aa1d1c321fdc90f241 (diff)
downloadsrc-eed1cc6cdfa743e52ac3ea0b788e95b069a5f2f3.tar.gz
src-eed1cc6cdfa743e52ac3ea0b788e95b069a5f2f3.zip
Support COM3 and COM4 serial ports.
Submitted by: Jan Poctavek <janci@binaryparadise.com>, otis Reviewed by: grehan (bhyve), imp, 0mp (manpages) Differential Revision: https://reviews.freebsd.org/D28207
Diffstat (limited to 'usr.sbin/bhyve/pci_lpc.c')
-rw-r--r--usr.sbin/bhyve/pci_lpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bhyve/pci_lpc.c b/usr.sbin/bhyve/pci_lpc.c
index 3f7df55b5ffd..aa5997848f24 100644
--- a/usr.sbin/bhyve/pci_lpc.c
+++ b/usr.sbin/bhyve/pci_lpc.c
@@ -70,7 +70,7 @@ static struct pci_devinst *lpc_bridge;
static const char *romfile;
-#define LPC_UART_NUM 2
+#define LPC_UART_NUM 4
static struct lpc_uart_softc {
struct uart_softc *uart_softc;
const char *opts;
@@ -79,7 +79,7 @@ static struct lpc_uart_softc {
int enabled;
} lpc_uart_softc[LPC_UART_NUM];
-static const char *lpc_uart_names[LPC_UART_NUM] = { "COM1", "COM2" };
+static const char *lpc_uart_names[LPC_UART_NUM] = { "COM1", "COM2", "COM3", "COM4" };
static bool pctestdev_present;