Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2006 01:31:29 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 111864 for review
Message-ID:  <200612180131.kBI1VT4J087304@repoman.freebsd.org>

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

Change 111864 by imp@imp_bugs on 2006/12/18 01:30:33

	Switch from 6-0 addressing to 7-1 addressing that the drivers
	expect.

Affected files ...

.. //depot/projects/arm/src/sys/dev/iicbus/icee.c#8 edit

Differences ...

==== //depot/projects/arm/src/sys/dev/iicbus/icee.c#8 (text+ko) ====

@@ -178,13 +178,13 @@
 		    uio->uio_resid);
 		switch (sc->type) {
 		case 8:
-			slave = (uio->uio_offset >> 8) | sc->addr;
+			slave = (uio->uio_offset >> 7) | sc->addr;
 			msgs[0].len = 1;
 			msgs[1].len = len;
 			addr[0] = uio->uio_offset & 0xff;
 			break;
 		case 16:
-			slave = sc->addr | (uio->uio_offset >> 16);
+			slave = sc->addr | (uio->uio_offset >> 15);
 			msgs[0].len = 2;
 			msgs[1].len = len;
 			addr[0] = (uio->uio_offset >> 8) & 0xff;



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