From owner-cvs-src-old@FreeBSD.ORG Wed Jan 7 21:53:05 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 386761065EE9 for ; Wed, 7 Jan 2009 21:53:05 +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 20E308FC23 for ; Wed, 7 Jan 2009 21:53:05 +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 n07Lr5Un082789 for ; Wed, 7 Jan 2009 21:53:05 GMT (envelope-from marius@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n07Lr4jG082788 for cvs-src-old@freebsd.org; Wed, 7 Jan 2009 21:53:04 GMT (envelope-from marius@repoman.freebsd.org) Message-Id: <200901072153.n07Lr4jG082788@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marius@repoman.freebsd.org using -f From: Marius Strobl Date: Wed, 7 Jan 2009 21:52:47 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD 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, 07 Jan 2009 21:53:08 -0000 marius 2009-01-07 21:52:47 UTC FreeBSD src repository Modified files: sys/dev/mpt mpt.c mpt.h mpt_cam.c mpt_raid.c mpt_user.c Log: SVN rev 186878 on 2009-01-07 21:52:47Z by marius 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 Revision Changes Path 1.49 +139 -3 src/sys/dev/mpt/mpt.c 1.47 +25 -0 src/sys/dev/mpt/mpt.h 1.65 +35 -15 src/sys/dev/mpt/mpt_cam.c 1.19 +7 -3 src/sys/dev/mpt/mpt_raid.c 1.3 +17 -16 src/sys/dev/mpt/mpt_user.c