From cc81fed63cf3047668230f1e7aaec254c076eec4 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Mon, 5 Apr 2004 01:58:02 +0000 Subject: [PATCH] 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 --- sys/dev/puc/puc_sbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/puc/puc_sbus.c b/sys/dev/puc/puc_sbus.c index 313d52e1470..a2279df508a 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;