drm: Use a dedicated .h file for configuration options
authorFrançois Tigeot <ftigeot@wolfpond.org>
Fri, 7 Sep 2018 05:59:43 +0000 (07:59 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Fri, 7 Sep 2018 06:01:39 +0000 (08:01 +0200)
With-advice-from: swildner

sys/conf/files
sys/dev/drm/drm/Makefile
sys/dev/drm/i915/Makefile
sys/dev/drm/i915/i915_drv.h
sys/dev/drm/include/drm/drmP.h
sys/dev/drm/include/drm/drm_fb_helper.h
sys/dev/drm/kconfig.h [new file with mode: 0644]
sys/dev/drm/radeon/Makefile
sys/dev/drm/radeon/atombios_encoders.c
sys/dev/drm/radeon/radeon.h
sys/dev/drm/radeon/radeon_legacy_encoders.c

index 4a9caf7..20e8c9c 100644 (file)
@@ -2237,249 +2237,249 @@ opencrypto/skipjack.c                 optional crypto
 opencrypto/xform.c                     optional crypto
 dev/crypto/hifn/hifn7751.c             optional hifn
 dev/crypto/ubsec/ubsec.c               optional ubsec
-dev/drm/ati_pcigart.c                  optional drm
-dev/drm/drm_agpsupport.c               optional drm
-dev/drm/drm_atomic.c                   optional drm
-dev/drm/drm_bridge.c                   optional drm
-dev/drm/drm_atomic_helper.c            optional drm
-dev/drm/drm_auth.c                     optional drm
-dev/drm/drm_bufs.c                     optional drm
-dev/drm/drm_cache.c                    optional drm
-dev/drm/drm_context.c                  optional drm
-dev/drm/drm_crtc.c                     optional drm
-dev/drm/drm_crtc_helper.c              optional drm
-dev/drm/drm_dma.c                      optional drm
-dev/drm/drm_dp_aux_dev.c               optional drm
-dev/drm/drm_dp_dual_mode_helper.c      optional drm
-dev/drm/drm_dp_helper.c                        optional drm
+dev/drm/ati_pcigart.c                  optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_agpsupport.c               optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_atomic.c                   optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_bridge.c                   optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_atomic_helper.c            optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_auth.c                     optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_bufs.c                     optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_cache.c                    optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_context.c                  optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_crtc.c                     optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_crtc_helper.c              optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_dma.c                      optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_dp_aux_dev.c               optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_dp_dual_mode_helper.c      optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_dp_helper.c                        optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
 dev/drm/drm_dp_iic_helper.c            optional drm
-dev/drm/drm_dp_mst_topology.c          optional drm
+dev/drm/drm_dp_mst_topology.c          optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
 dev/drm/drm_dragonfly.c                        optional drm
-dev/drm/drm_drv.c                      optional drm
-dev/drm/drm_edid.c                     optional drm
-dev/drm/drm_edid_load.c                        optional drm
-dev/drm/drm_encoder_slave.c            optional drm
-dev/drm/drm_fb_helper.c                        optional drm
-dev/drm/drm_fops.c                     optional drm
-dev/drm/drm_gem.c                      optional drm
-dev/drm/drm_global.c                   optional drm
-dev/drm/drm_hashtab.c                  optional drm
-dev/drm/drm_ioctl.c                    optional drm
-dev/drm/drm_irq.c                      optional drm
-dev/drm/drm_lock.c                     optional drm
-dev/drm/drm_memory.c                   optional drm
-dev/drm/drm_mipi_dsi.c                 optional drm
-dev/drm/drm_mm.c                       optional drm
-dev/drm/drm_modes.c                    optional drm
-dev/drm/drm_modeset_lock.c             optional drm
-dev/drm/drm_panel.c                    optional drm
-dev/drm/drm_pci.c                      optional drm
-dev/drm/drm_plane_helper.c             optional drm
-dev/drm/drm_probe_helper.c             optional drm
-dev/drm/drm_rect.c                     optional drm
-dev/drm/drm_scatter.c                  optional drm
+dev/drm/drm_drv.c                      optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_edid.c                     optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_edid_load.c                        optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_encoder_slave.c            optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_fb_helper.c                        optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_fops.c                     optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_gem.c                      optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_global.c                   optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_hashtab.c                  optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_ioctl.c                    optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_irq.c                      optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_lock.c                     optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_memory.c                   optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_mipi_dsi.c                 optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_mm.c                       optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_modes.c                    optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_modeset_lock.c             optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_panel.c                    optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_pci.c                      optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_plane_helper.c             optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_probe_helper.c             optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_rect.c                     optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_scatter.c                  optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
 dev/drm/drm_sysctl.c                   optional drm
-dev/drm/drm_sysfs.c                    optional drm
-dev/drm/drm_vm.c                       optional drm
-dev/drm/drm_vma_manager.c              optional drm
-dev/drm/linux_async.c                  optional drm
-dev/drm/linux_compat.c                 optional drm
-dev/drm/linux_dma.c                    optional drm
-dev/drm/linux_hdmi.c                   optional drm
-dev/drm/linux_hrtimer.c                        optional drm
-dev/drm/linux_i2c.c                    optional drm
-dev/drm/linux_iomapping.c              optional drm
-dev/drm/linux_irq.c                    optional drm
-dev/drm/linux_list_sort.c              optional drm
-dev/drm/linux_scatterlist.c            optional drm
-dev/drm/linux_shmem.c                  optional drm
-dev/drm/linux_sort.c                   optional drm
-dev/drm/linux_vmalloc.c                        optional drm
-dev/drm/linux_workqueue.c              optional drm
-dev/drm/ttm/ttm_lock.c                 optional drm
-dev/drm/ttm/ttm_object.c               optional drm
-dev/drm/ttm/ttm_tt.c                   optional drm
-dev/drm/ttm/ttm_bo_util.c              optional drm
-dev/drm/ttm/ttm_bo.c                   optional drm
-dev/drm/ttm/ttm_bo_manager.c           optional drm
-dev/drm/ttm/ttm_execbuf_util.c         optional drm
-dev/drm/ttm/ttm_memory.c               optional drm
-dev/drm/ttm/ttm_page_alloc.c           optional drm
-dev/drm/ttm/ttm_bo_vm.c                        optional drm
-dev/drm/i915/dvo_ch7017.c              optional i915 drm
-dev/drm/i915/dvo_ch7xxx.c              optional i915 drm
-dev/drm/i915/dvo_ivch.c                        optional i915 drm
-dev/drm/i915/dvo_ns2501.c              optional i915 drm
-dev/drm/i915/dvo_sil164.c              optional i915 drm
-dev/drm/i915/dvo_tfp410.c              optional i915 drm
-dev/drm/i915/i915_cmd_parser.c         optional i915 drm
-dev/drm/i915/i915_dma.c                        optional i915 drm
-dev/drm/i915/i915_drv.c                        optional i915 drm
-dev/drm/i915/i915_gem.c                        optional i915 drm
-dev/drm/i915/i915_gem_batch_pool.c     optional i915 drm
-dev/drm/i915/i915_gem_context.c                optional i915 drm
-dev/drm/i915/i915_gem_execbuffer.c     optional i915 drm
-dev/drm/i915/i915_gem_fence.c          optional i915 drm
-dev/drm/i915/i915_gem_evict.c          optional i915 drm
-dev/drm/i915/i915_gem_gtt.c            optional i915 drm
-dev/drm/i915/i915_gem_stolen.c         optional i915 drm
-dev/drm/i915/i915_gem_render_state.c   optional i915 drm
-dev/drm/i915/i915_gem_shrinker.c       optional i915 drm
-dev/drm/i915/i915_gem_tiling.c         optional i915 drm
-dev/drm/i915/i915_gem_userptr.c                optional i915 drm
-dev/drm/i915/i915_gpu_error.c          optional i915 drm
-dev/drm/i915/i915_guc_submission.c     optional i915 drm
-dev/drm/i915/i915_irq.c                        optional i915 drm
-dev/drm/i915/i915_params.c             optional i915 drm
-dev/drm/i915/i915_suspend.c            optional i915 drm
-dev/drm/i915/i915_sysfs.c              optional i915 drm
-dev/drm/i915/i915_vgpu.c               optional i915 drm
-dev/drm/i915/intel_acpi.c              optional i915 drm
-dev/drm/i915/intel_atomic.c            optional i915 drm
-dev/drm/i915/intel_atomic_plane.c      optional i915 drm
-dev/drm/i915/intel_audio.c             optional i915 drm
-dev/drm/i915/intel_bios.c              optional i915 drm
-dev/drm/i915/intel_color.c             optional i915 drm
-dev/drm/i915/intel_crt.c               optional i915 drm
-dev/drm/i915/intel_csr.c               optional i915 drm
-dev/drm/i915/intel_ddi.c               optional i915 drm
-dev/drm/i915/intel_display.c           optional i915 drm
-dev/drm/i915/intel_dpll_mgr.c          optional i915 drm
-dev/drm/i915/intel_dp.c                        optional i915 drm
-dev/drm/i915/intel_dp_link_training.c  optional i915 drm
-dev/drm/i915/intel_dp_mst.c            optional i915 drm
-dev/drm/i915/intel_dsi.c               optional i915 drm
-dev/drm/i915/intel_dsi_panel_vbt.c     optional i915 drm
-dev/drm/i915/intel_dsi_pll.c           optional i915 drm
-dev/drm/i915/intel_dvo.c               optional i915 drm
-dev/drm/i915/intel_fbdev.c             optional i915 drm
-dev/drm/i915/intel_fbc.c               optional i915 drm
-dev/drm/i915/intel_fifo_underrun.c     optional i915 drm
-dev/drm/i915/intel_frontbuffer.c       optional i915 drm
-dev/drm/i915/intel_guc_loader.c                optional i915 drm
-dev/drm/i915/intel_hdmi.c              optional i915 drm
-dev/drm/i915/intel_hotplug.c           optional i915 drm
-dev/drm/i915/intel_i2c.c               optional i915 drm
-dev/drm/i915/intel_lrc.c               optional i915 drm
-dev/drm/i915/intel_mocs.c              optional i915 drm
-dev/drm/i915/intel_lvds.c              optional i915 drm
-dev/drm/i915/intel_modes.c             optional i915 drm
-dev/drm/i915/intel_opregion.c          optional i915 drm
-dev/drm/i915/intel_overlay.c           optional i915 drm
-dev/drm/i915/intel_panel.c             optional i915 drm
-dev/drm/i915/intel_pm.c                        optional i915 drm
-dev/drm/i915/intel_psr.c               optional i915 drm
-dev/drm/i915/intel_renderstate_gen6.c  optional i915 drm
-dev/drm/i915/intel_renderstate_gen7.c  optional i915 drm
-dev/drm/i915/intel_renderstate_gen8.c  optional i915 drm
-dev/drm/i915/intel_renderstate_gen9.c  optional i915 drm
-dev/drm/i915/intel_ringbuffer.c                optional i915 drm
-dev/drm/i915/intel_runtime_pm.c                optional i915 drm
-dev/drm/i915/intel_sdvo.c              optional i915 drm
-dev/drm/i915/intel_sideband.c          optional i915 drm
-dev/drm/i915/intel_sprite.c            optional i915 drm
-dev/drm/i915/intel_tv.c                        optional i915 drm
-dev/drm/i915/intel_uncore.c            optional i915 drm
-dev/drm/radeon/atom.c                  optional radeon drm
-dev/drm/radeon/atombios_crtc.c         optional radeon drm
-dev/drm/radeon/atombios_dp.c           optional radeon drm
-dev/drm/radeon/atombios_encoders.c     optional radeon drm
-dev/drm/radeon/atombios_i2c.c          optional radeon drm
-dev/drm/radeon/btc_dpm.c               optional radeon drm
-dev/drm/radeon/cayman_blit_shaders.c   optional radeon drm
-dev/drm/radeon/ci_dpm.c                        optional radeon drm
-dev/drm/radeon/ci_smc.c                        optional radeon drm
-dev/drm/radeon/cik.c                   optional radeon drm
-dev/drm/radeon/cik_blit_shaders.c      optional radeon drm
-dev/drm/radeon/cik_sdma.c              optional radeon drm
-dev/drm/radeon/cypress_dpm.c           optional radeon drm
-dev/drm/radeon/dce3_1_afmt.c           optional radeon drm
-dev/drm/radeon/dce6_afmt.c             optional radeon drm
-dev/drm/radeon/evergreen.c             optional radeon drm
-dev/drm/radeon/evergreen_blit_shaders.c        optional radeon drm
-dev/drm/radeon/evergreen_cs.c          optional radeon drm
-dev/drm/radeon/evergreen_dma.c         optional radeon drm
-dev/drm/radeon/evergreen_hdmi.c                optional radeon drm
-dev/drm/radeon/kv_dpm.c                        optional radeon drm
-dev/drm/radeon/kv_smc.c                        optional radeon drm
-dev/drm/radeon/ni.c                    optional radeon drm
-dev/drm/radeon/ni_dma.c                        optional radeon drm
-dev/drm/radeon/ni_dpm.c                        optional radeon drm
-dev/drm/radeon/r100.c                  optional radeon drm
-dev/drm/radeon/r200.c                  optional radeon drm
-dev/drm/radeon/r300.c                  optional radeon drm
-dev/drm/radeon/r420.c                  optional radeon drm
-dev/drm/radeon/r520.c                  optional radeon drm
-dev/drm/radeon/r600.c                  optional radeon drm
-dev/drm/radeon/r600_blit_shaders.c     optional radeon drm
-dev/drm/radeon/r600_cs.c               optional radeon drm
-dev/drm/radeon/r600_dma.c              optional radeon drm
-dev/drm/radeon/r600_dpm.c              optional radeon drm
-dev/drm/radeon/r600_hdmi.c             optional radeon drm
-dev/drm/radeon/radeon_acpi.c           optional radeon drm
-dev/drm/radeon/radeon_agp.c            optional radeon drm
-dev/drm/radeon/radeon_asic.c           optional radeon drm
-dev/drm/radeon/radeon_atombios.c       optional radeon drm
-dev/drm/radeon/radeon_benchmark.c      optional radeon drm
-dev/drm/radeon/radeon_bios.c           optional radeon drm
-dev/drm/radeon/radeon_clocks.c         optional radeon drm
-dev/drm/radeon/radeon_combios.c                optional radeon drm
-dev/drm/radeon/radeon_connectors.c     optional radeon drm
-dev/drm/radeon/radeon_cs.c             optional radeon drm
-dev/drm/radeon/radeon_cursor.c         optional radeon drm
-dev/drm/radeon/radeon_device.c         optional radeon drm
-dev/drm/radeon/radeon_display.c                optional radeon drm
-dev/drm/radeon/radeon_drv.c            optional radeon drm
-dev/drm/radeon/radeon_encoders.c       optional radeon drm
-dev/drm/radeon/radeon_fb.c             optional radeon drm
-dev/drm/radeon/radeon_fence.c          optional radeon drm
-dev/drm/radeon/radeon_gart.c           optional radeon drm
-dev/drm/radeon/radeon_gem.c            optional radeon drm
-dev/drm/radeon/radeon_i2c.c            optional radeon drm
-dev/drm/radeon/radeon_ib.c             optional radeon drm
-dev/drm/radeon/radeon_irq_kms.c                optional radeon drm
-dev/drm/radeon/radeon_kms.c            optional radeon drm
-dev/drm/radeon/radeon_legacy_crtc.c    optional radeon drm
-dev/drm/radeon/radeon_legacy_encoders.c        optional radeon drm
-dev/drm/radeon/radeon_legacy_tv.c      optional radeon drm
-dev/drm/radeon/radeon_object.c         optional radeon drm
-dev/drm/radeon/radeon_pm.c             optional radeon drm
-dev/drm/radeon/radeon_ring.c           optional radeon drm
-dev/drm/radeon/radeon_sa.c             optional radeon drm
-dev/drm/radeon/radeon_semaphore.c      optional radeon drm
-dev/drm/radeon/radeon_test.c           optional radeon drm
-dev/drm/radeon/radeon_ttm.c            optional radeon drm
-dev/drm/radeon/radeon_ucode.c          optional radeon drm
-dev/drm/radeon/radeon_uvd.c            optional radeon drm
-dev/drm/radeon/radeon_vce.c            optional radeon drm
-dev/drm/radeon/radeon_vm.c             optional radeon drm
-dev/drm/radeon/rs400.c                 optional radeon drm
-dev/drm/radeon/rs600.c                 optional radeon drm
-dev/drm/radeon/rs690.c                 optional radeon drm
-dev/drm/radeon/rs780_dpm.c             optional radeon drm
-dev/drm/radeon/rv515.c                 optional radeon drm
-dev/drm/radeon/rv6xx_dpm.c             optional radeon drm
-dev/drm/radeon/rv730_dpm.c             optional radeon drm
-dev/drm/radeon/rv740_dpm.c             optional radeon drm
-dev/drm/radeon/rv770.c                 optional radeon drm
-dev/drm/radeon/rv770_dma.c             optional radeon drm
-dev/drm/radeon/rv770_dpm.c             optional radeon drm
-dev/drm/radeon/rv770_smc.c             optional radeon drm
-dev/drm/radeon/si.c                    optional radeon drm
-dev/drm/radeon/si_blit_shaders.c       optional radeon drm
-dev/drm/radeon/si_dma.c                        optional radeon drm
-dev/drm/radeon/si_dpm.c                        optional radeon drm
-dev/drm/radeon/si_smc.c                        optional radeon drm
-dev/drm/radeon/sumo_dpm.c              optional radeon drm
-dev/drm/radeon/sumo_smc.c              optional radeon drm
-dev/drm/radeon/trinity_dpm.c           optional radeon drm
-dev/drm/radeon/trinity_smc.c           optional radeon drm
-dev/drm/radeon/uvd_v1_0.c              optional radeon drm
-dev/drm/radeon/uvd_v2_2.c              optional radeon drm
-dev/drm/radeon/uvd_v3_1.c              optional radeon drm
-dev/drm/radeon/uvd_v4_2.c              optional radeon drm
-dev/drm/radeon/vce_v1_0.c              optional radeon drm
-dev/drm/radeon/vce_v2_0.c              optional radeon drm
+dev/drm/drm_sysfs.c                    optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_vm.c                       optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/drm_vma_manager.c              optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/linux_async.c                  optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/linux_compat.c                 optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/linux_dma.c                    optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/linux_hdmi.c                   optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/linux_hrtimer.c                        optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/linux_i2c.c                    optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/linux_iomapping.c              optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/linux_irq.c                    optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/linux_list_sort.c              optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/linux_scatterlist.c            optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/linux_shmem.c                  optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/linux_sort.c                   optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/linux_vmalloc.c                        optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/linux_workqueue.c              optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/ttm/ttm_lock.c                 optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/ttm/ttm_object.c               optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/ttm/ttm_tt.c                   optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/ttm/ttm_bo_util.c              optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/ttm/ttm_bo.c                   optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/ttm/ttm_bo_manager.c           optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/ttm/ttm_execbuf_util.c         optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/ttm/ttm_memory.c               optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/ttm/ttm_page_alloc.c           optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/ttm/ttm_bo_vm.c                        optional drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/dvo_ch7017.c              optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/dvo_ch7xxx.c              optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/dvo_ivch.c                        optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/dvo_ns2501.c              optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/dvo_sil164.c              optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/dvo_tfp410.c              optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_cmd_parser.c         optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_dma.c                        optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_drv.c                        optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_gem.c                        optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_gem_batch_pool.c     optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_gem_context.c                optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_gem_execbuffer.c     optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_gem_fence.c          optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_gem_evict.c          optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_gem_gtt.c            optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_gem_stolen.c         optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_gem_render_state.c   optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_gem_shrinker.c       optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_gem_tiling.c         optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_gem_userptr.c                optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_gpu_error.c          optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_guc_submission.c     optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_irq.c                        optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_params.c             optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_suspend.c            optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_sysfs.c              optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/i915_vgpu.c               optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_acpi.c              optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_atomic.c            optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_atomic_plane.c      optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_audio.c             optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_bios.c              optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_color.c             optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_crt.c               optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_csr.c               optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_ddi.c               optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_display.c           optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_dpll_mgr.c          optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_dp.c                        optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_dp_link_training.c  optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_dp_mst.c            optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_dsi.c               optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_dsi_panel_vbt.c     optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_dsi_pll.c           optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_dvo.c               optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_fbdev.c             optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_fbc.c               optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_fifo_underrun.c     optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_frontbuffer.c       optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_guc_loader.c                optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_hdmi.c              optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_hotplug.c           optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_i2c.c               optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_lrc.c               optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_mocs.c              optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_lvds.c              optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_modes.c             optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_opregion.c          optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_overlay.c           optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_panel.c             optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_pm.c                        optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_psr.c               optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_renderstate_gen6.c  optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_renderstate_gen7.c  optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_renderstate_gen8.c  optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_renderstate_gen9.c  optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_ringbuffer.c                optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_runtime_pm.c                optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_sdvo.c              optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_sideband.c          optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_sprite.c            optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_tv.c                        optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/i915/intel_uncore.c            optional i915 drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/atom.c                  optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/atombios_crtc.c         optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/atombios_dp.c           optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/atombios_encoders.c     optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/atombios_i2c.c          optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/btc_dpm.c               optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/cayman_blit_shaders.c   optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/ci_dpm.c                        optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/ci_smc.c                        optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/cik.c                   optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/cik_blit_shaders.c      optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/cik_sdma.c              optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/cypress_dpm.c           optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/dce3_1_afmt.c           optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/dce6_afmt.c             optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/evergreen.c             optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/evergreen_blit_shaders.c        optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/evergreen_cs.c          optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/evergreen_dma.c         optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/evergreen_hdmi.c                optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/kv_dpm.c                        optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/kv_smc.c                        optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/ni.c                    optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/ni_dma.c                        optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/ni_dpm.c                        optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/r100.c                  optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/r200.c                  optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/r300.c                  optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/r420.c                  optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/r520.c                  optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/r600.c                  optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/r600_blit_shaders.c     optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/r600_cs.c               optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/r600_dma.c              optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/r600_dpm.c              optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/r600_hdmi.c             optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_acpi.c           optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_agp.c            optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_asic.c           optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_atombios.c       optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_benchmark.c      optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_bios.c           optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_clocks.c         optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_combios.c                optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_connectors.c     optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_cs.c             optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_cursor.c         optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_device.c         optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_display.c                optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_drv.c            optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_encoders.c       optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_fb.c             optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_fence.c          optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_gart.c           optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_gem.c            optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_i2c.c            optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_ib.c             optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_irq_kms.c                optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_kms.c            optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_legacy_crtc.c    optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_legacy_encoders.c        optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_legacy_tv.c      optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_object.c         optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_pm.c             optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_ring.c           optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_sa.c             optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_semaphore.c      optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_test.c           optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_ttm.c            optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_ucode.c          optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_uvd.c            optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_vce.c            optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/radeon_vm.c             optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/rs400.c                 optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/rs600.c                 optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/rs690.c                 optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/rs780_dpm.c             optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/rv515.c                 optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/rv6xx_dpm.c             optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/rv730_dpm.c             optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/rv740_dpm.c             optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/rv770.c                 optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/rv770_dma.c             optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/rv770_dpm.c             optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/rv770_smc.c             optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/si.c                    optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/si_blit_shaders.c       optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/si_dma.c                        optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/si_dpm.c                        optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/si_smc.c                        optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/sumo_dpm.c              optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/sumo_smc.c              optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/trinity_dpm.c           optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/trinity_smc.c           optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/uvd_v1_0.c              optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/uvd_v2_2.c              optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/uvd_v3_1.c              optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/uvd_v4_2.c              optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/vce_v1_0.c              optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
+dev/drm/radeon/vce_v2_0.c              optional radeon drm compile-with "${NORMAL_C} -include $S/dev/drm/kconfig.h"
 dev/misc/nsclpcsio/nsclpcsio_isa.c     optional nsclpcsio isa
 dev/powermng/aps/aps.c                 optional aps isa
 dev/powermng/it/it.c                   optional it isa
index 4e4ad15..b25df3d 100644 (file)
@@ -74,6 +74,6 @@ SRCS  = \
 SRCS   += device_if.h bus_if.h pci_if.h device_if.h iicbus_if.h opt_drm.h \
          opt_ktr.h opt_vm.h
 
-KCFLAGS+= -I${SYSDIR}/dev/drm/include
+KCFLAGS+= -I${SYSDIR}/dev/drm/include -include ${SYSDIR}/dev/drm/kconfig.h
 
 .include <bsd.kmod.mk>
index 468d0e7..6a345c8 100644 (file)
@@ -97,6 +97,6 @@ SRCS   += acpi_if.h device_if.h bus_if.h pci_if.h \
 
 KCFLAGS+= -I${SYSDIR}/dev/drm/include
 KCFLAGS+= -I${SYSDIR}/contrib/dev/acpica/source/include
-KCFLAGS+= -DCONFIG_BACKLIGHT_CLASS_DEVICE
+KCFLAGS+= -include ${SYSDIR}/dev/drm/kconfig.h
 
 .include <bsd.kmod.mk>
index 2848ba5..576a3f1 100644 (file)
 #include "i915_gem_gtt.h"
 #include "i915_gem_render_state.h"
 
-#define CONFIG_DRM_FBDEV_EMULATION             1
-#define CONFIG_DRM_I915_KMS                    1
-#define CONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT 1
-#define CONFIG_ACPI                            1
-#define CONFIG_X86                             1
-
 /* General customization:
  */
 
index 1a64fd7..45137fb 100644 (file)
@@ -34,8 +34,6 @@
 
 #if defined(_KERNEL) || defined(__KERNEL__)
 
-#define        CONFIG_PCI      1
-
 #include <sys/param.h>
 #include <sys/queue.h>
 #include <sys/malloc.h>
index 42aa66a..1d605f0 100644 (file)
@@ -224,7 +224,6 @@ struct drm_fb_helper {
        bool atomic;
 };
 
-#define CONFIG_DRM_FBDEV_EMULATION 1
 #ifdef CONFIG_DRM_FBDEV_EMULATION
 int drm_fb_helper_modinit(void);
 void drm_fb_helper_prepare(struct drm_device *dev, struct drm_fb_helper *helper,
diff --git a/sys/dev/drm/kconfig.h b/sys/dev/drm/kconfig.h
new file mode 100644 (file)
index 0000000..3a9f53f
--- /dev/null
@@ -0,0 +1,13 @@
+/*
+ * Linux kernel options configuration file
+ */
+
+#define CONFIG_X86     1
+#define CONFIG_PCI     1
+#define CONFIG_ACPI    1
+
+#define CONFIG_BACKLIGHT_CLASS_DEVICE  1
+
+#define CONFIG_DRM_FBDEV_EMULATION             1
+#define CONFIG_DRM_I915_KMS                    1
+#define CONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT 1
index 592368a..cb9f580 100644 (file)
@@ -145,5 +145,6 @@ SRCS        +=                                                              \
 
 KCFLAGS+= -I${SYSDIR}/dev/drm/include
 KCFLAGS+= -I${SYSDIR}/contrib/dev/acpica/source/include
+KCFLAGS+= -include ${SYSDIR}/dev/drm/kconfig.h
 
 .include <bsd.kmod.mk>
index ce2cae3..3f29a8f 100644 (file)
@@ -132,6 +132,7 @@ atombios_set_backlight_level(struct radeon_encoder *radeon_encoder, u8 level)
 
 #if defined(CONFIG_BACKLIGHT_CLASS_DEVICE) || defined(CONFIG_BACKLIGHT_CLASS_DEVICE_MODULE)
 
+#if 0
 static u8 radeon_atom_bl_level(struct backlight_device *bd)
 {
        u8 level;
@@ -171,110 +172,7 @@ static const struct backlight_ops radeon_atom_backlight_ops = {
        .get_brightness = radeon_atom_backlight_get_brightness,
        .update_status  = radeon_atom_backlight_update_status,
 };
-
-void radeon_atom_backlight_init(struct radeon_encoder *radeon_encoder,
-                               struct drm_connector *drm_connector)
-{
-       struct drm_device *dev = radeon_encoder->base.dev;
-       struct radeon_device *rdev = dev->dev_private;
-       struct backlight_device *bd;
-       struct backlight_properties props;
-       struct radeon_backlight_privdata *pdata;
-       struct radeon_encoder_atom_dig *dig;
-       char bl_name[16];
-
-       /* Mac laptops with multiple GPUs use the gmux driver for backlight
-        * so don't register a backlight device
-        */
-       if ((rdev->pdev->subsystem_vendor == PCI_VENDOR_ID_APPLE) &&
-           (rdev->pdev->device == 0x6741))
-               return;
-
-       if (!radeon_encoder->enc_priv)
-               return;
-
-       if (!rdev->is_atom_bios)
-               return;
-
-       if (!(rdev->mode_info.firmware_flags & ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU))
-               return;
-
-       pdata = kmalloc(sizeof(struct radeon_backlight_privdata),
-                       M_DRM, M_WAITOK);
-       if (!pdata) {
-               DRM_ERROR("Memory allocation failed\n");
-               goto error;
-       }
-
-       memset(&props, 0, sizeof(props));
-       props.max_brightness = RADEON_MAX_BL_LEVEL;
-       props.type = BACKLIGHT_RAW;
-       snprintf(bl_name, sizeof(bl_name),
-                "radeon_bl%d", dev->primary->index);
-       bd = backlight_device_register(bl_name, drm_connector->kdev,
-                                      pdata, &radeon_atom_backlight_ops, &props);
-       if (IS_ERR(bd)) {
-               DRM_ERROR("Backlight registration failed\n");
-               goto error;
-       }
-
-       pdata->encoder = radeon_encoder;
-
-       dig = radeon_encoder->enc_priv;
-       dig->bl_dev = bd;
-
-       bd->props.brightness = radeon_atom_backlight_get_brightness(bd);
-       /* Set a reasonable default here if the level is 0 otherwise
-        * fbdev will attempt to turn the backlight on after console
-        * unblanking and it will try and restore 0 which turns the backlight
-        * off again.
-        */
-       if (bd->props.brightness == 0)
-               bd->props.brightness = RADEON_MAX_BL_LEVEL;
-       bd->props.power = FB_BLANK_UNBLANK;
-       backlight_update_status(bd);
-
-       DRM_INFO("radeon atom DIG backlight initialized\n");
-
-       return;
-
-error:
-       kfree(pdata);
-       return;
-}
-
-static void radeon_atom_backlight_exit(struct radeon_encoder *radeon_encoder)
-{
-       struct drm_device *dev = radeon_encoder->base.dev;
-       struct radeon_device *rdev = dev->dev_private;
-       struct backlight_device *bd = NULL;
-       struct radeon_encoder_atom_dig *dig;
-
-       if (!radeon_encoder->enc_priv)
-               return;
-
-       if (!rdev->is_atom_bios)
-               return;
-
-       if (!(rdev->mode_info.firmware_flags & ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU))
-               return;
-
-       dig = radeon_encoder->enc_priv;
-       bd = dig->bl_dev;
-       dig->bl_dev = NULL;
-
-       if (bd) {
-               struct radeon_legacy_backlight_privdata *pdata;
-
-               pdata = bl_get_data(bd);
-               backlight_device_unregister(bd);
-               kfree(pdata);
-
-               DRM_INFO("radeon atom LVDS backlight unloaded\n");
-       }
-}
-
-#else /* !CONFIG_BACKLIGHT_CLASS_DEVICE */
+#endif
 
 /*
  * Read max backlight level
@@ -351,6 +249,46 @@ void radeon_atom_backlight_init(struct radeon_encoder *radeon_encoder,
        return;
 }
 
+static void radeon_atom_backlight_exit(struct radeon_encoder *radeon_encoder)
+{
+#if 0
+       struct drm_device *dev = radeon_encoder->base.dev;
+       struct radeon_device *rdev = dev->dev_private;
+       struct backlight_device *bd = NULL;
+       struct radeon_encoder_atom_dig *dig;
+
+       if (!radeon_encoder->enc_priv)
+               return;
+
+       if (!rdev->is_atom_bios)
+               return;
+
+       if (!(rdev->mode_info.firmware_flags & ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU))
+               return;
+
+       dig = radeon_encoder->enc_priv;
+       bd = dig->bl_dev;
+       dig->bl_dev = NULL;
+
+       if (bd) {
+               struct radeon_legacy_backlight_privdata *pdata;
+
+               pdata = bl_get_data(bd);
+               backlight_device_unregister(bd);
+               kfree(pdata);
+
+               DRM_INFO("radeon atom LVDS backlight unloaded\n");
+       }
+#endif
+}
+
+#else /* !CONFIG_BACKLIGHT_CLASS_DEVICE */
+
+void radeon_atom_backlight_init(struct radeon_encoder *radeon_encoder,
+                               struct drm_connector *drm_connector)
+{
+}
+
 static void radeon_atom_backlight_exit(struct radeon_encoder *encoder)
 {
 }
index 0ab14ec..d14dcf3 100644 (file)
@@ -85,7 +85,6 @@
 #include <drm/ttm/ttm_execbuf_util.h>
 
 #include <drm/drm_gem.h>
-#define CONFIG_ACPI 1
 #define __OS_HAS_AGP 0
 
 #include "radeon_family.h"
index 45bade6..f9428bd 100644 (file)
@@ -310,6 +310,7 @@ radeon_legacy_set_backlight_level(struct radeon_encoder *radeon_encoder, u8 leve
 
 #if defined(CONFIG_BACKLIGHT_CLASS_DEVICE) || defined(CONFIG_BACKLIGHT_CLASS_DEVICE_MODULE)
 
+#if 0
 static uint8_t radeon_legacy_lvds_level(struct backlight_device *bd)
 {
        struct radeon_backlight_privdata *pdata = bl_get_data(bd);
@@ -358,10 +359,12 @@ static const struct backlight_ops radeon_backlight_ops = {
        .get_brightness = radeon_legacy_backlight_get_brightness,
        .update_status  = radeon_legacy_backlight_update_status,
 };
+#endif
 
 void radeon_legacy_backlight_init(struct radeon_encoder *radeon_encoder,
                                  struct drm_connector *drm_connector)
 {
+#if 0
        struct drm_device *dev = radeon_encoder->base.dev;
        struct radeon_device *rdev = dev->dev_private;
        struct backlight_device *bd;
@@ -446,10 +449,12 @@ void radeon_legacy_backlight_init(struct radeon_encoder *radeon_encoder,
 error:
        kfree(pdata);
        return;
+#endif
 }
 
 static void radeon_legacy_backlight_exit(struct radeon_encoder *radeon_encoder)
 {
+#if 0
        struct drm_device *dev = radeon_encoder->base.dev;
        struct radeon_device *rdev = dev->dev_private;
        struct backlight_device *bd = NULL;
@@ -476,6 +481,7 @@ static void radeon_legacy_backlight_exit(struct radeon_encoder *radeon_encoder)
 
                DRM_INFO("radeon legacy LVDS backlight unloaded\n");
        }
+#endif
 }
 
 #else /* !CONFIG_BACKLIGHT_CLASS_DEVICE */