From owner-cvs-src-old@FreeBSD.ORG Wed Mar 18 23:13:47 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFD3F106564A for ; Wed, 18 Mar 2009 23:13:47 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9C41C8FC1F for ; Wed, 18 Mar 2009 23:13:47 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n2INDl69038383 for ; Wed, 18 Mar 2009 23:13:47 GMT (envelope-from marius@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n2INDlHx038382 for cvs-src-old@freebsd.org; Wed, 18 Mar 2009 23:13:47 GMT (envelope-from marius@repoman.freebsd.org) Message-Id: <200903182313.n2INDlHx038382@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marius@repoman.freebsd.org using -f From: Marius Strobl Date: Wed, 18 Mar 2009 23:13:35 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/sys/dev/mpt mpt.c mpt.h mpt_cam.c mpt_raid.c mpt_user.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2009 23:13:48 -0000 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