Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hwpmc/hwpmc_powerpc.h
| Show All 34 Lines | |||||
| #define POWERPC_PMC_CAPS (PMC_CAP_INTERRUPT | PMC_CAP_USER | \ | #define POWERPC_PMC_CAPS (PMC_CAP_INTERRUPT | PMC_CAP_USER | \ | ||||
| PMC_CAP_SYSTEM | PMC_CAP_EDGE | \ | PMC_CAP_SYSTEM | PMC_CAP_EDGE | \ | ||||
| PMC_CAP_THRESHOLD | PMC_CAP_READ | \ | PMC_CAP_THRESHOLD | PMC_CAP_READ | \ | ||||
| PMC_CAP_WRITE | PMC_CAP_INVERT | \ | PMC_CAP_WRITE | PMC_CAP_INVERT | \ | ||||
| PMC_CAP_QUALIFIER) | PMC_CAP_QUALIFIER) | ||||
| #define POWERPC_PMC_KERNEL_ENABLE (0x1 << 30) | #define POWERPC_PMC_KERNEL_ENABLE (0x1 << 30) | ||||
| #define POWERPC_PMC_USER_ENABLE (0x1 << 31) | #define POWERPC_PMC_USER_ENABLE (0x1U << 31) | ||||
| #define POWERPC_PMC_ENABLE (POWERPC_PMC_KERNEL_ENABLE | POWERPC_PMC_USER_ENABLE) | #define POWERPC_PMC_ENABLE (POWERPC_PMC_KERNEL_ENABLE | POWERPC_PMC_USER_ENABLE) | ||||
| #define POWERPC_RELOAD_COUNT_TO_PERFCTR_VALUE(V) (0x80000000-(V)) | #define POWERPC_RELOAD_COUNT_TO_PERFCTR_VALUE(V) (0x80000000-(V)) | ||||
| #define POWERPC_PERFCTR_VALUE_TO_RELOAD_COUNT(P) (0x80000000-(P)) | #define POWERPC_PERFCTR_VALUE_TO_RELOAD_COUNT(P) (0x80000000-(P)) | ||||
| struct powerpc_cpu { | struct powerpc_cpu { | ||||
| struct pmc_hw *pc_ppcpmcs; | struct pmc_hw *pc_ppcpmcs; | ||||
| enum pmc_class pc_class; | enum pmc_class pc_class; | ||||
| Show All 13 Lines | |||||