mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
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>
This commit is contained in:
parent
47f32f6fa6
commit
cc81fed63c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127872
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user