Date: Fri, 29 Aug 2003 14:50:26 -0700 (PDT) From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 37196 for review Message-ID: <200308292150.h7TLoQ6o060469@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=37196 Change 37196 by marcel@marcel_nfs on 2003/08/29 14:49:45 Apply a quick hack. Channel A is at offset 4; channel B at offset 0. Since the console on the test box is on channel A, add 4 to the handle. As I mentioned before, we should ideally be looking at "input-device" and "output-device" under /options instead of looking at "stdin" and "stdout" under /chosen. That way we can consider the arguments given to the device and properly adjust the handle based on the channel referenced by the properties. I'll do that later. Affected files ... .. //depot/projects/uart/dev/uart/uart_cpu_sparc64.c#7 edit Differences ... ==== //depot/projects/uart/dev/uart/uart_cpu_sparc64.c#7 (text+ko) ==== @@ -98,9 +98,10 @@ di->ops = uart_sab82532_ops; else if (!strcmp(buffer, "su") || !strcmp(buffer, "su_pnp")) di->ops = uart_ns8250_ops; - else if (!strcmp(buffer, "zs")) + else if (!strcmp(buffer, "zs")) { di->ops = uart_z8530_ops; - else + di->bas.bsh += 4; + } else return (ENXIO); /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308292150.h7TLoQ6o060469>