Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 May 2007 21:31:06 GMT
From:      Bruce M Simpson <bms@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 119854 for review
Message-ID:  <200705142131.l4ELV6LC030039@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=119854

Change 119854 by bms@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705142131.l4ELV6LC030039>