# $NetBSD: files.radeon,v 1.37.4.1 2024/10/04 11:40:52 martin Exp $ version 20180827 define radeonfbbus { } device radeon: drmkms, drmkms_pci, drmkms_ttm, radeonfbbus, firmload attach radeon at pci # XXX Rename this to radeonfb when the legacy radeonfb(4) is gone. device radeondrmkmsfb: radeonfbbus, drmfb, drmfb_pci, wsemuldisplaydev attach radeondrmkmsfb at radeonfbbus # This code comes from the Linux kernel, which assumes signed # overflow is OK. makeoptions radeon "COPTS.radeon"+="-fwrapv" makeoptions radeon "CPPFLAGS.radeon"+="${CPPFLAGS.drmkms}" makeoptions radeondrmkmsfb "CPPFLAGS.radeondrmkmsfb"+="${CPPFLAGS.radeon}" # Our overrides first. makeoptions radeon "CPPFLAGS.radeon"+="-I$S/external/bsd/drm2/include/radeon" makeoptions radeon "CPPFLAGS.radeon"+="-I$S/external/bsd/drm2/radeon" # Then their header files. makeoptions radeon "CPPFLAGS.radeon"+="-I$S/external/bsd/drm2/dist/drm/amd/include" makeoptions radeon "CPPFLAGS.radeon"+="-I$S/external/bsd/drm2/dist/drm/radeon" makeoptions radeon "CPPFLAGS.radeon"+="-DCONFIG_AGP=1" makeoptions radeon "CWARNFLAGS.radeon"+="-Wno-missing-field-initializers" makeoptions radeon "CWARNFLAGS.radeon"+="-Wno-missing-prototypes" makeoptions radeon "CWARNFLAGS.radeon"+="-Wno-pointer-arith" makeoptions radeon "CWARNFLAGS.radeon"+="-Wno-shadow" makeoptions radeon "CWARNFLAGS.radeon"+="-Wno-unused-const-variable" makeoptions radeon "CWARNFLAGS.radeon"+="${${ACTIVE_CC} == gcc:? -Wno-maybe-uninitialized :}" #makeoptions radeon "CWARNFLAGS.radeon_cs.c"+="${${ACTIVE_CC} == gcc && ${HAVE_GCC:U0} >= 7:? -Wno-error=implicit-fallthrough :}" makeoptions radeon "CWARNFLAGS.radeon_evergreen_cs.c"+="${${ACTIVE_CC} == gcc && ${HAVE_GCC:U0} >= 7:? -Wno-error=implicit-fallthrough :}" makeoptions radeon "CWARNFLAGS.radeon_r300.c"+="${${ACTIVE_CC} == gcc && ${HAVE_GCC:U0} >= 7:? -Wno-error=implicit-fallthrough :}" makeoptions radeon "CWARNFLAGS.radeon_r420.c"+="${${ACTIVE_CC} == gcc && ${HAVE_GCC:U0} >= 7:? -Wno-error=implicit-fallthrough :}" makeoptions radeon "CWARNFLAGS.radeon_uvd.c"+="${${ACTIVE_CC} == clang:? -Wno-format :}" file external/bsd/drm2/radeon/radeon_module.c radeon file external/bsd/drm2/radeon/radeon_pci.c radeon file external/bsd/drm2/radeon/radeondrmkmsfb.c radeondrmkmsfb # Generated from radeon2netbsd. file external/bsd/drm2/dist/drm/radeon/radeon_acpi.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_agp.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_asic.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_atom.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_atombios.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_atombios_crtc.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_atombios_dp.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_atombios_encoders.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_atombios_i2c.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_audio.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_benchmark.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_bios.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_btc_dpm.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_cayman_blit_shaders.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_ci_dpm.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_ci_smc.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_cik.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_cik_blit_shaders.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_cik_sdma.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_clocks.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_combios.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_connectors.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_cs.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_cursor.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_cypress_dpm.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_dce3_1_afmt.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_dce6_afmt.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_device.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_display.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_dp_auxch.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_dp_mst.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_drv.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_encoders.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_evergreen.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_evergreen_blit_shaders.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_evergreen_cs.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_evergreen_dma.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_evergreen_hdmi.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_fb.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_fence.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_gart.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_gem.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_i2c.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_ib.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_irq_kms.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_kms.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_kv_dpm.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_kv_smc.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_legacy_crtc.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_legacy_encoders.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_legacy_tv.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_ni.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_ni_dma.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_ni_dpm.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_object.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_pm.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_prime.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_r100.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_r200.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_r300.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_r420.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_r520.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_r600.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_r600_blit_shaders.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_r600_cs.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_r600_dma.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_r600_dpm.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_r600_hdmi.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_ring.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_rs400.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_rs600.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_rs690.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_rs780_dpm.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_rv515.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_rv6xx_dpm.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_rv730_dpm.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_rv740_dpm.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_rv770.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_rv770_dma.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_rv770_dpm.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_rv770_smc.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_sa.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_semaphore.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_si.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_si_blit_shaders.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_si_dma.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_si_dpm.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_si_smc.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_sumo_dpm.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_sumo_smc.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_sync.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_test.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_trace_points.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_trinity_dpm.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_trinity_smc.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_ttm.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_ucode.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_uvd.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_uvd_v2_2.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_uvd_v3_1.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_uvd_v4_2.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_vce.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_vce_v1_0.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_vce_v2_0.c radeon file external/bsd/drm2/dist/drm/radeon/radeon_vm.c radeon