Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261227AbUKSHZG (ORCPT ); Fri, 19 Nov 2004 02:25:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261245AbUKSHZG (ORCPT ); Fri, 19 Nov 2004 02:25:06 -0500 Received: from dns1.atmark-techno.com ([210.191.215.170]:49416 "EHLO dns1.atmark-techno.com") by vger.kernel.org with ESMTP id S261227AbUKSHZB (ORCPT ); Fri, 19 Nov 2004 02:25:01 -0500 Date: Fri, 19 Nov 2004 16:24:59 +0900 From: Yasushi SHOJI To: Jeff Garzik Cc: Linux Kernel list Subject: Re: readl/writel: swap or not to swap In-Reply-To: <419D71EF.9030508@pobox.com> References: <200411080521.iA85LbG6025914@hera.kernel.org> <1099893447.10262.154.camel@gaston> <200411081706.55261.adaplas@hotpop.com> <20041113122003.0CA8A3E90C@dns1.atmark-techno.com> <20041119014829.DEE333E6F5@dns1.atmark-techno.com> <419D71EF.9030508@pobox.com> User-Agent: User-Agent: Wanderlust/2.10.1 MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Message-Id: <20041119072459.2BC203E6F5@dns1.atmark-techno.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1074 Lines: 34 Hi Jeff, At Thu, 18 Nov 2004 23:09:19 -0500, Jeff Garzik wrote: > > > is there any rule we should follow? Is the ppc way the right > > direction to follow? I can ifdef anytime for my own use but I just > > want to know what _should_ be done. > > > readl()/writel() are defined as being for the PCI bus (little endian). > As such, they should swap on big endian platforms. thanks for your input. so read*() and write*() family should _only_ be used for pci bus? the "Understanding the linux kernel" state that those macro should be used for i/o shared memory. and it has three bus listed: isa, vlb, pci. I'm a bit confused... i know some arch have bus-dedicated read and write macro, ie isa_readl(). is this the way to go? sorry for dumb questions. if this is RTFM thing, just tell me. thanks, -- yashi - 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/