From owner-svn-src-head@FreeBSD.ORG Thu Jan 15 15:46:52 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3171B1065889; Thu, 15 Jan 2009 15:46:51 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 8BBBD8FC13; Thu, 15 Jan 2009 15:46:51 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (pool-98-109-39-197.nwrknj.fios.verizon.net [98.109.39.197]) by cyrus.watson.org (Postfix) with ESMTPSA id 38B1746B23; Thu, 15 Jan 2009 10:46:51 -0500 (EST) Received: from localhost (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id n0FFk574001666; Thu, 15 Jan 2009 10:46:45 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Marius Strobl Date: Thu, 15 Jan 2009 10:31:42 -0500 User-Agent: KMail/1.9.7 References: <200901072152.n07Lql7h000807@svn.freebsd.org> In-Reply-To: <200901072152.n07Lql7h000807@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901151031.42725.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Thu, 15 Jan 2009 10:46:45 -0500 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-3.5 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r186878 - head/sys/dev/mpt X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2009 15:46:54 -0000 On Wednesday 07 January 2009 4:52:47 pm Marius Strobl wrote: > Author: marius > Date: Wed Jan 7 21:52:47 2009 > New Revision: 186878 > URL: http://svn.freebsd.org/changeset/base/186878 > > Log: > 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 > MFC after: 1 month If you wish to test the mpt_user interface on a big-endian machine you may use //depot/jhb/raid/usr.sbin/mptutil/... It is likely going to need a lot of sprinkled htole*() and letoh*() though. -- John Baldwin