2 * This file is in the public domain.
7 #ifndef _MACHINE_PMC_MDEP_H_
8 #define _MACHINE_PMC_MDEP_H_
10 #define PMC_MDEP_CLASS_INDEX_CPU 1
11 #define PMC_MDEP_CLASS_INDEX_PPC7450 1
12 #define PMC_MDEP_CLASS_INDEX_PPC970 1
14 union pmc_md_op_pmcallocate {
19 #define PMCLOG_READADDR PMCLOG_READ32
20 #define PMCLOG_EMITADDR PMCLOG_EMIT32
24 struct pmc_md_powerpc_pmc {
25 uint32_t pm_powerpc_evsel;
29 struct pmc_md_powerpc_pmc pm_powerpc;
32 #define PMC_TRAPFRAME_TO_PC(TF) ((TF)->srr0)
33 #define PMC_TRAPFRAME_TO_FP(TF) ((TF)->fixreg[1])
34 #define PMC_TRAPFRAME_TO_SP(TF) (0)
38 #endif /* !_MACHINE_PMC_MDEP_H_ */