Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266498AbUIOQ54 (ORCPT ); Wed, 15 Sep 2004 12:57:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266244AbUIOQ5z (ORCPT ); Wed, 15 Sep 2004 12:57:55 -0400 Received: from mail.fh-wedel.de ([213.39.232.194]:407 "EHLO mail.fh-wedel.de") by vger.kernel.org with ESMTP id S266708AbUIOQy6 (ORCPT ); Wed, 15 Sep 2004 12:54:58 -0400 Date: Wed, 15 Sep 2004 18:54:50 +0200 From: =?iso-8859-1?Q?J=F6rn?= Engel To: Linus Torvalds Cc: Kernel Mailing List Subject: Re: Being more anal about iospace accesses.. Message-ID: <20040915165450.GD6158@wohnheim.fh-wedel.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.3.28i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 790 Lines: 23 On Wed, 15 September 2004 09:30:42 -0700, Linus Torvalds wrote: > > For example, if you don't know (or, more importantly - don't care) what > kind of IO interface you use, you can now do something like > > void __iomem * map = pci_iomap(dev, bar, maxbytes); > ... > status = ioread32(map + DRIVER_STATUS_OFFSET); C now supports pointer arithmetic with void*? I hope the width of a void is not architecture dependent, that would introduce more subtle bugs. J?rn -- Sometimes, asking the right question is already the answer. -- Unknown - 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/