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 15SRCS.DEV_ACPI= cmn600.c hwpmc_cmn600.c 16SRCS.DEV_ACPI+= hwpmc_dmc620.c pmu_dmc620.c 17.endif 18 19.if ${MACHINE_CPUARCH} == "amd64" 20SRCS+= hwpmc_amd.c hwpmc_core.c hwpmc_intel.c hwpmc_tsc.c 21SRCS+= hwpmc_x86.c hwpmc_uncore.c 22.endif 23 24.if ${MACHINE_CPUARCH} == "arm" 25SRCS+= hwpmc_arm.c 26.endif 27 28.if ${MACHINE_ARCH} == "armv7" 29SRCS+= hwpmc_armv7.c 30.endif 31 32.if ${MACHINE_CPUARCH} == "i386" 33SRCS+= hwpmc_amd.c hwpmc_core.c hwpmc_intel.c 34SRCS+= hwpmc_tsc.c hwpmc_x86.c hwpmc_uncore.c 35.endif 36 37.if ${MACHINE_CPUARCH} == "powerpc" 38SRCS+= hwpmc_powerpc.c hwpmc_e500.c hwpmc_mpc7xxx.c hwpmc_ppc970.c \ 39 hwpmc_power8.c 40.endif 41 42.include <bsd.kmod.mk> 43