Sat Aug 7 20:07:26 2010 UTC ()
Do not try to disable ACPI if we can not enter to legacy mode. While it is
safe to call AcpiDisable() even if a system operates only in ACPI mode, this
leads to unpleasantly verbose error messages in ACPICA.


(jruoho)
diff -r1.147 -r1.148 src/sys/arch/amd64/amd64/machdep.c
diff -r1.691 -r1.692 src/sys/arch/i386/i386/machdep.c
diff -r1.213 -r1.214 src/sys/dev/acpi/acpi.c
diff -r1.60 -r1.61 src/sys/dev/acpi/acpivar.h

cvs diff -r1.147 -r1.148 src/sys/arch/amd64/amd64/machdep.c (expand / switch to unified diff)

--- src/sys/arch/amd64/amd64/machdep.c 2010/07/31 18:38:32 1.147
+++ src/sys/arch/amd64/amd64/machdep.c 2010/08/07 20:07:25 1.148
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: machdep.c,v 1.147 2010/07/31 18:38:32 joerg Exp $ */ 1/* $NetBSD: machdep.c,v 1.148 2010/08/07 20:07:25 jruoho Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008 4 * Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008
5 * The NetBSD Foundation, Inc. 5 * The NetBSD Foundation, Inc.
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * This code is derived from software contributed to The NetBSD Foundation 8 * This code is derived from software contributed to The NetBSD Foundation
9 * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace 9 * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace
10 * Simulation Facility, NASA Ames Research Center. 10 * Simulation Facility, NASA Ames Research Center.
11 * 11 *
12 * Redistribution and use in source and binary forms, with or without 12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions 13 * modification, are permitted provided that the following conditions
14 * are met: 14 * are met:
@@ -97,27 +97,27 @@ @@ -97,27 +97,27 @@
97 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 97 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
98 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 98 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
99 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 99 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
100 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 100 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
101 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 101 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
102 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 102 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
103 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 103 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
104 * SUCH DAMAGE. 104 * SUCH DAMAGE.
105 * 105 *
106 * @(#)machdep.c 7.4 (Berkeley) 6/3/91 106 * @(#)machdep.c 7.4 (Berkeley) 6/3/91
107 */ 107 */
108 108
109#include <sys/cdefs.h> 109#include <sys/cdefs.h>
110__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.147 2010/07/31 18:38:32 joerg Exp $"); 110__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.148 2010/08/07 20:07:25 jruoho Exp $");
111 111
112/* #define XENDEBUG_LOW */ 112/* #define XENDEBUG_LOW */
113 113
114#include "opt_modular.h" 114#include "opt_modular.h"
115#include "opt_user_ldt.h" 115#include "opt_user_ldt.h"
116#include "opt_ddb.h" 116#include "opt_ddb.h"
117#include "opt_kgdb.h" 117#include "opt_kgdb.h"
118#include "opt_cpureset_delay.h" 118#include "opt_cpureset_delay.h"
119#include "opt_mtrr.h" 119#include "opt_mtrr.h"
120#include "opt_realmem.h" 120#include "opt_realmem.h"
121#include "opt_xen.h" 121#include "opt_xen.h"
122#ifndef XEN 122#ifndef XEN
123#include "opt_physmem.h" 123#include "opt_physmem.h"
@@ -699,27 +699,27 @@ haltsys: @@ -699,27 +699,27 @@ haltsys:
699#if NACPICA > 0 699#if NACPICA > 0
700 acpi_enter_sleep_state(acpi_softc, ACPI_STATE_S5); 700 acpi_enter_sleep_state(acpi_softc, ACPI_STATE_S5);
701 printf("WARNING: powerdown failed!\n"); 701 printf("WARNING: powerdown failed!\n");
702#endif 702#endif
703#else /* XEN */ 703#else /* XEN */
704 HYPERVISOR_shutdown(); 704 HYPERVISOR_shutdown();
705#endif /* XEN */ 705#endif /* XEN */
706 } 706 }
707 707
708 x86_broadcast_ipi(X86_IPI_HALT); 708 x86_broadcast_ipi(X86_IPI_HALT);
709 709
710 if (howto & RB_HALT) { 710 if (howto & RB_HALT) {
711#if NACPICA > 0 711#if NACPICA > 0
712 AcpiDisable(); 712 acpi_disable();
713#endif 713#endif
714 714
715 printf("\n"); 715 printf("\n");
716 printf("The operating system has halted.\n"); 716 printf("The operating system has halted.\n");
717 printf("Please press any key to reboot.\n\n"); 717 printf("Please press any key to reboot.\n\n");
718 cnpollc(1); /* for proper keyboard command handling */ 718 cnpollc(1); /* for proper keyboard command handling */
719 cngetc(); 719 cngetc();
720 cnpollc(0); 720 cnpollc(0);
721 } 721 }
722 722
723 printf("rebooting...\n"); 723 printf("rebooting...\n");
724 if (cpureset_delay > 0) 724 if (cpureset_delay > 0)
725 delay(cpureset_delay * 1000); 725 delay(cpureset_delay * 1000);

