Rename options ACPI_REDUCED_HARDWARE to ACPI_REDUCED_HW. The former is a boolean in the acpica build, so use the latter to select the correct value.diff -r1.6 -r1.7 src/sys/arch/evbarm/conf/std.generic64
(jmcneill)
--- src/sys/arch/evbarm/conf/std.generic64 2018/10/16 00:32:07 1.6
+++ src/sys/arch/evbarm/conf/std.generic64 2018/10/16 10:25:33 1.7
@@ -1,25 +1,25 @@ | @@ -1,25 +1,25 @@ | |||
1 | # $NetBSD: std.generic64,v 1.6 2018/10/16 00:32:07 jmcneill Exp $ | 1 | # $NetBSD: std.generic64,v 1.7 2018/10/16 10:25:33 jmcneill Exp $ | |
2 | # | 2 | # | |
3 | # generic NetBSD/evbarm64 with FDT support | 3 | # generic NetBSD/evbarm64 with FDT support | |
4 | 4 | |||
5 | machine evbarm aarch64 | 5 | machine evbarm aarch64 | |
6 | include "conf/std" | 6 | include "conf/std" | |
7 | include "arch/aarch64/conf/std.aarch64" # arch standard options | 7 | include "arch/aarch64/conf/std.aarch64" # arch standard options | |
8 | 8 | |||
9 | # Architecture options | 9 | # Architecture options | |
10 | options AARCH64 | 10 | options AARCH64 | |
11 | 11 | |||
12 | options ACPI_REDUCED_HARDWARE | 12 | options ACPI_REDUCED_HW | |
13 | options ARM_GENERIC_TODR | 13 | options ARM_GENERIC_TODR | |
14 | options ARM_INTR_IMPL="<arch/arm/fdt/fdt_intr.h>" | 14 | options ARM_INTR_IMPL="<arch/arm/fdt/fdt_intr.h>" | |
15 | options DRAM_BLOCKS=256 | 15 | options DRAM_BLOCKS=256 | |
16 | options EVBARM_BOARDTYPE="FDT" | 16 | options EVBARM_BOARDTYPE="FDT" | |
17 | options FDT # Flattened Device Tree support | 17 | options FDT # Flattened Device Tree support | |
18 | options FPU_VFP | 18 | options FPU_VFP | |
19 | options PCI_NETBSD_CONFIGURE | 19 | options PCI_NETBSD_CONFIGURE | |
20 | options __HAVE_PCI_CONF_HOOK | 20 | options __HAVE_PCI_CONF_HOOK | |
21 | 21 | |||
22 | # XXXNH not yet | 22 | # XXXNH not yet | |
23 | #options __HAVE_CPU_UAREA_ALLOC_IDLELWP | 23 | #options __HAVE_CPU_UAREA_ALLOC_IDLELWP | |
24 | #options MODULAR | 24 | #options MODULAR | |
25 | #options MODULAR_DEFAULT_AUTOLOAD | 25 | #options MODULAR_DEFAULT_AUTOLOAD |
--- src/sys/dev/acpi/acpi.c 2018/10/16 00:30:08 1.275
+++ src/sys/dev/acpi/acpi.c 2018/10/16 10:25:33 1.276
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: acpi.c,v 1.275 2018/10/16 00:30:08 jmcneill Exp $ */ | 1 | /* $NetBSD: acpi.c,v 1.276 2018/10/16 10:25:33 jmcneill 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.275 2018/10/16 00:30:08 jmcneill Exp $"); | 103 | __KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.276 2018/10/16 10:25:33 jmcneill Exp $"); | |
104 | 104 | |||
105 | #include "pci.h" | 105 | #include "pci.h" | |
106 | #include "opt_acpi.h" | 106 | #include "opt_acpi.h" | |
107 | #include "opt_pcifixup.h" | 107 | #include "opt_pcifixup.h" | |
108 | 108 | |||
109 | #include <sys/param.h> | 109 | #include <sys/param.h> | |
110 | #include <sys/device.h> | 110 | #include <sys/device.h> | |
111 | #include <sys/kernel.h> | 111 | #include <sys/kernel.h> | |
112 | #include <sys/kmem.h> | 112 | #include <sys/kmem.h> | |
113 | #include <sys/malloc.h> | 113 | #include <sys/malloc.h> | |
114 | #include <sys/module.h> | 114 | #include <sys/module.h> | |
115 | #include <sys/mutex.h> | 115 | #include <sys/mutex.h> | |
116 | #include <sys/sysctl.h> | 116 | #include <sys/sysctl.h> | |
@@ -1400,27 +1400,27 @@ acpi_enter_sleep_state(int state) | @@ -1400,27 +1400,27 @@ acpi_enter_sleep_state(int state) | |||
1400 | if (ACPI_FAILURE(rv)) | 1400 | if (ACPI_FAILURE(rv)) | |
1401 | aprint_error_dev(sc->sc_dev, "failed to " | 1401 | aprint_error_dev(sc->sc_dev, "failed to " | |
1402 | "enter S1: %s\n", AcpiFormatException(rv)); | 1402 | "enter S1: %s\n", AcpiFormatException(rv)); | |
1403 | 1403 | |||
1404 | /* | 1404 | /* | |
1405 | * Clear fixed events and disable all GPEs before | 1405 | * Clear fixed events and disable all GPEs before | |
1406 | * interrupts are enabled. | 1406 | * interrupts are enabled. | |
1407 | */ | 1407 | */ | |
1408 | AcpiClearEvent(ACPI_EVENT_PMTIMER); | 1408 | AcpiClearEvent(ACPI_EVENT_PMTIMER); | |
1409 | AcpiClearEvent(ACPI_EVENT_GLOBAL); | 1409 | AcpiClearEvent(ACPI_EVENT_GLOBAL); | |
1410 | AcpiClearEvent(ACPI_EVENT_POWER_BUTTON); | 1410 | AcpiClearEvent(ACPI_EVENT_POWER_BUTTON); | |
1411 | AcpiClearEvent(ACPI_EVENT_SLEEP_BUTTON); | 1411 | AcpiClearEvent(ACPI_EVENT_SLEEP_BUTTON); | |
1412 | AcpiClearEvent(ACPI_EVENT_RTC); | 1412 | AcpiClearEvent(ACPI_EVENT_RTC); | |
1413 | #if !defined(ACPI_REDUCED_HARDWARE) | 1413 | #if (!ACPI_REDUCED_HARDWARE) | |
1414 | AcpiHwDisableAllGpes(); | 1414 | AcpiHwDisableAllGpes(); | |
1415 | #endif | 1415 | #endif | |
1416 | 1416 | |||
1417 | acpi_md_OsEnableInterrupt(); | 1417 | acpi_md_OsEnableInterrupt(); | |
1418 | rv = AcpiLeaveSleepState(state); | 1418 | rv = AcpiLeaveSleepState(state); | |
1419 | 1419 | |||
1420 | } else { | 1420 | } else { | |
1421 | 1421 | |||
1422 | (void)acpi_md_sleep(state); | 1422 | (void)acpi_md_sleep(state); | |
1423 | 1423 | |||
1424 | if (state == ACPI_STATE_S4) | 1424 | if (state == ACPI_STATE_S4) | |
1425 | AcpiEnable(); | 1425 | AcpiEnable(); | |
1426 | 1426 |
--- src/sys/dev/acpi/acpi_timer.c 2018/10/16 00:30:08 1.24
+++ src/sys/dev/acpi/acpi_timer.c 2018/10/16 10:25:33 1.25
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: acpi_timer.c,v 1.24 2018/10/16 00:30:08 jmcneill Exp $ */ | 1 | /* $NetBSD: acpi_timer.c,v 1.25 2018/10/16 10:25:33 jmcneill Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 2006 Matthias Drochner <drochner@NetBSD.org> | 4 | * Copyright (c) 2006 Matthias Drochner <drochner@NetBSD.org> | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * Redistribution and use in source and binary forms, with or without | 7 | * Redistribution and use in source and binary forms, with or without | |
8 | * modification, are permitted provided that the following conditions | 8 | * modification, are permitted provided that the following conditions | |
9 | * are met: | 9 | * are met: | |
10 | * 1. Redistributions of source code must retain the above copyright | 10 | * 1. Redistributions of source code must retain the above copyright | |
11 | * notice, this list of conditions and the following disclaimer. | 11 | * notice, this list of conditions and the following disclaimer. | |
12 | * 2. Redistributions in binary form must reproduce the above copyright | 12 | * 2. Redistributions in binary form must reproduce the above copyright | |
13 | * notice, this list of conditions and the following disclaimer in the | 13 | * notice, this list of conditions and the following disclaimer in the | |
14 | * documentation and/or other materials provided with the distribution. | 14 | * documentation and/or other materials provided with the distribution. | |
@@ -17,63 +17,63 @@ | @@ -17,63 +17,63 @@ | |||
17 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | 17 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | |
18 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 18 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | |
19 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | 19 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | |
20 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | 20 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | 21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
26 | * POSSIBILITY OF SUCH DAMAGE. | 26 | * POSSIBILITY OF SUCH DAMAGE. | |
27 | */ | 27 | */ | |
28 | 28 | |||
29 | #include <sys/cdefs.h> | 29 | #include <sys/cdefs.h> | |
30 | __KERNEL_RCSID(0, "$NetBSD: acpi_timer.c,v 1.24 2018/10/16 00:30:08 jmcneill Exp $"); | 30 | __KERNEL_RCSID(0, "$NetBSD: acpi_timer.c,v 1.25 2018/10/16 10:25:33 jmcneill Exp $"); | |
31 | 31 | |||
32 | #include <sys/types.h> | 32 | #include <sys/types.h> | |
33 | #include <sys/systm.h> | 33 | #include <sys/systm.h> | |
34 | #include <sys/time.h> | 34 | #include <sys/time.h> | |
35 | #include <sys/timetc.h> | 35 | #include <sys/timetc.h> | |
36 | 36 | |||
37 | #include <dev/acpi/acpivar.h> | 37 | #include <dev/acpi/acpivar.h> | |
38 | #include <dev/acpi/acpi_timer.h> | 38 | #include <dev/acpi/acpi_timer.h> | |
39 | 39 | |||
40 | #include <machine/acpi_machdep.h> | 40 | #include <machine/acpi_machdep.h> | |
41 | 41 | |||
42 | #if !defined(ACPI_REDUCED_HARDWARE) | 42 | #if (!ACPI_REDUCED_HARDWARE) | |
43 | static int acpitimer_test(void); | 43 | static int acpitimer_test(void); | |
44 | 44 | |||
45 | static struct timecounter acpi_timecounter = { | 45 | static struct timecounter acpi_timecounter = { | |
46 | acpitimer_read_safe, | 46 | acpitimer_read_safe, | |
47 | 0, | 47 | 0, | |
48 | 0x00ffffff, | 48 | 0x00ffffff, | |
49 | ACPI_PM_TIMER_FREQUENCY, | 49 | ACPI_PM_TIMER_FREQUENCY, | |
50 | "ACPI-Safe", | 50 | "ACPI-Safe", | |
51 | 900, | 51 | 900, | |
52 | NULL, | 52 | NULL, | |
53 | NULL, | 53 | NULL, | |
54 | }; | 54 | }; | |
55 | 55 | |||
56 | static bool | 56 | static bool | |
57 | acpitimer_supported(void) | 57 | acpitimer_supported(void) | |
58 | { | 58 | { | |
59 | return AcpiGbl_FADT.PmTimerLength != 0; | 59 | return AcpiGbl_FADT.PmTimerLength != 0; | |
60 | } | 60 | } | |
61 | #endif | 61 | #endif | |
62 | 62 | |||
63 | int | 63 | int | |
64 | acpitimer_init(struct acpi_softc *sc) | 64 | acpitimer_init(struct acpi_softc *sc) | |
65 | { | 65 | { | |
66 | #if !defined(ACPI_REDUCED_HARDWARE) | 66 | #if (!ACPI_REDUCED_HARDWARE) | |
67 | ACPI_STATUS rv; | 67 | ACPI_STATUS rv; | |
68 | uint32_t bits; | 68 | uint32_t bits; | |
69 | int i, j; | 69 | int i, j; | |
70 | 70 | |||
71 | if (!acpitimer_supported()) | 71 | if (!acpitimer_supported()) | |
72 | return -1; | 72 | return -1; | |
73 | 73 | |||
74 | rv = AcpiGetTimerResolution(&bits); | 74 | rv = AcpiGetTimerResolution(&bits); | |
75 | 75 | |||
76 | if (ACPI_FAILURE(rv)) | 76 | if (ACPI_FAILURE(rv)) | |
77 | return -1; | 77 | return -1; | |
78 | 78 | |||
79 | if (bits == 32) | 79 | if (bits == 32) | |
@@ -92,37 +92,37 @@ acpitimer_init(struct acpi_softc *sc) | @@ -92,37 +92,37 @@ acpitimer_init(struct acpi_softc *sc) | |||
92 | 92 | |||
93 | aprint_debug_dev(sc->sc_dev, "%s %d-bit timer\n", | 93 | aprint_debug_dev(sc->sc_dev, "%s %d-bit timer\n", | |
94 | acpi_timecounter.tc_name, bits); | 94 | acpi_timecounter.tc_name, bits); | |
95 | 95 | |||
96 | return 0; | 96 | return 0; | |
97 | #else | 97 | #else | |
98 | return -1; | 98 | return -1; | |
99 | #endif | 99 | #endif | |
100 | } | 100 | } | |
101 | 101 | |||
102 | int | 102 | int | |
103 | acpitimer_detach(void) | 103 | acpitimer_detach(void) | |
104 | { | 104 | { | |
105 | #if !defined(ACPI_REDUCED_HARDWARE) | 105 | #if (!ACPI_REDUCED_HARDWARE) | |
106 | if (!acpitimer_supported()) | 106 | if (!acpitimer_supported()) | |
107 | return -1; | 107 | return -1; | |
108 | 108 | |||
109 | return tc_detach(&acpi_timecounter); | 109 | return tc_detach(&acpi_timecounter); | |
110 | #else | 110 | #else | |
111 | return -1; | 111 | return -1; | |
112 | #endif | 112 | #endif | |
113 | } | 113 | } | |
114 | 114 | |||
115 | #if !defined(ACPI_REDUCED_HARDWARE) | 115 | #if (!ACPI_REDUCED_HARDWARE) | |
116 | u_int | 116 | u_int | |
117 | acpitimer_read_fast(struct timecounter *tc) | 117 | acpitimer_read_fast(struct timecounter *tc) | |
118 | { | 118 | { | |
119 | uint32_t t; | 119 | uint32_t t; | |
120 | 120 | |||
121 | (void)AcpiGetTimer(&t); | 121 | (void)AcpiGetTimer(&t); | |
122 | 122 | |||
123 | return t; | 123 | return t; | |
124 | } | 124 | } | |
125 | 125 | |||
126 | /* | 126 | /* | |
127 | * Some chipsets (PIIX4 variants) do not latch correctly; | 127 | * Some chipsets (PIIX4 variants) do not latch correctly; | |
128 | * there is a chance that a transition is hit. | 128 | * there is a chance that a transition is hit. |
--- src/sys/dev/acpi/files.acpi 2018/10/16 00:30:08 1.105
+++ src/sys/dev/acpi/files.acpi 2018/10/16 10:25:33 1.106
@@ -1,20 +1,20 @@ | @@ -1,20 +1,20 @@ | |||
1 | # $NetBSD: files.acpi,v 1.105 2018/10/16 00:30:08 jmcneill Exp $ | 1 | # $NetBSD: files.acpi,v 1.106 2018/10/16 10:25:33 jmcneill Exp $ | |
2 | 2 | |||
3 | include "dev/acpi/acpica/files.acpica" | 3 | include "dev/acpi/acpica/files.acpica" | |
4 | 4 | |||
5 | defflag opt_acpi.h ACPIVERBOSE ACPI_DEBUG ACPI_ACTIVATE_DEV | 5 | defflag opt_acpi.h ACPIVERBOSE ACPI_DEBUG ACPI_ACTIVATE_DEV | |
6 | ACPI_DSDT_OVERRIDE ACPI_SCANPCI ACPI_BREAKPOINT | 6 | ACPI_DSDT_OVERRIDE ACPI_SCANPCI ACPI_BREAKPOINT | |
7 | ACPI_REDUCED_HARDWARE ACPI__DIS_IS_BROKEN | 7 | ACPI_REDUCED_HW ACPI__DIS_IS_BROKEN | |
8 | defparam opt_acpi.h ACPI_DSDT_FILE := "\"/dev/null\"" | 8 | defparam opt_acpi.h ACPI_DSDT_FILE := "\"/dev/null\"" | |
9 | defparam opt_acpi.h ACPI_BLACKLIST_YEAR = 2000 | 9 | defparam opt_acpi.h ACPI_BLACKLIST_YEAR = 2000 | |
10 | 10 | |||
11 | define acpiapmbus { } | 11 | define acpiapmbus { } | |
12 | define acpinodebus { } | 12 | define acpinodebus { } | |
13 | define acpiecdtbus { } | 13 | define acpiecdtbus { } | |
14 | define acpihpetbus { } | 14 | define acpihpetbus { } | |
15 | define acpiwdrtbus { } | 15 | define acpiwdrtbus { } | |
16 | define acpisdtbus { } | 16 | define acpisdtbus { } | |
17 | define acpigtdtbus { } | 17 | define acpigtdtbus { } | |
18 | define acpimadtbus { } | 18 | define acpimadtbus { } | |
19 | 19 | |||
20 | device acpi: acpica, acpiapmbus, acpinodebus, acpiecdtbus, acpisdtbus, acpigtdtbus, acpimadtbus, acpihpetbus, acpiwdrtbus, sysmon_power, sysmon_taskq | 20 | device acpi: acpica, acpiapmbus, acpinodebus, acpiecdtbus, acpisdtbus, acpigtdtbus, acpimadtbus, acpihpetbus, acpiwdrtbus, sysmon_power, sysmon_taskq |
--- src/sys/external/bsd/acpica/dist/include/platform/acnetbsd.h 2018/04/07 15:49:51 1.17
+++ src/sys/external/bsd/acpica/dist/include/platform/acnetbsd.h 2018/10/16 10:25:33 1.18
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** | |
2 | * | 2 | * | |
3 | * Name: acnetbsd.h - OS specific defines, etc. | 3 | * Name: acnetbsd.h - OS specific defines, etc. | |
4 | * $Revision: 1.17 $ | 4 | * $Revision: 1.18 $ | |
5 | * | 5 | * | |
6 | *****************************************************************************/ | 6 | *****************************************************************************/ | |
7 | 7 | |||
8 | /* | 8 | /* | |
9 | * Copyright (C) 2000 - 2018, Intel Corp. | 9 | * Copyright (C) 2000 - 2018, Intel Corp. | |
10 | * All rights reserved. | 10 | * All rights reserved. | |
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: | |
15 | * 1. Redistributions of source code must retain the above copyright | 15 | * 1. Redistributions of source code must retain the above copyright | |
16 | * notice, this list of conditions, and the following disclaimer, | 16 | * notice, this list of conditions, and the following disclaimer, | |
17 | * without modification. | 17 | * without modification. | |
@@ -104,26 +104,30 @@ | @@ -104,26 +104,30 @@ | |||
104 | #define ACPI_DBG_TRACK_ALLOCATIONS | 104 | #define ACPI_DBG_TRACK_ALLOCATIONS | |
105 | #endif | 105 | #endif | |
106 | #ifdef DEBUGGER_THREADING | 106 | #ifdef DEBUGGER_THREADING | |
107 | #undef DEBUGGER_THREADING | 107 | #undef DEBUGGER_THREADING | |
108 | #endif /* DEBUGGER_THREADING */ | 108 | #endif /* DEBUGGER_THREADING */ | |
109 | #define DEBUGGER_THREADING 0 /* integrated with DDB */ | 109 | #define DEBUGGER_THREADING 0 /* integrated with DDB */ | |
110 | #include "opt_ddb.h" | 110 | #include "opt_ddb.h" | |
111 | #ifdef DDB | 111 | #ifdef DDB | |
112 | #define ACPI_DISASSEMBLER | 112 | #define ACPI_DISASSEMBLER | |
113 | #define ACPI_DEBUGGER | 113 | #define ACPI_DEBUGGER | |
114 | #endif /* DDB */ | 114 | #endif /* DDB */ | |
115 | #endif /* ACPI_DEBUG */ | 115 | #endif /* ACPI_DEBUG */ | |
116 | 116 | |||
117 | #ifdef ACPI_REDUCED_HW | |||
118 | #define ACPI_REDUCED_HARDWARE TRUE | |||
119 | #endif /* ACPI_REDUCED_HW */ | |||
120 | ||||
117 | #else /* defined(_KERNEL) || defined(_STANDALONE) */ | 121 | #else /* defined(_KERNEL) || defined(_STANDALONE) */ | |
118 | 122 | |||
119 | #include <ctype.h> | 123 | #include <ctype.h> | |
120 | #include <stdint.h> | 124 | #include <stdint.h> | |
121 | 125 | |||
122 | /* Not building kernel code, so use libc */ | 126 | /* Not building kernel code, so use libc */ | |
123 | #define ACPI_USE_STANDARD_HEADERS | 127 | #define ACPI_USE_STANDARD_HEADERS | |
124 | 128 | |||
125 | #define __cli() | 129 | #define __cli() | |
126 | #define __sti() | 130 | #define __sti() | |
127 | #define __cdecl | 131 | #define __cdecl | |
128 | 132 | |||
129 | /* XXX */ | 133 | /* XXX */ |