summaryrefslogtreecommitdiffstats
path: root/sys/dev/uart
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-12-12 21:00:58 +0000
committerimp <imp@FreeBSD.org>2005-12-12 21:00:58 +0000
commit8aa9fc9c151a7b7a6aa913be91fae2dca213edc4 (patch)
treede5e6dc38512c6a9282ee32995b39dfe9278e623 /sys/dev/uart
parent961396d5dde5ec93f052b0fd6e6a0bee5852d348 (diff)
downloadFreeBSD-src-8aa9fc9c151a7b7a6aa913be91fae2dca213edc4.zip
FreeBSD-src-8aa9fc9c151a7b7a6aa913be91fae2dca213edc4.tar.gz
Make uart_getenv() not be ns8250 dependent. This will allow, in the future,
compilation of kernels without ns8250 support but using the uart framework. These kernels will be for machines where size matters more, so including code that can never be executed is undesriable...
Diffstat (limited to 'sys/dev/uart')
-rw-r--r--sys/dev/uart/uart_cpu_alpha.c1
-rw-r--r--sys/dev/uart/uart_cpu_amd64.c1
-rw-r--r--sys/dev/uart/uart_cpu_i386.c1
-rw-r--r--sys/dev/uart/uart_cpu_ia64.c1
-rw-r--r--sys/dev/uart/uart_cpu_pc98.c1
-rw-r--r--sys/dev/uart/uart_subr.c1
6 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/uart/uart_cpu_alpha.c b/sys/dev/uart/uart_cpu_alpha.c
index f7a2f8b..00aa1de 100644
--- a/sys/dev/uart/uart_cpu_alpha.c
+++ b/sys/dev/uart/uart_cpu_alpha.c
@@ -95,6 +95,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di)
}
/* Check the environment. */
+ di->ops = uart_ns8250_ops;
if (uart_getenv(devtype, di) == 0)
return (0);
diff --git a/sys/dev/uart/uart_cpu_amd64.c b/sys/dev/uart/uart_cpu_amd64.c
index 498496b..fb8b994 100644
--- a/sys/dev/uart/uart_cpu_amd64.c
+++ b/sys/dev/uart/uart_cpu_amd64.c
@@ -52,6 +52,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di)
unsigned int i, ivar;
/* Check the environment. */
+ di->ops = uart_ns8250_ops;
if (uart_getenv(devtype, di) == 0)
return (0);
diff --git a/sys/dev/uart/uart_cpu_i386.c b/sys/dev/uart/uart_cpu_i386.c
index 673dde5..c8e2e2e 100644
--- a/sys/dev/uart/uart_cpu_i386.c
+++ b/sys/dev/uart/uart_cpu_i386.c
@@ -52,6 +52,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di)
unsigned int i, ivar;
/* Check the environment. */
+ di->ops = uart_ns8250_ops;
if (uart_getenv(devtype, di) == 0)
return (0);
diff --git a/sys/dev/uart/uart_cpu_ia64.c b/sys/dev/uart/uart_cpu_ia64.c
index cf1e7e1..4960492 100644
--- a/sys/dev/uart/uart_cpu_ia64.c
+++ b/sys/dev/uart/uart_cpu_ia64.c
@@ -104,5 +104,6 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di)
}
/* Check the environment. */
+ di->ops = uart_ns8250_ops;
return (uart_getenv(devtype, di));
}
diff --git a/sys/dev/uart/uart_cpu_pc98.c b/sys/dev/uart/uart_cpu_pc98.c
index 0ae2559..0887a67 100644
--- a/sys/dev/uart/uart_cpu_pc98.c
+++ b/sys/dev/uart/uart_cpu_pc98.c
@@ -52,6 +52,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di)
unsigned int i, ivar, flags;
/* Check the environment. */
+ di->ops = uart_ns8250_ops;
if (uart_getenv(devtype, di) == 0)
return (0);
diff --git a/sys/dev/uart/uart_subr.c b/sys/dev/uart/uart_subr.c
index 14ce64b..c9b6fe7 100644
--- a/sys/dev/uart/uart_subr.c
+++ b/sys/dev/uart/uart_subr.c
@@ -182,7 +182,6 @@ uart_getenv(int devtype, struct uart_devinfo *di)
return (ENXIO);
/* Set defaults. */
- di->ops = uart_ns8250_ops;
di->bas.chan = 0;
di->bas.regshft = 0;
di->bas.rclk = 0;
OpenPOWER on IntegriCloud