1 /*- 2 * This file is in the public domain. 3 * 4 * $FreeBSD$ 5 */ 6 7 #ifndef _MACHINE_PMC_MDEP_H_ 8 #define _MACHINE_PMC_MDEP_H_ 9 10 #define PMC_MDEP_CLASS_INDEX_PPC7450 1 11 #define PMC_MDEP_CLASS_INDEX_PPC970 1 12 13 union pmc_md_op_pmcallocate { 14 uint64_t __pad[4]; 15 }; 16 17 /* Logging */ 18 #define PMCLOG_READADDR PMCLOG_READ32 19 #define PMCLOG_EMITADDR PMCLOG_EMIT32 20 21 #if _KERNEL 22 23 struct pmc_md_powerpc_pmc { 24 uint32_t pm_powerpc_evsel; 25 }; 26 27 union pmc_md_pmc { 28 struct pmc_md_powerpc_pmc pm_powerpc; 29 }; 30 31 #define PMC_TRAPFRAME_TO_PC(TF) ((TF)->srr0) 32 #define PMC_TRAPFRAME_TO_FP(TF) ((TF)->fixreg[1]) 33 #define PMC_TRAPFRAME_TO_SP(TF) (0) 34 35 #endif 36 37 #endif /* !_MACHINE_PMC_MDEP_H_ */ 38