PERFORCE change 119854 for review

Bruce M Simpson bms at FreeBSD.org
Mon May 14 21:31:07 UTC 2007


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

Change 119854 by bms at bms_anglepoise on 2007/05/14 21:30:28

	build ehci and uhci drivers in (to exercise pci attachment).
	Try byte-swapping endianness of 32 bit reads from PCI
	configuration space.

Affected files ...

.. //depot/projects/mips2/src/sys/dev/siba/siba_pcib.c#4 edit
.. //depot/projects/mips2/src/sys/mips/conf/SENTRY5#8 edit

Differences ...

==== //depot/projects/mips2/src/sys/dev/siba/siba_pcib.c#4 (text+ko) ====

@@ -372,9 +372,7 @@
 	printf("reading 4 bytes from %08x\n", cfgaddr);
 	val = *(volatile uint32_t *)MIPS_PHYS_TO_KSEG1(cfgaddr); /* XXX MIPS */
 
-	// this is just...odd. it doesn't look right.
-
-	//val = bswap32(val);	/* XXX ? */
+	val = bswap32(val);	/* XXX seems to be needed for now */
 
 	/* swizzle and return what was asked for */
 	val &= 0xffffffff >> ((4 - bytes) * 8);

==== //depot/projects/mips2/src/sys/mips/conf/SENTRY5#8 (text+ko) ====

@@ -1,6 +1,6 @@
 #
 # $FreeBSD$
-# $P4: //depot/projects/mips2/src/sys/mips/conf/SENTRY5#7 $
+# $P4: //depot/projects/mips2/src/sys/mips/conf/SENTRY5#8 $
 #
 # The Broadcom Sentry5 series of processors and boards is very commonly
 # used in COTS hardware including the Netgear WGT634U.
@@ -75,6 +75,18 @@
 device		bfe			# XXX will build both pci and siba
 device		miibus			# attachments
 
+# pci devices
+# notyet:
+#device		ath			# in pci slot
+#device		ath_hal			# in pci slot
+
+device		usb			# USB Bus (required)
+device		uhci			# UHCI PCI->USB interface
+device		ehci			# EHCI PCI->USB interface (USB 2.0)
+
+# need to teach the code to ignore the bridge....
+
+
 # XXX notyet; need to be auto probed children of siba_cc.
 #device		uart
 #device		uart_ns8250


More information about the p4-projects mailing list