# $NetBSD: files.i915drmkms,v 1.90 2023/06/03 21:31:46 lukem Exp $
version 20180827
define intelfbbus { }
device i915drmkms: acpivga, drmkms, drmkms_pci, intelfbbus, agp_i810, firmload
attach i915drmkms at pci
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="${CPPFLAGS.drmkms}"
device intelfb: intelfbbus, drmfb, drmfb_pci, wsemuldisplaydev
attach intelfb at intelfbbus
# This code comes from the Linux kernel, which assumes signed
# overflow is OK.
makeoptions i915drmkms "COPTS.i915drmkms"+="-fwrapv"
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-I$S/external/bsd/drm2/i915drm"
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-I$S/external/bsd/drm2/dist/drm/i915"
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_FBDEV_EMULATION=1"
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_DEBUG=1" # XXX
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_DEBUG_GEM=1" # XXX
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_DEBUG_RUNTIME_PM=0"
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_PREEMPT_TIMEOUT=640"
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_TIMESLICE_DURATION=1"
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_ALPHA_SUPPORT=0"
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_FBDEV=1"
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_GVT=0"
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT=0"
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_DEBUG_MMIO=1" # XXX
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_FORCE_PROBE=0"
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_SPIN_REQUEST=0"
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_SW_FENCE_CHECK_DAG=1" # XXX expensive debug option?
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_HEARTBEAT_INTERVAL=2500" # milliseconds
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_STOP_TIMEOUT=100" # milliseconds
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_PREEMPT_TIMEOUT=640" # milliseconds
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_CAPTURE_ERROR=0"
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_SELFTEST=0"
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=0"
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_PM=1"
makeoptions i915drmkms "CPPFLAGS.i915drmkms"+="-DCONFIG_INTEL_MEI_HDCP=0"
makeoptions i915drmkms "CWARNFLAGS.i915drmkms"+="-Wno-missing-field-initializers"
makeoptions i915drmkms "CWARNFLAGS.i915drmkms"+="-Wno-pointer-arith"
makeoptions i915drmkms "CWARNFLAGS.i915drmkms"+="-Wno-shadow"
makeoptions i915drmkms "CWARNFLAGS.i915_pci.c"+="${${ACTIVE_CC} == gcc:? -Wno-override-init :}"
makeoptions i915drmkms "CWARNFLAGS.i915_pci.c"+="${${ACTIVE_CC} == clang:? -Wno-initializer-overrides :}"
makeoptions i915drmkms "CWARNFLAGS.i915_sw_fence.c"+="${${ACTIVE_CC} == clang :? -Wno-unused-function :}"
makeoptions i915drmkms "CWARNFLAGS.intel_sprite.c"+="${CC_WNO_MAYBE_UNINITIALIZED}"
makeoptions i915drmkms "CWARNFLAGS.intel_ddi.c"+="${CC_WNO_MAYBE_UNINITIALIZED} ${CC_WNO_IMPLICIT_FALLTHROUGH}"
makeoptions i915drmkms "CWARNFLAGS.intel_display.c"+="${CC_WNO_IMPLICIT_FALLTHROUGH}"
makeoptions i915drmkms "CWARNFLAGS.intel_guc_submission.c"+="${${ACTIVE_CC} == clang :? -Wno-unused-function :}"
makeoptions i915drmkms "CWARNFLAGS.intel_hdmi.c"+="${${ACTIVE_CC} == clang :? -Wno-unused-function :}"
makeoptions i915drmkms "CWARNFLAGS.intel_sdvo.c"+="${CC_WNO_IMPLICIT_FALLTHROUGH}"
makeoptions intelfb "CPPFLAGS.intelfb"+="${CPPFLAGS.i915drmkms}"
makeoptions intelfb "CWARNFLAGS.intelfb"+="${CWARNFLAGS.i915drmkms}"
# Local additions
file external/bsd/drm2/i915drm/i915_module.c i915drmkms
file external/bsd/drm2/i915drm/i915_pci_autoconf.c i915drmkms
file external/bsd/drm2/i915drm/intelfb.c intelfb
# Local overrides
file external/bsd/drm2/i915drm/i915_gem_userptr.c i915drmkms
file external/bsd/drm2/i915drm/i915_gemfs.c i915drmkms
file external/bsd/drm2/i915drm/i915_switcheroo.c i915drmkms
file external/bsd/drm2/i915drm/i915_sysfs.c i915drmkms
file external/bsd/drm2/i915drm/i915_trace_points.c i915drmkms
file external/bsd/drm2/i915drm/icl_dsi.c i915drmkms
file external/bsd/drm2/i915drm/intel_dsi_dcs_backlight.c i915drmkms
file external/bsd/drm2/i915drm/intel_gtt_subr.c i915drmkms
file external/bsd/drm2/i915drm/intel_guc_log.c i915drmkms
file external/bsd/drm2/i915drm/intel_lpe_audio.c i915drmkms
file external/bsd/drm2/i915drm/intel_region_lmem.c i915drmkms
file external/bsd/drm2/i915drm/vlv_dsi.c i915drmkms
# Generated from i915drmkms2netbsd.
file external/bsd/drm2/dist/drm/i915/display/dvo_ch7017.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/dvo_ch7xxx.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/dvo_ivch.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/dvo_ns2501.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/dvo_sil164.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/dvo_tfp410.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/display/icl_dsi.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_acpi.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_atomic.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_atomic_plane.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_audio.c i915drmkms # XXX hdaudio
file external/bsd/drm2/dist/drm/i915/display/intel_bios.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_bw.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_cdclk.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_color.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_combo_phy.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_connector.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_crt.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_ddi.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_display.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_display_power.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_dp.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_dp_aux_backlight.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_dp_link_training.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_dp_mst.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_dpio_phy.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_dpll_mgr.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_dsb.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/display/intel_dsi.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/display/intel_dsi_dcs_backlight.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/display/intel_dsi_vbt.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_dvo.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_fbc.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_fbdev.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_fifo_underrun.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_frontbuffer.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_gmbus.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_hdcp.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_hdmi.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_hotplug.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/display/intel_lpe_audio.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_lspcon.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_lvds.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_opregion.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_overlay.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_panel.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_psr.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_quirks.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_sdvo.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_sprite.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_tc.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_tv.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_vdsc.c i915drmkms
file external/bsd/drm2/dist/drm/i915/display/intel_vga.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/display/vlv_dsi.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/display/vlv_dsi_pll.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_busy.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_clflush.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/gem/i915_gem_client_blt.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_context.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_dmabuf.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_domain.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_execbuffer.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_fence.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_internal.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_lmem.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_mman.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_object.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_object_blt.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_pages.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_phys.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_pm.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_region.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_shmem.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_shrinker.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_stolen.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_throttle.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_tiling.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/gem/i915_gem_userptr.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gem/i915_gem_wait.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/gem/i915_gemfs.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/gt/debugfs_engines.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/gt/debugfs_gt.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/gt/debugfs_gt_pm.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/gen6_ppgtt.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/gen6_renderstate.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/gen7_renderstate.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/gen8_ppgtt.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/gen8_renderstate.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/gen9_renderstate.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_breadcrumbs.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_context.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_engine_cs.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_engine_heartbeat.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_engine_pm.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_engine_pool.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_engine_user.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_ggtt.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_gt.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_gt_irq.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_gt_pm.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_gt_pm_irq.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_gt_requests.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_gtt.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_llc.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_lrc.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_mocs.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_ppgtt.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_rc6.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_renderstate.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_reset.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_ring.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_ring_submission.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_rps.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_sseu.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_timeline.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/intel_workarounds.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/uc/intel_guc.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/uc/intel_guc_ads.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/uc/intel_guc_ct.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/uc/intel_guc_fw.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/gt/uc/intel_guc_log.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/uc/intel_guc_submission.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/uc/intel_huc.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/uc/intel_huc_fw.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/uc/intel_uc.c i915drmkms
file external/bsd/drm2/dist/drm/i915/gt/uc/intel_uc_fw.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_active.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_buddy.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_drv.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_gem.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_gem_evict.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_gem_fence_reg.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_gem_gtt.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_getparam.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_globals.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_irq.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_memcpy.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/i915_mm.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_params.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_pci.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_perf.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_query.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_request.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_scatterlist.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_scheduler.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_suspend.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_sw_fence.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_sw_fence_work.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/i915_switcheroo.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_syncmap.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/i915_sysfs.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/i915_trace_points.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_user_extensions.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_utils.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_vgpu.c i915drmkms
file external/bsd/drm2/dist/drm/i915/i915_vma.c i915drmkms
file external/bsd/drm2/dist/drm/i915/intel_csr.c i915drmkms
file external/bsd/drm2/dist/drm/i915/intel_device_info.c i915drmkms
file external/bsd/drm2/dist/drm/i915/intel_memory_region.c i915drmkms
file external/bsd/drm2/dist/drm/i915/intel_pch.c i915drmkms
file external/bsd/drm2/dist/drm/i915/intel_pm.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/intel_region_lmem.c i915drmkms
file external/bsd/drm2/dist/drm/i915/intel_runtime_pm.c i915drmkms
file external/bsd/drm2/dist/drm/i915/intel_sideband.c i915drmkms
file external/bsd/drm2/dist/drm/i915/intel_uncore.c i915drmkms
file external/bsd/drm2/dist/drm/i915/intel_wakeref.c i915drmkms
file external/bsd/drm2/dist/drm/i915/intel_wopcm.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/oa/i915_oa_bdw.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/oa/i915_oa_bxt.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/oa/i915_oa_cflgt2.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/oa/i915_oa_cflgt3.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/oa/i915_oa_chv.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/oa/i915_oa_cnl.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/oa/i915_oa_glk.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/oa/i915_oa_hsw.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/oa/i915_oa_icl.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/oa/i915_oa_kblgt2.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/oa/i915_oa_kblgt3.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/oa/i915_oa_sklgt2.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/oa/i915_oa_sklgt3.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/oa/i915_oa_sklgt4.c i915drmkms
#file external/bsd/drm2/dist/drm/i915/oa/i915_oa_tgl.c i915drmkms