Received: by mail.netbsd.org (Postfix, from userid 605) id B1B5019D674; Thu, 9 Dec 2010 23:14:08 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 1D42119D650 for ; Thu, 9 Dec 2010 23:14:07 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 087EC175DD; Thu, 9 Dec 2010 23:14:07 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Thu, 9 Dec 2010 23:14:06 +0000 From: "Jean-Yves Migeon" Subject: CVS commit: src/sys/dev/pci To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20101209231407.087EC175DD@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Jean-Yves Migeon" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: jym Date: Thu Dec 9 23:14:06 UTC 2010 Modified Files: src/sys/dev/pci: if_bnx.c Log Message: Remove htolexx calls, as bnx(4) NICs are capable of swapping endianess. The macros for PAGE_SIZE were fixed with the previous patch (if_bnxreg.h splitting, rev 1.11). From OpenBSD. Their commit log reads: bnx(4) is a bit special. The chip itself is capable of swapping endianess so there is no need for htoleXX calls. The only thing needed is the correct layout of the DMA-ed structures. Additionally it uses PAGE_SIZE but assumed that it is always 4k. Fix the macros that failed to respect that so that it works on 8k PAGE_SIZE systems. This makes bnx(4) work on sparc64. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/dev/pci/if_bnx.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.