1# 2# Makefile for the drm device(radeon) driver. 3# 4# Please keep SRC list structured in blocks and sorted. 5# 6 7 8KMOD = radeon 9SRCS += \ 10 radeon_acpi.c \ 11 radeon_agp.c \ 12 radeon_asic.c \ 13 radeon_atombios.c \ 14 radeon_benchmark.c \ 15 radeon_bios.c \ 16 radeon_clocks.c \ 17 radeon_combios.c \ 18 radeon_connectors.c \ 19 radeon_cs.c \ 20 radeon_cursor.c \ 21 radeon_device.c \ 22 radeon_display.c \ 23 radeon_drv.c \ 24 radeon_encoders.c \ 25 radeon_fb.c \ 26 radeon_fence.c \ 27 radeon_gart.c \ 28 radeon_gem.c \ 29 radeon_i2c.c \ 30 radeon_ib.c \ 31 radeon_irq_kms.c \ 32 radeon_kms.c \ 33 radeon_legacy_crtc.c \ 34 radeon_legacy_encoders.c \ 35 radeon_legacy_tv.c \ 36 radeon_object.c \ 37 radeon_pm.c \ 38 radeon_ring.c \ 39 radeon_sa.c \ 40 radeon_semaphore.c \ 41 radeon_test.c \ 42 radeon_ttm.c \ 43 radeon_ucode.c \ 44 radeon_vm.c \ 45 atom.c \ 46 atombios_crtc.c \ 47 atombios_dp.c \ 48 atombios_encoders.c \ 49 atombios_i2c.c \ 50 r100.c \ 51 r200.c \ 52 r300.c \ 53 r420.c \ 54 rs400.c \ 55 rs600.c \ 56 rs690.c \ 57 rv515.c \ 58 r520.c \ 59 r600.c \ 60 r600_blit_shaders.c \ 61 r600_cs.c \ 62 r600_hdmi.c \ 63 rv770.c \ 64 dce3_1_afmt.c \ 65 evergreen.c \ 66 evergreen_blit_shaders.c \ 67 evergreen_cs.c \ 68 evergreen_hdmi.c \ 69 cayman_blit_shaders.c \ 70 ni.c \ 71 si.c \ 72 si_blit_shaders.c \ 73 cik.c \ 74 cik_blit_shaders.c \ 75 r600_dpm.c \ 76 rs780_dpm.c \ 77 rv6xx_dpm.c \ 78 rv770_dpm.c \ 79 rv730_dpm.c \ 80 rv740_dpm.c \ 81 rv770_smc.c \ 82 cypress_dpm.c \ 83 btc_dpm.c \ 84 sumo_dpm.c \ 85 sumo_smc.c \ 86 trinity_dpm.c \ 87 trinity_smc.c \ 88 ni_dpm.c \ 89 si_smc.c \ 90 si_dpm.c \ 91 kv_smc.c \ 92 kv_dpm.c \ 93 ci_smc.c \ 94 ci_dpm.c \ 95 dce6_afmt.c 96 97# add KMS driver 98SRCS+= \ 99 radeon_audio.c \ 100 radeon_dp_auxch.c \ 101 radeon_dp_mst.c \ 102 radeon_prime.c \ 103 radeon_sync.c 104 105# CONFIG_MMU_NOTIFIER 106#SRCS+= \ 107# radeon_mn.c 108 109# async DMA block 110SRCS += \ 111 r600_dma.c \ 112 rv770_dma.c \ 113 evergreen_dma.c \ 114 ni_dma.c \ 115 si_dma.c \ 116 cik_sdma.c 117 118# UVD block 119SRCS += \ 120 radeon_uvd.c \ 121 uvd_v1_0.c \ 122 uvd_v2_2.c \ 123 uvd_v3_1.c \ 124 uvd_v4_2.c 125 126# add VCE block 127SRCS += \ 128 radeon_vce.c \ 129 vce_v1_0.c \ 130 vce_v2_0.c 131 132#radeon_ioc32.c 133#--radeon_trace_points.c 134 135SRCS += \ 136 opt_acpi.h \ 137 opt_ddb.h \ 138 opt_drm.h \ 139 acpi_if.h \ 140 bus_if.h \ 141 device_if.h \ 142 pci_if.h 143 144KCFLAGS+= -I${SYSDIR}/dev/drm/include 145KCFLAGS+= -I${SYSDIR}/dev/drm/include/uapi 146KCFLAGS+= -I${SYSDIR}/dev/drm/amd/include 147KCFLAGS+= -I${SYSDIR}/contrib/dev/acpica/source/include 148KCFLAGS+= -include ${SYSDIR}/dev/drm/kconfig.h 149KCFLAGS+= -DKBUILD_MODNAME=\"$(KMOD)\" 150 151.include <bsd.kmod.mk> 152