diff options
author | 2016-02-06 11:59:51 +0000 | |
---|---|---|
committer | 2016-02-06 11:59:51 +0000 | |
commit | e0fd524e6ece5eff592c42a6559f61574f363814 (patch) | |
tree | 0c4a94a0d9689c701ae6721d613ef5622974bb48 | |
parent | Explain why we intentionally violate POSIX here, to prevent people from (diff) | |
download | wireguard-openbsd-e0fd524e6ece5eff592c42a6559f61574f363814.tar.xz wireguard-openbsd-e0fd524e6ece5eff592c42a6559f61574f363814.zip |
Enable the code that reads the BIOS from the ACPI VFCT table on platforms
with ACPI.
ok jsg@
-rw-r--r-- | sys/dev/pci/drm/radeon/radeon_bios.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/radeon/radeon_bios.c b/sys/dev/pci/drm/radeon/radeon_bios.c index 432d548ea86..a935ceaf5af 100644 --- a/sys/dev/pci/drm/radeon/radeon_bios.c +++ b/sys/dev/pci/drm/radeon/radeon_bios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radeon_bios.c,v 1.8 2016/02/05 08:49:59 kettenis Exp $ */ +/* $OpenBSD: radeon_bios.c,v 1.9 2016/02/06 11:59:51 kettenis Exp $ */ /* * Copyright 2008 Advanced Micro Devices, Inc. * Copyright 2008 Red Hat Inc. @@ -633,6 +633,14 @@ static bool radeon_read_disabled_bios(struct radeon_device *rdev) return legacy_read_disabled_bios(rdev); } +#if defined(__amd64__) || defined(__i386__) +#include "acpi.h" +#endif + +#if NACPI > 0 +#define CONFIG_ACPI +#endif + #ifdef CONFIG_ACPI static bool radeon_acpi_vfct_bios(struct radeon_device *rdev) { |