summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-04-05 01:58:02 +0000
committermarcel <marcel@FreeBSD.org>2004-04-05 01:58:02 +0000
commit61af60a697ee8794e1dd3b88b2dc0436d812567d (patch)
tree6b3b68f1c5eb8ea0225966c381dc6571b6e212ab /sys
parente391576e637f88ec17365ba3ec0ac0822576f83e (diff)
downloadFreeBSD-src-61af60a697ee8794e1dd3b88b2dc0436d812567d.zip
FreeBSD-src-61af60a697ee8794e1dd3b88b2dc0436d812567d.tar.gz
Ever since rev 1.27 of puc.c, the port number that was exposed by puc(4)
and used by uart(4) for the channel conflicted with the port offset for the Z8530. The Z8530 has the channels reversed (i.e. channel B is at offset 0 and channel A is at offset 4). Assign the port offsets in the right order so that uart(4) will properly attach to the channels. Submitted by: Marius Strobl <marius@alchemy.franken.de>
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/puc/puc_sbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/puc/puc_sbus.c b/sys/dev/puc/puc_sbus.c
index 313d52e..a2279df 100644
--- a/sys/dev/puc/puc_sbus.c
+++ b/sys/dev/puc/puc_sbus.c
@@ -68,7 +68,7 @@ puc_sbus_attach(device_t dev)
for (i = 0; i < 2; i++) {
dd.ports[i].type = PUC_PORT_TYPE_UART | PUC_PORT_UART_Z8530;
dd.ports[i].bar = 0;
- dd.ports[i].offset = 4 * i;
+ dd.ports[i].offset = 4 - 4 * i;
dd.ports[i].serialfreq = 0;
dd.ports[i].flags = PUC_FLAGS_MEMORY;
dd.ports[i].regshft = 1;
OpenPOWER on IntegriCloud