PERFORCE change 33859 for review

Marcel Moolenaar marcel at FreeBSD.org
Sun Jun 29 16:29:20 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=33859

Change 33859 by marcel at marcel_nfs on 2003/06/29 16:28:24

	We only know about a single channel. We expect to have 2
	independent UART drivers attach to dual channel UARTs.

Affected files ...

.. //depot/projects/uart/dev/uart/uart_dev_sab82532.c#2 edit

Differences ...

==== //depot/projects/uart/dev/uart/uart_dev_sab82532.c#2 (text+ko) ====

@@ -131,7 +131,7 @@
 	"sab82532 class",
 	sab82532_methods,
 	sizeof(struct sab82532_softc),
-	.uc_range = 128,
+	.uc_range = 64,
 	.uc_rclk = 1843200
 };
 
@@ -142,7 +142,7 @@
 	const char *ch, *vstr;
 
 	/* Assume the address range is naturally aligned. */
-	ch = ((sc->sc_bas.bsh & 0x7f) == 0) ? "A" : "B";
+	ch = ((sc->sc_bas.bsh & 0x40) == 0) ? "A" : "B";
 
 	switch (uart_getreg(&sc->sc_bas, SAB_VSTR) & SAB_VSTR_VMASK) {
 	case SAB_VSTR_V_1:	vstr = "v1"; break;


More information about the p4-projects mailing list