Declare the id argument to pci_conf_hook(9) as pcireg_t, which is more

appropriate.
This commit is contained in:
kleink 2002-02-25 00:34:13 +00:00
parent 6805e97fff
commit d5fe2ac32f
4 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pci_machdep.h,v 1.7 2002/02/24 13:19:07 kleink Exp $ */
/* $NetBSD: pci_machdep.h,v 1.8 2002/02/25 00:34:13 kleink Exp $ */
/*
* Copyright (c) 1996 Carnegie-Mellon University.
@ -69,7 +69,7 @@ struct prep_pci_chipset {
void (*pc_conf_interrupt)(void *, int, int, int, int, int *);
void (*pc_decompose_tag)(void *, pcitag_t, int *,
int *, int *);
int (*pc_conf_hook)(void *, int, int, int, int);
int (*pc_conf_hook)(void *, int, int, int, pcireg_t);
};
/*
@ -115,7 +115,7 @@ void *prep_pci_intr_establish(void *, pci_intr_handle_t, int, int (*)(void *),
void *);
void prep_pci_intr_disestablish(void *, void *);
void prep_pci_conf_interrupt(void *, int, int, int, int, int *);
int prep_pci_conf_hook(void *, int, int, int, int);
int prep_pci_conf_hook(void *, int, int, int, pcireg_t);
void prep_pci_get_chipset_tag_direct(pci_chipset_tag_t);
void prep_pci_get_chipset_tag_indirect(pci_chipset_tag_t);

View File

@ -193,7 +193,7 @@ prep_pci_conf_interrupt(void *v, int bus, int dev, int pin,
}
int
prep_pci_conf_hook(void *v, int bus, int dev, int func, int id)
prep_pci_conf_hook(void *v, int bus, int dev, int func, pcireg_t id)
{
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: pci_machdep.h,v 1.2 2002/02/11 17:24:01 kleink Exp $ */
/* $NetBSD: pci_machdep.h,v 1.3 2002/02/25 00:34:14 kleink Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@ -76,7 +76,7 @@ const struct evcnt *pci_intr_evcnt(pci_chipset_tag_t, pci_intr_handle_t);
void *pci_intr_establish(pci_chipset_tag_t, pci_intr_handle_t,
int, int (*)(void *), void *);
void pci_intr_disestablish(pci_chipset_tag_t, void *);
int pci_conf_hook(pci_chipset_tag_t, int, int, int, int);
int pci_conf_hook(pci_chipset_tag_t, int, int, int, pcireg_t);
void pci_machdep_init(void);
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: pci_machdep.c,v 1.5 2001/11/08 23:28:15 eeh Exp $ */
/* $NetBSD: pci_machdep.c,v 1.6 2002/02/25 00:34:15 kleink Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@ -253,7 +253,7 @@ pci_conf_interrupt(pci_chipset_tag_t pc, int bus, int dev, int pin,
/* Avoid overconfiguration */
int
pci_conf_hook(pci_chipset_tag_t pc, int bus, int dev, int func, int id)
pci_conf_hook(pci_chipset_tag_t pc, int bus, int dev, int func, pcireg_t id)
{
if ((PCI_VENDOR(id) == PCI_VENDOR_IBM && PCI_PRODUCT(id) == PCI_PRODUCT_IBM_405GP) ||