cvs diff -r1.691 -r1.692 src/sys/arch/i386/i386/machdep.c (expand / switch to unified diff)

--- src/sys/arch/i386/i386/machdep.c 2010/07/24 00:45:54 1.691
+++ src/sys/arch/i386/i386/machdep.c 2010/08/07 20:07:26 1.692
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: machdep.c,v 1.691 2010/07/24 00:45:54 jym Exp $ */ 1/* $NetBSD: machdep.c,v 1.692 2010/08/07 20:07:26 jruoho Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006, 2008, 2009 4 * Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006, 2008, 2009
5 * The NetBSD Foundation, Inc. 5 * The NetBSD Foundation, Inc.
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * This code is derived from software contributed to The NetBSD Foundation 8 * This code is derived from software contributed to The NetBSD Foundation
9 * by Charles M. Hannum, by Jason R. Thorpe of the Numerical Aerospace 9 * by Charles M. Hannum, by Jason R. Thorpe of the Numerical Aerospace
10 * Simulation Facility NASA Ames Research Center, by Julio M. Merino Vidal, 10 * Simulation Facility NASA Ames Research Center, by Julio M. Merino Vidal,
11 * and by Andrew Doran. 11 * and by Andrew Doran.
12 * 12 *
13 * Redistribution and use in source and binary forms, with or without 13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions 14 * modification, are permitted provided that the following conditions
@@ -57,27 +57,27 @@ @@ -57,27 +57,27 @@
57 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 57 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
58 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 58 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
59 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 59 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
60 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 60 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
61 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 61 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
62 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 62 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
63 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 63 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
64 * SUCH DAMAGE. 64 * SUCH DAMAGE.
65 * 65 *
66 * @(#)machdep.c 7.4 (Berkeley) 6/3/91 66 * @(#)machdep.c 7.4 (Berkeley) 6/3/91
67 */ 67 */
68 68
69#include <sys/cdefs.h> 69#include <sys/cdefs.h>
70__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.691 2010/07/24 00:45:54 jym Exp $"); 70__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.692 2010/08/07 20:07:26 jruoho Exp $");
71 71
72#include "opt_beep.h" 72#include "opt_beep.h"
73#include "opt_compat_ibcs2.h" 73#include "opt_compat_ibcs2.h"
74#include "opt_compat_mach.h" /* need to get the right segment def */ 74#include "opt_compat_mach.h" /* need to get the right segment def */
75#include "opt_compat_netbsd.h" 75#include "opt_compat_netbsd.h"
76#include "opt_compat_svr4.h" 76#include "opt_compat_svr4.h"
77#include "opt_cpureset_delay.h" 77#include "opt_cpureset_delay.h"
78#include "opt_ddb.h" 78#include "opt_ddb.h"
79#include "opt_ipkdb.h" 79#include "opt_ipkdb.h"
80#include "opt_kgdb.h" 80#include "opt_kgdb.h"
81#include "opt_mtrr.h" 81#include "opt_mtrr.h"
82#include "opt_modular.h" 82#include "opt_modular.h"
83#include "opt_multiboot.h" 83#include "opt_multiboot.h"
@@ -932,27 +932,27 @@ haltsys: @@ -932,27 +932,27 @@ haltsys:
932 printf("WARNING: APM powerdown failed!\n"); 932 printf("WARNING: APM powerdown failed!\n");
933 /* 933 /*
934 * RB_POWERDOWN implies RB_HALT... fall into it... 934 * RB_POWERDOWN implies RB_HALT... fall into it...
935 */ 935 */
936#endif 936#endif
937 } 937 }
938 938
939#ifdef MULTIPROCESSOR 939#ifdef MULTIPROCESSOR
940 x86_broadcast_ipi(X86_IPI_HALT); 940 x86_broadcast_ipi(X86_IPI_HALT);
941#endif 941#endif
942 942
943 if (howto & RB_HALT) { 943 if (howto & RB_HALT) {
944#if NACPICA > 0 944#if NACPICA > 0
945 AcpiDisable(); 945 acpi_disable();
946#endif 946#endif
947 947
948 printf("\n"); 948 printf("\n");
949 printf("The operating system has halted.\n"); 949 printf("The operating system has halted.\n");
950 printf("Please press any key to reboot.\n\n"); 950 printf("Please press any key to reboot.\n\n");
951 951
952#ifdef BEEP_ONHALT 952#ifdef BEEP_ONHALT
953 { 953 {
954 int c; 954 int c;
955 for (c = BEEP_ONHALT_COUNT; c > 0; c--) { 955 for (c = BEEP_ONHALT_COUNT; c > 0; c--) {
956 sysbeep(BEEP_ONHALT_PITCH, 956 sysbeep(BEEP_ONHALT_PITCH,
957 BEEP_ONHALT_PERIOD * hz / 1000); 957 BEEP_ONHALT_PERIOD * hz / 1000);
958 delay(BEEP_ONHALT_PERIOD * 1000); 958 delay(BEEP_ONHALT_PERIOD * 1000);

cvs diff -r1.213 -r1.214 src/sys/dev/acpi/acpi.c (expand / switch to unified diff)

--- src/sys/dev/acpi/acpi.c 2010/08/07 17:12:55 1.213
+++ src/sys/dev/acpi/acpi.c 2010/08/07 20:07:25 1.214
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: acpi.c,v 1.213 2010/08/07 17:12:55 jruoho Exp $ */ 1/* $NetBSD: acpi.c,v 1.214 2010/08/07 20:07:25 jruoho Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2003, 2007 The NetBSD Foundation, Inc. 4 * Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Charles M. Hannum of By Noon Software, Inc. 8 * by Charles M. Hannum of By Noon Software, Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -90,27 +90,27 @@ @@ -90,27 +90,27 @@
90 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 90 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
91 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 91 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
92 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WASABI SYSTEMS, INC 92 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WASABI SYSTEMS, INC
93 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 93 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
94 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 94 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
95 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 95 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
96 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 96 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
97 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 97 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
98 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 98 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
99 * POSSIBILITY OF SUCH DAMAGE. 99 * POSSIBILITY OF SUCH DAMAGE.
100 */ 100 */
101 101
102#include <sys/cdefs.h> 102#include <sys/cdefs.h>
103__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.213 2010/08/07 17:12:55 jruoho Exp $"); 103__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.214 2010/08/07 20:07:25 jruoho Exp $");
104 104
105#include "opt_acpi.h" 105#include "opt_acpi.h"
106#include "opt_pcifixup.h" 106#include "opt_pcifixup.h"
107 107
108#include <sys/param.h> 108#include <sys/param.h>
109#include <sys/device.h> 109#include <sys/device.h>
110#include <sys/kernel.h> 110#include <sys/kernel.h>
111#include <sys/malloc.h> 111#include <sys/malloc.h>
112#include <sys/module.h> 112#include <sys/module.h>
113#include <sys/mutex.h> 113#include <sys/mutex.h>
114#include <sys/sysctl.h> 114#include <sys/sysctl.h>
115#include <sys/systm.h> 115#include <sys/systm.h>
116#include <sys/timetc.h> 116#include <sys/timetc.h>
@@ -353,26 +353,34 @@ acpi_probe(void) @@ -353,26 +353,34 @@ acpi_probe(void)
353fail: 353fail:
354 KASSERT(rv != AE_OK); 354 KASSERT(rv != AE_OK);
355 KASSERT(func != NULL); 355 KASSERT(func != NULL);
356 356
357 aprint_error("%s: failed to probe ACPI: %s\n", 357 aprint_error("%s: failed to probe ACPI: %s\n",
358 func, AcpiFormatException(rv)); 358 func, AcpiFormatException(rv));
359 359
360 if (initialized != false) 360 if (initialized != false)
361 (void)AcpiTerminate(); 361 (void)AcpiTerminate();
362 362
363 return 0; 363 return 0;
364} 364}
365 365
 366void
 367acpi_disable(void)
 368{
 369
 370 if (AcpiGbl_FADT.SmiCommand != 0)
 371 AcpiDisable();
 372}
 373
366int 374int
367acpi_check(device_t parent, const char *ifattr) 375acpi_check(device_t parent, const char *ifattr)
368{ 376{
369 return (config_search_ia(acpi_submatch, parent, ifattr, NULL) != NULL); 377 return (config_search_ia(acpi_submatch, parent, ifattr, NULL) != NULL);
370} 378}
371 379
372/* 380/*
373 * Autoconfiguration. 381 * Autoconfiguration.
374 */ 382 */
375static int 383static int
376acpi_match(device_t parent, cfdata_t match, void *aux) 384acpi_match(device_t parent, cfdata_t match, void *aux)
377{ 385{
378 /* 386 /*

cvs diff -r1.60 -r1.61 src/sys/dev/acpi/acpivar.h (expand / switch to unified diff)

--- src/sys/dev/acpi/acpivar.h 2010/08/07 09:41:19 1.60
+++ src/sys/dev/acpi/acpivar.h 2010/08/07 20:07:25 1.61
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: acpivar.h,v 1.60 2010/08/07 09:41:19 jruoho Exp $ */ 1/* $NetBSD: acpivar.h,v 1.61 2010/08/07 20:07:25 jruoho Exp $ */
2 2
3/* 3/*
4 * Copyright 2001 Wasabi Systems, Inc. 4 * Copyright 2001 Wasabi Systems, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Jason R. Thorpe for Wasabi Systems, Inc. 7 * Written by Jason R. Thorpe for Wasabi Systems, Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -256,26 +256,27 @@ struct acpi_resource_parse_ops { @@ -256,26 +256,27 @@ struct acpi_resource_parse_ops {
256 void (*irq)(device_t, void *, uint32_t, uint32_t); 256 void (*irq)(device_t, void *, uint32_t, uint32_t);
257 void (*drq)(device_t, void *, uint32_t); 257 void (*drq)(device_t, void *, uint32_t);
258 258
259 void (*start_dep)(device_t, void *, int); 259 void (*start_dep)(device_t, void *, int);
260 void (*end_dep)(device_t, void *); 260 void (*end_dep)(device_t, void *);
261}; 261};
262 262
263extern struct acpi_softc *acpi_softc; 263extern struct acpi_softc *acpi_softc;
264extern int acpi_active; 264extern int acpi_active;
265 265
266extern const struct acpi_resource_parse_ops acpi_resource_parse_ops_default; 266extern const struct acpi_resource_parse_ops acpi_resource_parse_ops_default;
267 267
268int acpi_probe(void); 268int acpi_probe(void);
 269void acpi_disable(void);
269int acpi_check(device_t, const char *); 270int acpi_check(device_t, const char *);
270 271
271ACPI_PHYSICAL_ADDRESS acpi_OsGetRootPointer(void); 272ACPI_PHYSICAL_ADDRESS acpi_OsGetRootPointer(void);
272 273
273bool acpi_register_notify(struct acpi_devnode *, 274bool acpi_register_notify(struct acpi_devnode *,
274 ACPI_NOTIFY_HANDLER); 275 ACPI_NOTIFY_HANDLER);
275void acpi_deregister_notify(struct acpi_devnode *); 276void acpi_deregister_notify(struct acpi_devnode *);
276 277
277ACPI_STATUS acpi_resource_parse(device_t, ACPI_HANDLE, const char *, 278ACPI_STATUS acpi_resource_parse(device_t, ACPI_HANDLE, const char *,
278 void *, const struct acpi_resource_parse_ops *); 279 void *, const struct acpi_resource_parse_ops *);
279void acpi_resource_print(device_t, struct acpi_resources *); 280void acpi_resource_print(device_t, struct acpi_resources *);
280void acpi_resource_cleanup(struct acpi_resources *); 281void acpi_resource_cleanup(struct acpi_resources *);
281 282