Don't set the iobase and iosize members of pcmciabus_attach_args because
they're not used in any meaningful way.
This commit is contained in:
parent
417e8f23f4
commit
75ccda5a51
@ -1,9 +1,9 @@
|
||||
/* $NetBSD: gayle_pcmcia.c,v 1.24 2011/01/13 22:02:05 phx Exp $ */
|
||||
/* $NetBSD: gayle_pcmcia.c,v 1.25 2011/07/26 22:52:47 dyoung Exp $ */
|
||||
|
||||
/* public domain */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: gayle_pcmcia.c,v 1.24 2011/01/13 22:02:05 phx Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: gayle_pcmcia.c,v 1.25 2011/07/26 22:52:47 dyoung Exp $");
|
||||
|
||||
/* PCMCIA front-end driver for A1200's and A600's. */
|
||||
|
||||
@ -174,8 +174,6 @@ pccard_attach(struct device *parent, struct device *myself, void *aux)
|
||||
paa.paa_busname = "pcmcia";
|
||||
paa.pct = &chip_functions;
|
||||
paa.pch = &self->devs[0];
|
||||
paa.iobase = 0;
|
||||
paa.iosize = 0;
|
||||
self->devs[0].card =
|
||||
config_found(myself, &paa, simple_devprint);
|
||||
if (self->devs[0].card == NULL) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* $Id: at91cf.c,v 1.3 2011/07/01 19:31:17 dyoung Exp $ */
|
||||
/* $NetBSD: at91cf.c,v 1.3 2011/07/01 19:31:17 dyoung Exp $ */
|
||||
/* $Id: at91cf.c,v 1.4 2011/07/26 22:52:47 dyoung Exp $ */
|
||||
/* $NetBSD: at91cf.c,v 1.4 2011/07/26 22:52:47 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Embedtronics Oy. All rights reserved.
|
||||
@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: at91cf.c,v 1.3 2011/07/01 19:31:17 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: at91cf.c,v 1.4 2011/07/26 22:52:47 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -228,8 +228,6 @@ at91cf_config_socket(struct at91cf_handle *ph)
|
||||
paa.paa_busname = "pcmcia";
|
||||
paa.pct = (pcmcia_chipset_tag_t)&at91cf_functions;
|
||||
paa.pch = (pcmcia_chipset_handle_t)ph;
|
||||
paa.iobase = ph->ph_space[IO].base;
|
||||
paa.iosize = ph->ph_space[IO].size;
|
||||
ph->ph_card = config_found_ia(sc->sc_dev, "pcmciabus", &paa,
|
||||
at91cf_print);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: eppcic.c,v 1.5 2011/07/01 19:31:17 dyoung Exp $ */
|
||||
/* $NetBSD: eppcic.c,v 1.6 2011/07/26 22:52:47 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2005 HAMAJIMA Katsuomi. All rights reserved.
|
||||
@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: eppcic.c,v 1.5 2011/07/01 19:31:17 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: eppcic.c,v 1.6 2011/07/26 22:52:47 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -244,8 +244,6 @@ eppcic_config_socket(struct eppcic_handle *ph)
|
||||
paa.paa_busname = "pcmcia";
|
||||
paa.pct = (pcmcia_chipset_tag_t)&eppcic_functions;
|
||||
paa.pch = (pcmcia_chipset_handle_t)ph;
|
||||
paa.iobase = ph->ph_space[IO].base;
|
||||
paa.iosize = ph->ph_space[IO].size;
|
||||
ph->ph_card = config_found_ia((void*)sc, "pcmciabus", &paa,
|
||||
eppcic_print);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: imx_pcic.c,v 1.4 2011/07/01 20:27:50 dyoung Exp $ */
|
||||
/* $Id: imx_pcic.c,v 1.5 2011/07/26 22:52:47 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* IMX CF interface to pcic/pcmcia
|
||||
@ -6,7 +6,7 @@
|
||||
* Sun Apr 1 21:42:37 PDT 2007
|
||||
*/
|
||||
|
||||
/* $NetBSD: imx_pcic.c,v 1.4 2011/07/01 20:27:50 dyoung Exp $ */
|
||||
/* $NetBSD: imx_pcic.c,v 1.5 2011/07/26 22:52:47 dyoung Exp $ */
|
||||
/* $OpenBSD: pxa2x0_pcic.c,v 1.17 2005/12/14 15:08:51 uwe Exp $ */
|
||||
|
||||
/*
|
||||
@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$Id: imx_pcic.c,v 1.4 2011/07/01 20:27:50 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$Id: imx_pcic.c,v 1.5 2011/07/26 22:52:47 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -407,8 +407,6 @@ imx_pcic_attach_common(struct imx_pcic_softc *sc,
|
||||
paa.pct = (pcmcia_chipset_tag_t)&imx_pcic_pcmcia_functions;
|
||||
paa.pch = (pcmcia_chipset_handle_t)so;
|
||||
printf("%s: sc_pa %lx\n", __func__, sc->sc_pa);
|
||||
paa.iobase = sc->sc_pa;
|
||||
paa.iosize = 0x2000;
|
||||
|
||||
so->pcmcia = config_found_ia(&sc->sc_dev, "pcmciabus", &paa,
|
||||
imx_pcic_print);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sa11x1_pcic.c,v 1.21 2011/07/01 20:31:39 dyoung Exp $ */
|
||||
/* $NetBSD: sa11x1_pcic.c,v 1.22 2011/07/26 22:52:47 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: sa11x1_pcic.c,v 1.21 2011/07/01 20:31:39 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sa11x1_pcic.c,v 1.22 2011/07/26 22:52:47 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -104,8 +104,6 @@ sacpcic_attach_common(struct sacc_softc *psc, struct sacpcic_softc *sc,
|
||||
paa.paa_busname = "pcmcia";
|
||||
paa.pct = (pcmcia_chipset_tag_t)&sa11x0_pcmcia_functions;
|
||||
paa.pch = (pcmcia_chipset_handle_t)&sc->sc_socket[i];
|
||||
paa.iobase = 0;
|
||||
paa.iosize = 0x4000000;
|
||||
|
||||
sc->sc_socket[i].pcmcia =
|
||||
config_found_ia(sc->sc_pc.sc_dev, "pcmciabus", &paa,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pxa2x0_pcic.c,v 1.9 2011/07/01 20:32:51 dyoung Exp $ */
|
||||
/* $NetBSD: pxa2x0_pcic.c,v 1.10 2011/07/26 22:52:48 dyoung Exp $ */
|
||||
/* $OpenBSD: pxa2x0_pcic.c,v 1.17 2005/12/14 15:08:51 uwe Exp $ */
|
||||
|
||||
/*
|
||||
@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pxa2x0_pcic.c,v 1.9 2011/07/01 20:32:51 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pxa2x0_pcic.c,v 1.10 2011/07/26 22:52:48 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -377,8 +377,6 @@ pxapcic_attach_common(struct pxapcic_softc *sc,
|
||||
paa.paa_busname = "pcmcia";
|
||||
paa.pct = (pcmcia_chipset_tag_t)&pxapcic_pcmcia_functions;
|
||||
paa.pch = (pcmcia_chipset_handle_t)so;
|
||||
paa.iobase = 0;
|
||||
paa.iosize = 0x4000000;
|
||||
|
||||
so->pcmcia = config_found_ia(sc->sc_dev, "pcmciabus", &paa,
|
||||
pxapcic_print);
|
||||
|
@ -180,8 +180,6 @@ opcic_attach(struct device *parent, struct device *self, void *aux)
|
||||
paa.paa_busname = "pcmcia";
|
||||
paa.pct = (pcmcia_chipset_tag_t)&sa11x0_pcmcia_functions;
|
||||
paa.pch = (pcmcia_chipset_handle_t)&sc->sc_socket[i].ss;
|
||||
paa.iobase = 0;
|
||||
paa.iosize = 0x4000000;
|
||||
|
||||
sc->sc_socket[i].ss.pcmcia =
|
||||
config_found_ia(sc->sc_pc.sc_dev,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: shpcmcia.c,v 1.1 2010/04/06 15:54:29 nonaka Exp $ */
|
||||
/* $NetBSD: shpcmcia.c,v 1.2 2011/07/26 22:52:48 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2009 NONAKA Kimihiro <nonaka@netbsd.org>
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: shpcmcia.c,v 1.1 2010/04/06 15:54:29 nonaka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: shpcmcia.c,v 1.2 2011/07/26 22:52:48 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -312,8 +312,6 @@ shpcmcia_attach_socket(struct shpcmcia_handle *h)
|
||||
paa.paa_busname = "pcmcia";
|
||||
paa.pct = (pcmcia_chipset_tag_t)h->sc->sc_pct;
|
||||
paa.pch = (pcmcia_chipset_handle_t)h;
|
||||
paa.iobase = h->sc->sc_iobase;
|
||||
paa.iosize = h->sc->sc_iosize;
|
||||
|
||||
h->pcmcia = config_found_ia(h->sc->sc_dev, "pcmciabus", &paa,
|
||||
shpcmcia_print);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ipaq_pcic.c,v 1.20 2011/07/19 15:37:38 dyoung Exp $ */
|
||||
/* $NetBSD: ipaq_pcic.c,v 1.21 2011/07/26 22:52:48 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ipaq_pcic.c,v 1.20 2011/07/19 15:37:38 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ipaq_pcic.c,v 1.21 2011/07/26 22:52:48 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -125,8 +125,6 @@ ipaqpcic_attach(device_t parent, device_t self, void *aux)
|
||||
paa.paa_busname = "pcmcia";
|
||||
paa.pct = (pcmcia_chipset_tag_t)&sa11x0_pcmcia_functions;
|
||||
paa.pch = (pcmcia_chipset_handle_t)&sc->sc_socket[i];
|
||||
paa.iobase = 0;
|
||||
paa.iosize = 0x4000000;
|
||||
|
||||
sc->sc_socket[i].pcmcia =
|
||||
config_found_ia(sc->sc_pc.sc_dev, "pcmciabus",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: it8368.c,v 1.22 2008/04/28 20:23:21 martin Exp $ */
|
||||
/* $NetBSD: it8368.c,v 1.23 2011/07/26 22:52:48 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
|
||||
@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: it8368.c,v 1.22 2008/04/28 20:23:21 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: it8368.c,v 1.23 2011/07/26 22:52:48 dyoung Exp $");
|
||||
|
||||
#undef WINCE_DEFAULT_SETTING /* for debug */
|
||||
#undef IT8368DEBUG
|
||||
@ -379,9 +379,7 @@ it8368_attach_socket(struct it8368e_softc *sc)
|
||||
paa.paa_busname = "pcmcia";
|
||||
paa.pct = (pcmcia_chipset_tag_t)&it8368_functions;
|
||||
paa.pch = (pcmcia_chipset_handle_t)sc;
|
||||
paa.iobase = 0;
|
||||
paa.iosize = sc->sc_csiosize;
|
||||
|
||||
|
||||
if ((sc->sc_pcmcia = config_found_ia((void*)sc, "pcmciabus", &paa,
|
||||
it8368_print))) {
|
||||
it8368_init_socket(sc);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: plumpcmcia.c,v 1.24 2009/03/18 10:22:28 cegger Exp $ */
|
||||
/* $NetBSD: plumpcmcia.c,v 1.25 2011/07/26 22:52:48 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999, 2000 UCHIYAMA Yasushi. All rights reserved.
|
||||
@ -31,7 +31,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: plumpcmcia.c,v 1.24 2009/03/18 10:22:28 cegger Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: plumpcmcia.c,v 1.25 2011/07/26 22:52:48 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -307,8 +307,6 @@ plumpcmcia_attach_socket(struct plumpcmcia_handle *ph)
|
||||
paa.paa_busname = "pcmcia";
|
||||
paa.pct = (pcmcia_chipset_tag_t)&plumpcmcia_functions;
|
||||
paa.pch = (pcmcia_chipset_handle_t)ph;
|
||||
paa.iobase = 0;
|
||||
paa.iosize = ph->ph_iosize;
|
||||
|
||||
if ((ph->ph_pcmcia = config_found_ia((void*)sc, "pcmciabus", &paa,
|
||||
plumpcmcia_print))) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hd64461pcmcia.c,v 1.48 2011/07/20 20:46:49 dyoung Exp $ */
|
||||
/* $NetBSD: hd64461pcmcia.c,v 1.49 2011/07/26 22:52:48 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc.
|
||||
@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: hd64461pcmcia.c,v 1.48 2011/07/20 20:46:49 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: hd64461pcmcia.c,v 1.49 2011/07/26 22:52:48 dyoung Exp $");
|
||||
|
||||
#include "opt_hd64461pcmcia.h"
|
||||
|
||||
@ -418,8 +418,6 @@ hd64461pcmcia_attach_channel(struct hd64461pcmcia_softc *sc,
|
||||
|
||||
paa.paa_busname = "pcmcia";
|
||||
paa.pch = (pcmcia_chipset_handle_t)ch;
|
||||
paa.iobase = ch->ch_iobase;
|
||||
paa.iosize = ch->ch_iosize;
|
||||
|
||||
ch->ch_pcmcia = config_found_sm_loc(parent, "pcmciabus", NULL, &paa,
|
||||
hd64461pcmcia_print, hd64461pcmcia_submatch);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hd64465pcmcia.c,v 1.27 2011/07/19 15:30:52 dyoung Exp $ */
|
||||
/* $NetBSD: hd64465pcmcia.c,v 1.28 2011/07/26 22:52:48 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
|
||||
@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: hd64465pcmcia.c,v 1.27 2011/07/19 15:30:52 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: hd64465pcmcia.c,v 1.28 2011/07/26 22:52:48 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -363,8 +363,6 @@ hd64465pcmcia_attach_channel(struct hd64465pcmcia_softc *sc, int channel)
|
||||
|
||||
paa.paa_busname = "pcmcia";
|
||||
paa.pch = (pcmcia_chipset_handle_t)ch;
|
||||
paa.iobase = ch->ch_iobase;
|
||||
paa.iosize = ch->ch_iosize;
|
||||
|
||||
ch->ch_pcmcia = config_found_sm_loc(parent, "pcmciabus", NULL, &paa,
|
||||
hd64465pcmcia_print, hd64465pcmcia_submatch);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: aupcmcia.c,v 1.6 2008/01/08 13:26:26 dogcow Exp $ */
|
||||
/* $NetBSD: aupcmcia.c,v 1.7 2011/07/26 22:52:49 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 Itronix Inc.
|
||||
@ -35,7 +35,7 @@
|
||||
/* #include "pci.h" */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: aupcmcia.c,v 1.6 2008/01/08 13:26:26 dogcow Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: aupcmcia.c,v 1.7 2011/07/26 22:52:49 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -268,9 +268,6 @@ aupcm_attach(struct device *parent, struct device *self, void *aux)
|
||||
paa.pct = sc->sc_pct;
|
||||
paa.pch = (pcmcia_chipset_handle_t)sp;
|
||||
|
||||
paa.iobase = 0;
|
||||
paa.iosize = AUPCMCIA_MAP_SIZE;
|
||||
|
||||
sp->as_pcmcia = config_found(&sc->sc_dev, &paa, aupcm_print);
|
||||
|
||||
/* if no pcmcia, make sure slot is powered down */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mmeyepcmcia.c,v 1.20 2011/07/19 15:17:20 dyoung Exp $ */
|
||||
/* $NetBSD: mmeyepcmcia.c,v 1.21 2011/07/26 22:52:49 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Marc Horowitz. All rights reserved.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: mmeyepcmcia.c,v 1.20 2011/07/19 15:17:20 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mmeyepcmcia.c,v 1.21 2011/07/26 22:52:49 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -360,8 +360,6 @@ mmeyepcmcia_attach_socket(struct mmeyepcmcia_handle *h)
|
||||
paa.paa_busname = "pcmcia";
|
||||
paa.pct = (pcmcia_chipset_tag_t) h->sc->pct;
|
||||
paa.pch = (pcmcia_chipset_handle_t) h;
|
||||
paa.iobase = h->sc->iobase;
|
||||
paa.iosize = h->sc->iosize;
|
||||
|
||||
h->pcmcia = config_found_ia(&h->sc->dev, "pcmciabus", &paa,
|
||||
mmeyepcmcia_print);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* $OpenBSD: ts102.c,v 1.14 2005/01/27 17:03:23 millert Exp $ */
|
||||
/* $NetBSD: ts102.c,v 1.15 2011/07/01 18:50:42 dyoung Exp $ */
|
||||
/* $NetBSD: ts102.c,v 1.16 2011/07/26 22:52:49 dyoung Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2003, 2004, Miodrag Vallat.
|
||||
* Copyright (c) 2005, Michael Lorenz.
|
||||
@ -407,8 +407,6 @@ tslot_reset(struct tslot_data *td, uint32_t iosize)
|
||||
paa.paa_busname = "pcmcia";
|
||||
paa.pct = (pcmcia_chipset_tag_t)td->td_parent->sc_pct;
|
||||
paa.pch = (pcmcia_chipset_handle_t)td;
|
||||
paa.iobase = 0;
|
||||
paa.iosize = iosize;
|
||||
|
||||
td->td_pcmcia = config_found(td->td_parent->sc_dev, &paa, tslot_print);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user