Date: Wed, 18 Mar 2009 23:13:35 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/mpt mpt.c mpt.h mpt_cam.c mpt_raid.c mpt_user.c Message-ID: <200903182313.n2INDlHx038382@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marius 2009-03-18 23:13:35 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/dev/mpt mpt.c mpt.h mpt_cam.c mpt_raid.c mpt_user.c Log: SVN rev 189999 on 2009-03-18 23:13:35Z by marius MFC: r186878 Make the whole initiator mode part of mpt(4) endian-clean, specifically SPI controllers now also work in big-endian machines and some conversions relevant for FC and SAS controllers as well as support for ILP32 machines which all were omitted in previous attempts are now also implemented. The IOCTL-interface is intentionally left (and where needed actually changed) to be completely little-endian as otherwise we would have to add conversion code for every possible configuration page to mpt(4), which didn't seem the right thing to do, neither did converting only half of the user- interface to the native byte order. This change was tested on amd64 (SAS+SPI), i386 (SAS) and sparc64 (SAS+SPI). Due to lack of the necessary hardware the target mode code is still left to be made endian-clean. Reviewed by: scottl Revision Changes Path 1.44.2.5 +139 -3 src/sys/dev/mpt/mpt.c 1.42.2.3 +25 -0 src/sys/dev/mpt/mpt.h 1.61.2.3 +35 -15 src/sys/dev/mpt/mpt_cam.c 1.15.2.3 +7 -3 src/sys/dev/mpt/mpt_raid.c 1.1.2.3 +17 -16 src/sys/dev/mpt/mpt_user.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903182313.n2INDlHx038382>