diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-02-06 11:59:52 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-02-06 11:59:52 +0000 |
commit | fd4c48852a9908569e8e68bc139cdc897aa34944 (patch) | |
tree | 36df192227c87ae591a6ea34d54693ffcd38e36b /sys | |
parent | f8a6db24e4b2c7dd7d4e95bfcd9231a0b7fa226b (diff) |
Enable the code that reads the BIOS from the ACPI VFCT table on platforms
with ACPI.
ok jsg@
Diffstat (limited to 'sys')
-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) { |