1# 2# $FreeBSD$ 3# 4 5.PATH: ${SRCTOP}/sys/dev/hwpmc 6.PATH: ${SRCTOP}/sys/arm64/arm64 7 8KMOD= hwpmc 9 10SRCS= bus_if.h device_if.h hwpmc_mod.c hwpmc_logging.c hwpmc_soft.c 11SRCS+= vnode_if.h 12 13.if ${MACHINE_CPUARCH} == "aarch64" 14SRCS+= hwpmc_arm64.c hwpmc_arm64_md.c 15.if !empty(OPT_ACPI) 16SRCS+= cmn600.c hwpmc_cmn600.c 17SRCS+= hwpmc_dmc620.c pmu_dmc620.c 18.endif 19.endif 20 21.if ${MACHINE_CPUARCH} == "amd64" 22SRCS+= hwpmc_amd.c hwpmc_core.c hwpmc_intel.c hwpmc_tsc.c 23SRCS+= hwpmc_x86.c hwpmc_uncore.c 24.endif 25 26.if ${MACHINE_CPUARCH} == "arm" 27SRCS+= hwpmc_arm.c 28.endif 29 30.if ${MACHINE_ARCH} == "armv7" 31SRCS+= hwpmc_armv7.c 32.endif 33 34.if ${MACHINE_CPUARCH} == "i386" 35SRCS+= hwpmc_amd.c hwpmc_core.c hwpmc_intel.c 36SRCS+= hwpmc_tsc.c hwpmc_x86.c hwpmc_uncore.c 37.endif 38 39.if ${MACHINE_CPUARCH} == "powerpc" 40SRCS+= hwpmc_powerpc.c hwpmc_e500.c hwpmc_mpc7xxx.c hwpmc_ppc970.c \ 41 hwpmc_power8.c 42.endif 43 44.include <bsd.kmod.mk> 45