use XXXCF_NLOCS constants instead of magic numbers
This commit is contained in:
parent
096c3e1d2c
commit
49126e9efe
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cardbus.c,v 1.63 2005/08/25 22:33:18 drochner Exp $ */
|
||||
/* $NetBSD: cardbus.c,v 1.64 2005/08/26 11:01:42 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997, 1998, 1999 and 2000
|
||||
|
@ -33,7 +33,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cardbus.c,v 1.63 2005/08/25 22:33:18 drochner Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cardbus.c,v 1.64 2005/08/26 11:01:42 drochner Exp $");
|
||||
|
||||
#include "opt_cardbus.h"
|
||||
|
||||
|
@ -385,7 +385,7 @@ cardbus_attach_card(struct cardbus_softc *sc)
|
|||
cardbus_chipset_tag_t cc;
|
||||
cardbus_function_tag_t cf;
|
||||
int cdstatus;
|
||||
static int wildcard[] = {
|
||||
static int wildcard[CARDBUSCF_NLOCS] = {
|
||||
CARDBUSCF_DEV_DEFAULT, CARDBUSCF_FUNCTION_DEFAULT
|
||||
};
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci.c,v 1.95 2005/08/25 22:33:19 drochner Exp $ */
|
||||
/* $NetBSD: pci.c,v 1.96 2005/08/26 11:01:43 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996, 1997, 1998
|
||||
|
@ -36,7 +36,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci.c,v 1.95 2005/08/25 22:33:19 drochner Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci.c,v 1.96 2005/08/26 11:01:43 drochner Exp $");
|
||||
|
||||
#include "opt_pci.h"
|
||||
|
||||
|
@ -132,8 +132,9 @@ pciattach(struct device *parent, struct device *self, void *aux)
|
|||
struct pci_softc *sc = (struct pci_softc *)self;
|
||||
int io_enabled, mem_enabled, mrl_enabled, mrm_enabled, mwi_enabled;
|
||||
const char *sep = "";
|
||||
static const int wildcard[2] = { PCICF_DEV_DEFAULT,
|
||||
PCICF_FUNCTION_DEFAULT };
|
||||
static const int wildcard[PCICF_NLOCS] = {
|
||||
PCICF_DEV_DEFAULT, PCICF_FUNCTION_DEFAULT
|
||||
};
|
||||
|
||||
pci_attach_hook(parent, self, pba);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pcmcia.c,v 1.76 2005/08/25 22:33:19 drochner Exp $ */
|
||||
/* $NetBSD: pcmcia.c,v 1.77 2005/08/26 11:01:43 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2004 Charles M. Hannum. All rights reserved.
|
||||
|
@ -48,7 +48,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pcmcia.c,v 1.76 2005/08/25 22:33:19 drochner Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pcmcia.c,v 1.77 2005/08/26 11:01:43 drochner Exp $");
|
||||
|
||||
#include "opt_pcmciaverbose.h"
|
||||
|
||||
|
@ -151,7 +151,7 @@ pcmcia_card_attach(dev)
|
|||
struct pcmcia_softc *sc = (struct pcmcia_softc *) dev;
|
||||
struct pcmcia_function *pf;
|
||||
int error;
|
||||
static const int wildcard[2] = {
|
||||
static const int wildcard[PCMCIACF_NLOCS] = {
|
||||
PCMCIACF_FUNCTION_DEFAULT, PCMCIACF_IRQ_DEFAULT
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue