pci_uart.c (241744) | pci_uart.c (244167) |
---|---|
1/*- 2 * Copyright (c) 2012 NetApp, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2012 NetApp, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: projects/bhyve/usr.sbin/bhyve/pci_uart.c 241744 2012-10-19 18:11:17Z grehan $ | 26 * $FreeBSD: projects/bhyve/usr.sbin/bhyve/pci_uart.c 244167 2012-12-13 01:58:11Z grehan $ |
27 */ 28 29#include <sys/cdefs.h> | 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: projects/bhyve/usr.sbin/bhyve/pci_uart.c 241744 2012-10-19 18:11:17Z grehan $"); | 30__FBSDID("$FreeBSD: projects/bhyve/usr.sbin/bhyve/pci_uart.c 244167 2012-12-13 01:58:11Z grehan $"); |
31 32#include <sys/types.h> 33#include <sys/select.h> 34#include <dev/ic/ns16550.h> 35 36#include <stdio.h> 37#include <stdlib.h> 38#include <assert.h> 39#include <termios.h> 40#include <unistd.h> 41#include <stdbool.h> 42#include <string.h> 43 | 31 32#include <sys/types.h> 33#include <sys/select.h> 34#include <dev/ic/ns16550.h> 35 36#include <stdio.h> 37#include <stdlib.h> 38#include <assert.h> 39#include <termios.h> 40#include <unistd.h> 41#include <stdbool.h> 42#include <string.h> 43 |
44#include "fbsdrun.h" | 44#include "bhyverun.h" |
45#include "pci_emul.h" 46#include "mevent.h" 47 48#define COM1_BASE 0x3F8 49#define COM1_IRQ 4 50#define COM2_BASE 0x2F8 51#define COM2_IRQ 3 52 --- 550 unchanged lines hidden --- | 45#include "pci_emul.h" 46#include "mevent.h" 47 48#define COM1_BASE 0x3F8 49#define COM1_IRQ 4 50#define COM2_BASE 0x2F8 51#define COM2_IRQ 3 52 --- 550 unchanged lines hidden --- |