bring in old drm changes ifdef out some fb_info usage which we don't have and some of it ifdef'd out in old drm strangely reg_offset isn't used in the i2c whatever-thing we need one more member to drm_fb_helper define CONFIG_DRM_FBDEV_EMULATION so hopefully fewer redefinitions Author: coypu <coypu@sdf.org> Committer: Taylor R Campbell <riastradh@NetBSD.org>diff -r1.6 -r1.7 src/sys/external/bsd/drm2/dist/drm/i915/intel_fbdev.c
(riastradh)
--- src/sys/external/bsd/drm2/dist/drm/i915/Attic/intel_fbdev.c 2018/08/27 04:58:24 1.6
+++ src/sys/external/bsd/drm2/dist/drm/i915/Attic/intel_fbdev.c 2018/08/27 06:16:37 1.7
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: intel_fbdev.c,v 1.6 2018/08/27 04:58:24 riastradh Exp $ */ | 1 | /* $NetBSD: intel_fbdev.c,v 1.7 2018/08/27 06:16:37 riastradh Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright © 2007 David Airlie | 4 | * Copyright © 2007 David Airlie | |
5 | * | 5 | * | |
6 | * Permission is hereby granted, free of charge, to any person obtaining a | 6 | * Permission is hereby granted, free of charge, to any person obtaining a | |
7 | * copy of this software and associated documentation files (the "Software"), | 7 | * copy of this software and associated documentation files (the "Software"), | |
8 | * to deal in the Software without restriction, including without limitation | 8 | * to deal in the Software without restriction, including without limitation | |
9 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | 9 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
10 | * and/or sell copies of the Software, and to permit persons to whom the | 10 | * and/or sell copies of the Software, and to permit persons to whom the | |
11 | * Software is furnished to do so, subject to the following conditions: | 11 | * Software is furnished to do so, subject to the following conditions: | |
12 | * | 12 | * | |
13 | * The above copyright notice and this permission notice (including the next | 13 | * The above copyright notice and this permission notice (including the next | |
14 | * paragraph) shall be included in all copies or substantial portions of the | 14 | * paragraph) shall be included in all copies or substantial portions of the | |
@@ -17,27 +17,27 @@ | @@ -17,27 +17,27 @@ | |||
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
20 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | 20 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
22 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | |
23 | * DEALINGS IN THE SOFTWARE. | 23 | * DEALINGS IN THE SOFTWARE. | |
24 | * | 24 | * | |
25 | * Authors: | 25 | * Authors: | |
26 | * David Airlie | 26 | * David Airlie | |
27 | */ | 27 | */ | |
28 | 28 | |||
29 | #include <sys/cdefs.h> | 29 | #include <sys/cdefs.h> | |
30 | __KERNEL_RCSID(0, "$NetBSD: intel_fbdev.c,v 1.6 2018/08/27 04:58:24 riastradh Exp $"); | 30 | __KERNEL_RCSID(0, "$NetBSD: intel_fbdev.c,v 1.7 2018/08/27 06:16:37 riastradh Exp $"); | |
31 | 31 | |||
32 | #include <linux/async.h> | 32 | #include <linux/async.h> | |
33 | #include <linux/module.h> | 33 | #include <linux/module.h> | |
34 | #include <linux/kernel.h> | 34 | #include <linux/kernel.h> | |
35 | #include <linux/console.h> | 35 | #include <linux/console.h> | |
36 | #include <linux/errno.h> | 36 | #include <linux/errno.h> | |
37 | #include <linux/string.h> | 37 | #include <linux/string.h> | |
38 | #include <linux/mm.h> | 38 | #include <linux/mm.h> | |
39 | #include <linux/tty.h> | 39 | #include <linux/tty.h> | |
40 | #include <linux/sysrq.h> | 40 | #include <linux/sysrq.h> | |
41 | #include <linux/delay.h> | 41 | #include <linux/delay.h> | |
42 | #include <linux/fb.h> | 42 | #include <linux/fb.h> | |
43 | #include <linux/init.h> | 43 | #include <linux/init.h> | |
@@ -204,27 +204,26 @@ static int intelfb_create(struct drm_fb_ | @@ -204,27 +204,26 @@ static int intelfb_create(struct drm_fb_ | |||
204 | container_of(helper, struct intel_fbdev, helper); | 204 | container_of(helper, struct intel_fbdev, helper); | |
205 | struct intel_framebuffer *intel_fb = ifbdev->fb; | 205 | struct intel_framebuffer *intel_fb = ifbdev->fb; | |
206 | struct drm_device *dev = helper->dev; | 206 | struct drm_device *dev = helper->dev; | |
207 | struct drm_i915_private *dev_priv = dev->dev_private; | 207 | struct drm_i915_private *dev_priv = dev->dev_private; | |
208 | #ifndef __NetBSD__ | 208 | #ifndef __NetBSD__ | |
209 | struct fb_info *info; | 209 | struct fb_info *info; | |
210 | #endif | 210 | #endif | |
211 | struct drm_framebuffer *fb; | 211 | struct drm_framebuffer *fb; | |
212 | struct drm_i915_gem_object *obj; | 212 | struct drm_i915_gem_object *obj; | |
213 | int size, ret; | 213 | int size, ret; | |
214 | bool prealloc = false; | 214 | bool prealloc = false; | |
215 | 215 | |||
216 | mutex_lock(&dev->struct_mutex); | 216 | mutex_lock(&dev->struct_mutex); | |
217 | ||||
218 | if (intel_fb && | 217 | if (intel_fb && | |
219 | (sizes->fb_width > intel_fb->base.width || | 218 | (sizes->fb_width > intel_fb->base.width || | |
220 | sizes->fb_height > intel_fb->base.height)) { | 219 | sizes->fb_height > intel_fb->base.height)) { | |
221 | DRM_DEBUG_KMS("BIOS fb too small (%dx%d), we require (%dx%d)," | 220 | DRM_DEBUG_KMS("BIOS fb too small (%dx%d), we require (%dx%d)," | |
222 | " releasing it\n", | 221 | " releasing it\n", | |
223 | intel_fb->base.width, intel_fb->base.height, | 222 | intel_fb->base.width, intel_fb->base.height, | |
224 | sizes->fb_width, sizes->fb_height); | 223 | sizes->fb_width, sizes->fb_height); | |
225 | drm_framebuffer_unreference(&intel_fb->base); | 224 | drm_framebuffer_unreference(&intel_fb->base); | |
226 | intel_fb = ifbdev->fb = NULL; | 225 | intel_fb = ifbdev->fb = NULL; | |
227 | } | 226 | } | |
228 | if (!intel_fb || WARN_ON(!intel_fb->obj)) { | 227 | if (!intel_fb || WARN_ON(!intel_fb->obj)) { | |
229 | DRM_DEBUG_KMS("no BIOS fb, allocating a new one\n"); | 228 | DRM_DEBUG_KMS("no BIOS fb, allocating a new one\n"); | |
230 | ret = intelfb_alloc(helper, sizes); | 229 | ret = intelfb_alloc(helper, sizes); | |
@@ -712,31 +711,33 @@ static bool intel_fbdev_init_bios(struct | @@ -712,31 +711,33 @@ static bool intel_fbdev_init_bios(struct | |||
712 | } | 711 | } | |
713 | 712 | |||
714 | 713 | |||
715 | DRM_DEBUG_KMS("using BIOS fb for initial console\n"); | 714 | DRM_DEBUG_KMS("using BIOS fb for initial console\n"); | |
716 | return true; | 715 | return true; | |
717 | 716 | |||
718 | out: | 717 | out: | |
719 | 718 | |||
720 | return false; | 719 | return false; | |
721 | } | 720 | } | |
722 | 721 | |||
723 | static void intel_fbdev_suspend_worker(struct work_struct *work) | 722 | static void intel_fbdev_suspend_worker(struct work_struct *work) | |
724 | { | 723 | { | |
724 | #ifndef __NetBSD__ /* XXX fb suspend */ | |||
725 | intel_fbdev_set_suspend(container_of(work, | 725 | intel_fbdev_set_suspend(container_of(work, | |
726 | struct drm_i915_private, | 726 | struct drm_i915_private, | |
727 | fbdev_suspend_work)->dev, | 727 | fbdev_suspend_work)->dev, | |
728 | FBINFO_STATE_RUNNING, | 728 | FBINFO_STATE_RUNNING, | |
729 | true); | 729 | true); | |
730 | #endif | |||
730 | } | 731 | } | |
731 | 732 | |||
732 | int intel_fbdev_init(struct drm_device *dev) | 733 | int intel_fbdev_init(struct drm_device *dev) | |
733 | { | 734 | { | |
734 | struct intel_fbdev *ifbdev; | 735 | struct intel_fbdev *ifbdev; | |
735 | struct drm_i915_private *dev_priv = dev->dev_private; | 736 | struct drm_i915_private *dev_priv = dev->dev_private; | |
736 | int ret; | 737 | int ret; | |
737 | 738 | |||
738 | if (WARN_ON(INTEL_INFO(dev)->num_pipes == 0)) | 739 | if (WARN_ON(INTEL_INFO(dev)->num_pipes == 0)) | |
739 | return -ENODEV; | 740 | return -ENODEV; | |
740 | 741 | |||
741 | ifbdev = kzalloc(sizeof(struct intel_fbdev), GFP_KERNEL); | 742 | ifbdev = kzalloc(sizeof(struct intel_fbdev), GFP_KERNEL); | |
742 | if (ifbdev == NULL) | 743 | if (ifbdev == NULL) |
--- src/sys/external/bsd/drm2/dist/drm/i915/Attic/intel_i2c.c 2018/08/27 04:58:24 1.15
+++ src/sys/external/bsd/drm2/dist/drm/i915/Attic/intel_i2c.c 2018/08/27 06:16:37 1.16
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: intel_i2c.c,v 1.15 2018/08/27 04:58:24 riastradh Exp $ */ | 1 | /* $NetBSD: intel_i2c.c,v 1.16 2018/08/27 06:16:37 riastradh Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 2006 Dave Airlie <airlied@linux.ie> | 4 | * Copyright (c) 2006 Dave Airlie <airlied@linux.ie> | |
5 | * Copyright © 2006-2008,2010 Intel Corporation | 5 | * Copyright © 2006-2008,2010 Intel Corporation | |
6 | * Jesse Barnes <jesse.barnes@intel.com> | 6 | * Jesse Barnes <jesse.barnes@intel.com> | |
7 | * | 7 | * | |
8 | * Permission is hereby granted, free of charge, to any person obtaining a | 8 | * Permission is hereby granted, free of charge, to any person obtaining a | |
9 | * copy of this software and associated documentation files (the "Software"), | 9 | * copy of this software and associated documentation files (the "Software"), | |
10 | * to deal in the Software without restriction, including without limitation | 10 | * to deal in the Software without restriction, including without limitation | |
11 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | 11 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
12 | * and/or sell copies of the Software, and to permit persons to whom the | 12 | * and/or sell copies of the Software, and to permit persons to whom the | |
13 | * Software is furnished to do so, subject to the following conditions: | 13 | * Software is furnished to do so, subject to the following conditions: | |
14 | * | 14 | * | |
@@ -19,27 +19,27 @@ | @@ -19,27 +19,27 @@ | |||
19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | 19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
20 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | 20 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
21 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | 21 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
22 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | 22 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
23 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | 23 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
24 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 24 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | |
25 | * DEALINGS IN THE SOFTWARE. | 25 | * DEALINGS IN THE SOFTWARE. | |
26 | * | 26 | * | |
27 | * Authors: | 27 | * Authors: | |
28 | * Eric Anholt <eric@anholt.net> | 28 | * Eric Anholt <eric@anholt.net> | |
29 | * Chris Wilson <chris@chris-wilson.co.uk> | 29 | * Chris Wilson <chris@chris-wilson.co.uk> | |
30 | */ | 30 | */ | |
31 | #include <sys/cdefs.h> | 31 | #include <sys/cdefs.h> | |
32 | __KERNEL_RCSID(0, "$NetBSD: intel_i2c.c,v 1.15 2018/08/27 04:58:24 riastradh Exp $"); | 32 | __KERNEL_RCSID(0, "$NetBSD: intel_i2c.c,v 1.16 2018/08/27 06:16:37 riastradh Exp $"); | |
33 | 33 | |||
34 | #include <linux/i2c.h> | 34 | #include <linux/i2c.h> | |
35 | #include <linux/i2c-algo-bit.h> | 35 | #include <linux/i2c-algo-bit.h> | |
36 | #include <linux/export.h> | 36 | #include <linux/export.h> | |
37 | #include <linux/module.h> | 37 | #include <linux/module.h> | |
38 | #include <drm/drmP.h> | 38 | #include <drm/drmP.h> | |
39 | #include "intel_drv.h" | 39 | #include "intel_drv.h" | |
40 | #include <drm/i915_drm.h> | 40 | #include <drm/i915_drm.h> | |
41 | #include "i915_drv.h" | 41 | #include "i915_drv.h" | |
42 | 42 | |||
43 | struct gmbus_pin { | 43 | struct gmbus_pin { | |
44 | const char *name; | 44 | const char *name; | |
45 | int reg; | 45 | int reg; | |
@@ -279,42 +279,42 @@ gmbus_wait_hw_status(struct drm_i915_pri | @@ -279,42 +279,42 @@ gmbus_wait_hw_status(struct drm_i915_pri | |||
279 | if (!HAS_GMBUS_IRQ(dev_priv->dev)) | 279 | if (!HAS_GMBUS_IRQ(dev_priv->dev)) | |
280 | gmbus4_irq_en = 0; | 280 | gmbus4_irq_en = 0; | |
281 | #endif | 281 | #endif | |
282 | 282 | |||
283 | /* Important: The hw handles only the first bit, so set only one! Since | 283 | /* Important: The hw handles only the first bit, so set only one! Since | |
284 | * we also need to check for NAKs besides the hw ready/idle signal, we | 284 | * we also need to check for NAKs besides the hw ready/idle signal, we | |
285 | * need to wake up periodically and check that ourselves. */ | 285 | * need to wake up periodically and check that ourselves. */ | |
286 | I915_WRITE(GMBUS4, gmbus4_irq_en); | 286 | I915_WRITE(GMBUS4, gmbus4_irq_en); | |
287 | 287 | |||
288 | #ifdef __NetBSD__ | 288 | #ifdef __NetBSD__ | |
289 | if (cold) { | 289 | if (cold) { | |
290 | i = 50; | 290 | i = 50; | |
291 | do { | 291 | do { | |
292 | gmbus2 = I915_READ_NOTRACE(GMBUS2 + reg_offset); | 292 | gmbus2 = I915_READ_NOTRACE(GMBUS2); | |
293 | if (ISSET(gmbus2, (GMBUS_SATOER | gmbus2_status))) | 293 | if (ISSET(gmbus2, (GMBUS_SATOER | gmbus2_status))) | |
294 | break; | 294 | break; | |
295 | DELAY(1000); | 295 | DELAY(1000); | |
296 | } while (i-- > 0); | 296 | } while (i-- > 0); | |
297 | } else { | 297 | } else { | |
298 | i = mstohz(50); | 298 | i = mstohz(50); | |
299 | do { | 299 | do { | |
300 | int ret; | 300 | int ret; | |
301 | 301 | |||
302 | spin_lock(&dev_priv->gmbus_wait_lock); | 302 | spin_lock(&dev_priv->gmbus_wait_lock); | |
303 | DRM_SPIN_TIMED_WAIT_NOINTR_UNTIL(ret, | 303 | DRM_SPIN_TIMED_WAIT_NOINTR_UNTIL(ret, | |
304 | &dev_priv->gmbus_wait_queue, | 304 | &dev_priv->gmbus_wait_queue, | |
305 | &dev_priv->gmbus_wait_lock, | 305 | &dev_priv->gmbus_wait_lock, | |
306 | 1, | 306 | 1, | |
307 | (gmbus2 = I915_READ_NOTRACE(GMBUS2 + reg_offset), | 307 | (gmbus2 = I915_READ_NOTRACE(GMBUS2), | |
308 | ISSET(gmbus2, | 308 | ISSET(gmbus2, | |
309 | (GMBUS_SATOER | gmbus2_status)))); | 309 | (GMBUS_SATOER | gmbus2_status)))); | |
310 | spin_unlock(&dev_priv->gmbus_wait_lock); | 310 | spin_unlock(&dev_priv->gmbus_wait_lock); | |
311 | if (ret) | 311 | if (ret) | |
312 | break; | 312 | break; | |
313 | } while (i-- > 0); | 313 | } while (i-- > 0); | |
314 | } | 314 | } | |
315 | #else | 315 | #else | |
316 | for (i = 0; i < msecs_to_jiffies_timeout(50); i++) { | 316 | for (i = 0; i < msecs_to_jiffies_timeout(50); i++) { | |
317 | prepare_to_wait(&dev_priv->gmbus_wait_queue, &wait, | 317 | prepare_to_wait(&dev_priv->gmbus_wait_queue, &wait, | |
318 | TASK_UNINTERRUPTIBLE); | 318 | TASK_UNINTERRUPTIBLE); | |
319 | 319 | |||
320 | gmbus2 = I915_READ_NOTRACE(GMBUS2); | 320 | gmbus2 = I915_READ_NOTRACE(GMBUS2); | |
@@ -708,27 +708,31 @@ int intel_setup_gmbus(struct drm_device | @@ -708,27 +708,31 @@ int intel_setup_gmbus(struct drm_device | |||
708 | for (pin = 0; pin < ARRAY_SIZE(dev_priv->gmbus); pin++) { | 708 | for (pin = 0; pin < ARRAY_SIZE(dev_priv->gmbus); pin++) { | |
709 | if (!intel_gmbus_is_valid_pin(dev_priv, pin)) | 709 | if (!intel_gmbus_is_valid_pin(dev_priv, pin)) | |
710 | continue; | 710 | continue; | |
711 | 711 | |||
712 | bus = &dev_priv->gmbus[pin]; | 712 | bus = &dev_priv->gmbus[pin]; | |
713 | 713 | |||
714 | bus->adapter.owner = THIS_MODULE; | 714 | bus->adapter.owner = THIS_MODULE; | |
715 | bus->adapter.class = I2C_CLASS_DDC; | 715 | bus->adapter.class = I2C_CLASS_DDC; | |
716 | snprintf(bus->adapter.name, | 716 | snprintf(bus->adapter.name, | |
717 | sizeof(bus->adapter.name), | 717 | sizeof(bus->adapter.name), | |
718 | "i915 gmbus %s", | 718 | "i915 gmbus %s", | |
719 | get_gmbus_pin(dev_priv, pin)->name); | 719 | get_gmbus_pin(dev_priv, pin)->name); | |
720 | 720 | |||
721 | #ifdef __NetBSD__ | |||
721 | bus->adapter.dev.parent = dev->dev; | 722 | bus->adapter.dev.parent = dev->dev; | |
723 | #else | |||
724 | bus->adapter.dev.parent = &dev->pdev->dev; | |||
725 | #endif | |||
722 | bus->dev_priv = dev_priv; | 726 | bus->dev_priv = dev_priv; | |
723 | 727 | |||
724 | bus->adapter.algo = &gmbus_algorithm; | 728 | bus->adapter.algo = &gmbus_algorithm; | |
725 | 729 | |||
726 | /* By default use a conservative clock rate */ | 730 | /* By default use a conservative clock rate */ | |
727 | bus->reg0 = pin | GMBUS_RATE_100KHZ; | 731 | bus->reg0 = pin | GMBUS_RATE_100KHZ; | |
728 | 732 | |||
729 | /* gmbus seems to be broken on i830 */ | 733 | /* gmbus seems to be broken on i830 */ | |
730 | if (IS_I830(dev)) | 734 | if (IS_I830(dev)) | |
731 | bus->force_bit = 1; | 735 | bus->force_bit = 1; | |
732 | 736 | |||
733 | intel_gpio_setup(bus, pin); | 737 | intel_gpio_setup(bus, pin); | |
734 | 738 |
--- src/sys/external/bsd/drm2/i915drm/files.i915drmkms 2018/08/27 05:44:57 1.13
+++ src/sys/external/bsd/drm2/i915drm/files.i915drmkms 2018/08/27 06:16:37 1.14
@@ -1,34 +1,35 @@ | @@ -1,34 +1,35 @@ | |||
1 | # $NetBSD: files.i915drmkms,v 1.13 2018/08/27 05:44:57 riastradh Exp $ | 1 | # $NetBSD: files.i915drmkms,v 1.14 2018/08/27 06:16:37 riastradh Exp $ | |
2 | 2 | |||
3 | define intelfbbus { } | 3 | define intelfbbus { } | |
4 | device i915drmkms: drmkms, drmkms_pci, intelfbbus, agp_i810 | 4 | device i915drmkms: drmkms, drmkms_pci, intelfbbus, agp_i810 | |
5 | attach i915drmkms at pci | 5 | attach i915drmkms at pci | |
6 | 6 | |||
7 | device intelfb: intelfbbus, drmfb, drmfb_pci, wsemuldisplaydev | 7 | device intelfb: intelfbbus, drmfb, drmfb_pci, wsemuldisplaydev | |
8 | attach intelfb at intelfbbus | 8 | attach intelfb at intelfbbus | |
9 | 9 | |||
10 | makeoptions i915drmkms CPPFLAGS+="-I$S/external/bsd/drm2/dist/drm/i915" | 10 | makeoptions i915drmkms CPPFLAGS+="-I$S/external/bsd/drm2/dist/drm/i915" | |
11 | makeoptions i915drmkms CPPFLAGS+="-I$S/external/bsd/drm2/i915drm" | 11 | makeoptions i915drmkms CPPFLAGS+="-I$S/external/bsd/drm2/i915drm" | |
12 | 12 | |||
13 | makeoptions i915drmkms "CWARNFLAGS.i915_drv.c"+="${${ACTIVE_CC} == gcc:? -Wno-override-init :}" | 13 | makeoptions i915drmkms "CWARNFLAGS.i915_drv.c"+="${${ACTIVE_CC} == gcc:? -Wno-override-init :}" | |
14 | makeoptions i915drmkms "CWARNFLAGS.i915_drv.c"+="${${ACTIVE_CC} == clang:? -Wno-initializer-overrides :}" | 14 | makeoptions i915drmkms "CWARNFLAGS.i915_drv.c"+="${${ACTIVE_CC} == clang:? -Wno-initializer-overrides :}" | |
15 | makeoptions i915drmkms "CWARNFLAGS.intel_display.c"+="-Wno-shadow -Wno-conversion" | 15 | makeoptions i915drmkms "CWARNFLAGS.intel_display.c"+="-Wno-shadow -Wno-conversion" | |
16 | makeoptions i915drmkms "CWARNFLAGS.intel_panel.c"+="-Wno-shadow" | 16 | makeoptions i915drmkms "CWARNFLAGS.intel_panel.c"+="-Wno-shadow" | |
17 | makeoptions i915drmkms "CWARNFLAGS.intel_pm.c"+="-Wno-shadow" | 17 | makeoptions i915drmkms "CWARNFLAGS.intel_pm.c"+="-Wno-shadow" | |
18 | 18 | |||
19 | # XXX x86 kludge. | 19 | # XXX x86 kludge. | |
20 | makeoptions i915drmkms CPPFLAGS+="-DCONFIG_DRM_I915_FBDEV=1" | 20 | makeoptions i915drmkms CPPFLAGS+="-DCONFIG_DRM_I915_FBDEV=1" | |
21 | makeoptions i915drmkms CPPFLAGS+="-DCONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT=0" | 21 | makeoptions i915drmkms CPPFLAGS+="-DCONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT=0" | |
22 | makeoptions i915drmkms CPPFLAGS+="-DCONFIG_DRM_FBDEV_EMULATION=1" | |||
22 | 23 | |||
23 | file external/bsd/drm2/i915drm/i915_module.c i915drmkms | 24 | file external/bsd/drm2/i915drm/i915_module.c i915drmkms | |
24 | file external/bsd/drm2/i915drm/i915_pci.c i915drmkms | 25 | file external/bsd/drm2/i915drm/i915_pci.c i915drmkms | |
25 | file external/bsd/drm2/i915drm/intel_gtt.c i915drmkms | 26 | file external/bsd/drm2/i915drm/intel_gtt.c i915drmkms | |
26 | 27 | |||
27 | file external/bsd/drm2/i915drm/intelfb.c intelfb | 28 | file external/bsd/drm2/i915drm/intelfb.c intelfb | |
28 | 29 | |||
29 | file external/bsd/drm2/dist/drm/i915/dvo_ch7017.c i915drmkms | 30 | file external/bsd/drm2/dist/drm/i915/dvo_ch7017.c i915drmkms | |
30 | file external/bsd/drm2/dist/drm/i915/dvo_ch7xxx.c i915drmkms | 31 | file external/bsd/drm2/dist/drm/i915/dvo_ch7xxx.c i915drmkms | |
31 | file external/bsd/drm2/dist/drm/i915/dvo_ivch.c i915drmkms | 32 | file external/bsd/drm2/dist/drm/i915/dvo_ivch.c i915drmkms | |
32 | file external/bsd/drm2/dist/drm/i915/dvo_ns2501.c i915drmkms | 33 | file external/bsd/drm2/dist/drm/i915/dvo_ns2501.c i915drmkms | |
33 | file external/bsd/drm2/dist/drm/i915/dvo_sil164.c i915drmkms | 34 | file external/bsd/drm2/dist/drm/i915/dvo_sil164.c i915drmkms | |
34 | file external/bsd/drm2/dist/drm/i915/dvo_tfp410.c i915drmkms | 35 | file external/bsd/drm2/dist/drm/i915/dvo_tfp410.c i915drmkms |