From 239f93eac26516451d8fe99c92ce8e530e1f6e96 Mon Sep 17 00:00:00 2001 From: Jordan Hargrave Date: Tue, 29 Jun 2010 22:08:30 +0000 Subject: Add support for mapping ACPI to PCI devices ok kettenis, deraadt --- sys/arch/amd64/pci/pci_machdep.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'sys/arch/amd64/pci') diff --git a/sys/arch/amd64/pci/pci_machdep.c b/sys/arch/amd64/pci/pci_machdep.c index 265d4dfdbe3..d2f35bed37e 100644 --- a/sys/arch/amd64/pci/pci_machdep.c +++ b/sys/arch/amd64/pci/pci_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.c,v 1.32 2009/09/28 15:58:30 kettenis Exp $ */ +/* $OpenBSD: pci_machdep.c,v 1.33 2010/06/29 22:08:29 jordan Exp $ */ /* $NetBSD: pci_machdep.c,v 1.3 2003/05/07 21:33:58 fvdl Exp $ */ /*- @@ -418,3 +418,16 @@ pci_init_extents(void) EX_CONFLICTOK | EX_NOWAIT); } } + +#include "acpi.h" +#if NACPI > 0 +void acpi_pci_match(struct device *, struct pci_attach_args *); +#endif + +void +pci_dev_postattach(struct device *dev, struct pci_attach_args *pa) +{ +#if NACPI > 0 + acpi_pci_match(dev, pa); +#endif +} -- cgit v1.2.3