PR port-ia64/51261

Add pci_enumerate_bus stub so kernels will compile
This commit is contained in:
scole 2016-08-05 17:04:52 +00:00
parent 045f07da73
commit 24d1a025cf
1 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pci_machdep.c,v 1.4 2015/10/02 05:22:51 msaitoh Exp $ */
/* $NetBSD: pci_machdep.c,v 1.5 2016/08/05 17:04:52 scole Exp $ */
/*
* Copyright (c) 2009, 2010 KIYOHARA Takashi
* All rights reserved.
@ -25,7 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.4 2015/10/02 05:22:51 msaitoh Exp $");
__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.5 2016/08/05 17:04:52 scole Exp $");
#include <machine/bus.h>
#include <machine/sal.h>
@ -102,3 +102,13 @@ pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t val)
if (res.sal_status < 0)
printf("pci configuration write failed\n");
}
int
pci_enumerate_bus(struct pci_softc *sc, const int *locators,
int (*match)(const struct pci_attach_args *), struct pci_attach_args *pap)
{
/* XXX implement */
panic("ia64 pci_enumerate_bus not implemented");
return -1;
}