drm: Omit needless conditionals around #include "acpica.h".diff -r1.46 -r1.47 src/sys/external/bsd/drm2/dist/drm/i915/i915_drv.h
(riastradh)
--- src/sys/external/bsd/drm2/dist/drm/i915/i915_drv.h 2021/12/19 11:55:24 1.46
+++ src/sys/external/bsd/drm2/dist/drm/i915/i915_drv.h 2022/02/27 14:22:29 1.47
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: i915_drv.h,v 1.46 2021/12/19 11:55:24 riastradh Exp $ */ | 1 | /* $NetBSD: i915_drv.h,v 1.47 2022/02/27 14:22:29 riastradh Exp $ */ | |
2 | 2 | |||
3 | /* i915_drv.h -- Private header for the I915 driver -*- linux-c -*- | 3 | /* i915_drv.h -- Private header for the I915 driver -*- linux-c -*- | |
4 | */ | 4 | */ | |
5 | /* | 5 | /* | |
6 | * | 6 | * | |
7 | * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas. | 7 | * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas. | |
8 | * All Rights Reserved. | 8 | * All Rights Reserved. | |
9 | * | 9 | * | |
10 | * Permission is hereby granted, free of charge, to any person obtaining a | 10 | * Permission is hereby granted, free of charge, to any person obtaining a | |
11 | * copy of this software and associated documentation files (the | 11 | * copy of this software and associated documentation files (the | |
12 | * "Software"), to deal in the Software without restriction, including | 12 | * "Software"), to deal in the Software without restriction, including | |
13 | * without limitation the rights to use, copy, modify, merge, publish, | 13 | * without limitation the rights to use, copy, modify, merge, publish, | |
14 | * distribute, sub license, and/or sell copies of the Software, and to | 14 | * distribute, sub license, and/or sell copies of the Software, and to | |
@@ -24,29 +24,27 @@ | @@ -24,29 +24,27 @@ | |||
24 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. | 24 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. | |
25 | * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR | 25 | * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR | |
26 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | 26 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
27 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | 27 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
28 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 28 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
29 | * | 29 | * | |
30 | */ | 30 | */ | |
31 | 31 | |||
32 | #ifndef _I915_DRV_H_ | 32 | #ifndef _I915_DRV_H_ | |
33 | #define _I915_DRV_H_ | 33 | #define _I915_DRV_H_ | |
34 | 34 | |||
35 | #if defined(__NetBSD__) | 35 | #if defined(__NetBSD__) | |
36 | #ifdef _KERNEL_OPT | 36 | #ifdef _KERNEL_OPT | |
37 | #if defined(i386) || defined(amd64) | |||
38 | #include "acpica.h" | 37 | #include "acpica.h" | |
39 | #endif /* i386 || amd64 */ | |||
40 | #endif /* _KERNEL_OPT */ | 38 | #endif /* _KERNEL_OPT */ | |
41 | #if (NACPICA > 0) | 39 | #if (NACPICA > 0) | |
42 | #define CONFIG_ACPI | 40 | #define CONFIG_ACPI | |
43 | #endif /* NACPICA > 0 */ | 41 | #endif /* NACPICA > 0 */ | |
44 | #endif /* __NetBSD__ */ | 42 | #endif /* __NetBSD__ */ | |
45 | 43 | |||
46 | #include <uapi/drm/i915_drm.h> | 44 | #include <uapi/drm/i915_drm.h> | |
47 | #include <uapi/drm/drm_fourcc.h> | 45 | #include <uapi/drm/drm_fourcc.h> | |
48 | 46 | |||
49 | #include <linux/io-mapping.h> | 47 | #include <linux/io-mapping.h> | |
50 | #include <linux/i2c.h> | 48 | #include <linux/i2c.h> | |
51 | #include <linux/i2c-algo-bit.h> | 49 | #include <linux/i2c-algo-bit.h> | |
52 | #include <linux/backlight.h> | 50 | #include <linux/backlight.h> |
--- src/sys/external/bsd/drm2/include/linux/acpi.h 2022/02/27 14:22:21 1.7
+++ src/sys/external/bsd/drm2/include/linux/acpi.h 2022/02/27 14:22:29 1.8
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: acpi.h,v 1.7 2022/02/27 14:22:21 riastradh Exp $ */ | 1 | /* $NetBSD: acpi.h,v 1.8 2022/02/27 14:22:29 riastradh Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 2013 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 2013 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 Taylor R. Campbell. | 8 | * by Taylor R. Campbell. | |
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. | |
@@ -23,31 +23,27 @@ | @@ -23,31 +23,27 @@ | |||
23 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | 23 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
24 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | 24 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
25 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 25 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
26 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 26 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
27 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 27 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
29 | * POSSIBILITY OF SUCH DAMAGE. | 29 | * POSSIBILITY OF SUCH DAMAGE. | |
30 | */ | 30 | */ | |
31 | 31 | |||
32 | #ifndef _LINUX_ACPI_H_ | 32 | #ifndef _LINUX_ACPI_H_ | |
33 | #define _LINUX_ACPI_H_ | 33 | #define _LINUX_ACPI_H_ | |
34 | 34 | |||
35 | #ifdef _KERNEL_OPT | 35 | #ifdef _KERNEL_OPT | |
36 | #if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) | |||
37 | #include "acpica.h" | 36 | #include "acpica.h" | |
38 | #else | |||
39 | #define NACPICA 0 | |||
40 | #endif | |||
41 | #endif | 37 | #endif | |
42 | 38 | |||
43 | #if NACPICA > 0 | 39 | #if NACPICA > 0 | |
44 | #include <dev/acpi/acpivar.h> | 40 | #include <dev/acpi/acpivar.h> | |
45 | #endif | 41 | #endif | |
46 | 42 | |||
47 | #include <linux/types.h> | 43 | #include <linux/types.h> | |
48 | #include <linux/uuid.h> | 44 | #include <linux/uuid.h> | |
49 | 45 | |||
50 | typedef ACPI_HANDLE acpi_handle; | 46 | typedef ACPI_HANDLE acpi_handle; | |
51 | typedef ACPI_OBJECT_TYPE acpi_object_type; | 47 | typedef ACPI_OBJECT_TYPE acpi_object_type; | |
52 | typedef ACPI_STATUS acpi_status; | 48 | typedef ACPI_STATUS acpi_status; | |
53 | 49 |
--- src/sys/external/bsd/drm2/include/linux/pci.h 2021/12/19 12:13:16 1.51
+++ src/sys/external/bsd/drm2/include/linux/pci.h 2022/02/27 14:22:29 1.52
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: pci.h,v 1.51 2021/12/19 12:13:16 riastradh Exp $ */ | 1 | /* $NetBSD: pci.h,v 1.52 2022/02/27 14:22:29 riastradh Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 2013 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 2013 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 Taylor R. Campbell. | 8 | * by Taylor R. Campbell. | |
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. | |
@@ -23,31 +23,27 @@ | @@ -23,31 +23,27 @@ | |||
23 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | 23 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
24 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | 24 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
25 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 25 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
26 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 26 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
27 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 27 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
29 | * POSSIBILITY OF SUCH DAMAGE. | 29 | * POSSIBILITY OF SUCH DAMAGE. | |
30 | */ | 30 | */ | |
31 | 31 | |||
32 | #ifndef _LINUX_PCI_H_ | 32 | #ifndef _LINUX_PCI_H_ | |
33 | #define _LINUX_PCI_H_ | 33 | #define _LINUX_PCI_H_ | |
34 | 34 | |||
35 | #ifdef _KERNEL_OPT | 35 | #ifdef _KERNEL_OPT | |
36 | #if defined(i386) || defined(amd64) || defined(__aarch64__) | |||
37 | #include "acpica.h" | 36 | #include "acpica.h" | |
38 | #else /* !(i386 || amd64) */ | |||
39 | #define NACPICA 0 | |||
40 | #endif /* i386 || amd64 */ | |||
41 | #endif | 37 | #endif | |
42 | 38 | |||
43 | #include <sys/types.h> | 39 | #include <sys/types.h> | |
44 | #include <sys/param.h> | 40 | #include <sys/param.h> | |
45 | #include <sys/bus.h> | 41 | #include <sys/bus.h> | |
46 | #include <sys/cdefs.h> | 42 | #include <sys/cdefs.h> | |
47 | #include <sys/kmem.h> | 43 | #include <sys/kmem.h> | |
48 | #include <sys/systm.h> | 44 | #include <sys/systm.h> | |
49 | 45 | |||
50 | #include <machine/limits.h> | 46 | #include <machine/limits.h> | |
51 | 47 | |||
52 | #include <dev/pci/pcidevs.h> | 48 | #include <dev/pci/pcidevs.h> | |
53 | #include <dev/pci/pcireg.h> | 49 | #include <dev/pci/pcireg.h> |