From fd4c48852a9908569e8e68bc139cdc897aa34944 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 6 Feb 2016 11:59:52 +0000 Subject: Enable the code that reads the BIOS from the ACPI VFCT table on platforms with ACPI. ok jsg@ --- sys/dev/pci/drm/radeon/radeon_bios.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sys') 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) { -- cgit v1.2.3