aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/uart/uart_bus.h
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2018-08-19 21:10:21 +0000
committerMatt Macy <mmacy@FreeBSD.org>2018-08-19 21:10:21 +0000
commit381388b9c48b07b08199b07b7657d46e8fcb59b0 (patch)
treea95a9c1e5dc8cd866c7f14db66b0439bc7156de2 /sys/dev/uart/uart_bus.h
parent8d67357c5c5896446984f206fec86f818aa1c22c (diff)
downloadsrc-381388b9c48b07b08199b07b7657d46e8fcb59b0.tar.gz
src-381388b9c48b07b08199b07b7657d46e8fcb59b0.zip
add snps IP uart support / genaralize UART
This is an amalgam of a patch by Doug Ambrisko to generalize uart_acpi_find_device, imp moving the ACPI table to uart_dev_ns8250.c and advice by jhb to work around a bug in the EPYC 3151 BIOS (the BIOS incorrectly marks the serial ports as disabled) Reviewed by: imp MFC after: 8 weeks Differential Revision: https://reviews.freebsd.org/D16432
Notes
Notes: svn path=/head/; revision=338074
Diffstat (limited to 'sys/dev/uart/uart_bus.h')
-rw-r--r--sys/dev/uart/uart_bus.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/uart/uart_bus.h b/sys/dev/uart/uart_bus.h
index 556a9228493c..2bc33734cfb5 100644
--- a/sys/dev/uart/uart_bus.h
+++ b/sys/dev/uart/uart_bus.h
@@ -56,6 +56,9 @@
#define UART_IOCTL_OFLOW 3
#define UART_IOCTL_BAUD 4
+/* UART quirk flags */
+#define UART_F_BUSY_DETECT 0x1
+
/*
* UART class & instance (=softc)
*/
@@ -140,7 +143,7 @@ int uart_bus_detach(device_t dev);
int uart_bus_resume(device_t dev);
serdev_intr_t *uart_bus_ihand(device_t dev, int ipend);
int uart_bus_ipend(device_t dev);
-int uart_bus_probe(device_t dev, int regshft, int regiowidth, int rclk, int rid, int chan);
+int uart_bus_probe(device_t dev, int regshft, int regiowidth, int rclk, int rid, int chan, int quirks);
int uart_bus_sysdev(device_t dev);
void uart_sched_softih(struct uart_softc *, uint32_t);