Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 23 Sep 2002 15:16:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 23 Sep 2002 15:15:26 -0400 Received: from deimos.hpl.hp.com ([192.6.19.190]:37568 "EHLO deimos.hpl.hp.com") by vger.kernel.org with ESMTP id ; Mon, 23 Sep 2002 15:14:10 -0400 From: David Mosberger MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15759.26918.381273.951266@napali.hpl.hp.com> Date: Mon, 23 Sep 2002 12:19:02 -0700 To: Dave Olien Cc: axboe@suse.de, phillips@arcor.de, _deepfire@mail.ru, linux-kernel@vger.kernel.org Subject: Re: DAC960 in 2.5.38, with new changes In-Reply-To: <20020923120400.A15452@acpi.pdx.osdl.net> References: <20020923120400.A15452@acpi.pdx.osdl.net> X-Mailer: VM 7.07 under Emacs 21.2.1 Reply-To: davidm@hpl.hp.com X-URL: http://www.hpl.hp.com/personal/David_Mosberger/ Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 861 Lines: 23 Hi Dave, >>>>> On Mon, 23 Sep 2002 12:04:00 -0700, Dave Olien said: Dave> #ifdef __ia64__ Dave> - writeq(Virtual_to_Bus64(CommandMailbox), Dave> + writeq(CommandMailboxDMA, Dave> ControllerBaseAddress + DAC960_LP_CommandMailboxBusAddressOffset); Dave> #else Dave> - writel(Virtual_to_Bus32(CommandMailbox), Dave> + writel(CommandMailboxDMA, Dave> ControllerBaseAddress + DAC960_LP_CommandMailboxBusAddressOffset); Dave> #endif This looks like a porting-nightmare in the making. There's got to be a better way to determine whether you need a writeq() vs. a writel(). --david - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/