From 61af60a697ee8794e1dd3b88b2dc0436d812567d Mon Sep 17 00:00:00 2001 From: marcel Date: Mon, 5 Apr 2004 01:58:02 +0000 Subject: 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(-) (limited to 'sys') 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; -- cgit v1.1