From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756646AbXIEPVU (ORCPT ); Wed, 5 Sep 2007 11:21:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932156AbXIEPUt (ORCPT ); Wed, 5 Sep 2007 11:20:49 -0400 Received: from lixom.net ([66.141.50.11]:57860 "EHLO mail.lixom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755014AbXIEPUr (ORCPT ); Wed, 5 Sep 2007 11:20:47 -0400 Date: Wed, 5 Sep 2007 09:27:43 -0500 From: Olof Johansson To: linux-kernel@vger.kernel.org Cc: linux-pcmcia@lists.infradead.org, hch@lst.de, akpm@linux-foundation.org, linuxppc-dev@ozlabs.org Subject: [PATCH] pcmcia: Convert io_req_t to use kio_addr_t Message-ID: <20070905142742.GA1760@lixom.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Convert the io_req_t members to kio_addr_t, to allow use on machines with more than 16 bits worth of IO port address space (ppc64 in this case, but it applies to others as well). Signed-off-by: Olof Johansson --- I'm not at home in the PCMCIA stack, so I'd appreciate some extra eyes on it to avoid regressions. As far as I can tell, the io_req_t structure is not exported through any userspace interface and only used internally. This supersedes the earlier (rejected) "increase ioaddr_t to 32-bits" patch (http://patchwork.ozlabs.org/linuxppc/patch?id=11908) for ppc64, since with this change that would not be needed. Thanks, Olof diff --git a/drivers/pcmcia/pcmcia_resource.c b/drivers/pcmcia/pcmcia_resource.c index 0ce39de..585c14b 100644 --- a/drivers/pcmcia/pcmcia_resource.c +++ b/drivers/pcmcia/pcmcia_resource.c @@ -65,8 +65,8 @@ extern int ds_pc_debug; * Special stuff for managing IO windows, because they are scarce */ -static int alloc_io_space(struct pcmcia_socket *s, u_int attr, ioaddr_t *base, - ioaddr_t num, u_int lines) +static int alloc_io_space(struct pcmcia_socket *s, u_int attr, kio_addr_t *base, + kio_addr_t num, u_int lines) { int i; kio_addr_t try, align; @@ -74,14 +74,14 @@ static int alloc_io_space(struct pcmcia_socket *s, u_int attr, ioaddr_t *base, align = (*base) ? (lines ? 1<