From a913fe5916677166a9ec486f83637d7b78eb4ec6 Mon Sep 17 00:00:00 2001 From: grehan Date: Thu, 3 May 2012 03:11:27 +0000 Subject: Add 16550 uart emulation as a PCI device. This allows it to be activated as part of the slot config options. The syntax is: -s ,uart[,stdio] The stdio parameter instructs the code to perform i/o using stdin/stdout. It can only be used for one instance. To allow legacy i/o ports/irqs to be used, a new variant of the slot command, -S, is introduced. When used to specify a slot, the device will use legacy resources if it supports them; otherwise it will be treated the same as the '-s' option. Specifying the -S option with the uart will first use the 0x3f8/irq 4 config, and the second -S will use 0x2F8/irq 3. Interrupt delivery is awaiting the arrival of the i/o apic code, but this works fine in uart(4)'s polled mode. This code was written by Cynthia Lu @ MIT while an intern at NetApp, with further work from neel@ and grehan@. Obtained from: NetApp --- usr.sbin/bhyve/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/bhyve/Makefile') diff --git a/usr.sbin/bhyve/Makefile b/usr.sbin/bhyve/Makefile index f64e579..b381b8c 100644 --- a/usr.sbin/bhyve/Makefile +++ b/usr.sbin/bhyve/Makefile @@ -7,7 +7,7 @@ PROG= bhyve SRCS= atpic.c consport.c dbgport.c elcr.c fbsdrun.c inout.c SRCS+= instruction_emul.c mevent.c SRCS+= pci_emul.c pci_hostbridge.c pci_passthru.c pci_virtio_block.c -SRCS+= pci_virtio_net.c pit_8254.c post.c rtc.c uart.c xmsr.c +SRCS+= pci_virtio_net.c pci_uart.c pit_8254.c post.c rtc.c uart.c xmsr.c NO_MAN= -- cgit v1.1