summaryrefslogtreecommitdiff
path: root/sys/dev/uart/uart_cpu_i386.c
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2003-09-07 21:51:03 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2003-09-07 21:51:03 +0000
commit5cc705512d61b0e69a92da59a5d034a0e882a6fd (patch)
tree22e0d3f0111ac1127e824ebbf9c76d4238693f5f /sys/dev/uart/uart_cpu_i386.c
parent5abd21e1e66e2f3ff01aea76dbe3801f95d9ad4a (diff)
Notes
Diffstat (limited to 'sys/dev/uart/uart_cpu_i386.c')
-rw-r--r--sys/dev/uart/uart_cpu_i386.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/sys/dev/uart/uart_cpu_i386.c b/sys/dev/uart/uart_cpu_i386.c
index 04de73a7da2f..9e34290abf21 100644
--- a/sys/dev/uart/uart_cpu_i386.c
+++ b/sys/dev/uart/uart_cpu_i386.c
@@ -36,6 +36,20 @@ __FBSDID("$FreeBSD$");
#include <dev/uart/uart.h>
#include <dev/uart/uart_cpu.h>
+bus_addr_t
+uart_cpu_busaddr(struct uart_bas *bas)
+{
+
+ return (bas->bsh);
+}
+
+int
+uart_cpu_eqres(struct uart_bas *b1, struct uart_bas *b2)
+{
+
+ return ((b1->bsh == b2->bsh && b1->bst == b2->bst) ? 1 : 0);
+}
+
int
uart_cpu_getdev(int devtype, struct uart_devinfo *di)
{
@@ -83,10 +97,3 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di)
return (ENXIO);
}
-
-int
-uart_cpu_eqres(struct uart_bas *b1, struct uart_bas *b2)
-{
-
- return ((b1->bsh == b2->bsh && b1->bst == b2->bst) ? 1 : 0);
-}