1145332Smarcel/*- 2145332Smarcel * This file is in the public domain. 3145332Smarcel * 4145332Smarcel * $FreeBSD$ 5145332Smarcel */ 6145332Smarcel 7145332Smarcel#ifndef _MACHINE_PMC_MDEP_H_ 8145332Smarcel#define _MACHINE_PMC_MDEP_H_ 9145332Smarcel 10255164Sjhibbits#define PMC_MDEP_CLASS_INDEX_PPC7450 0 11255164Sjhibbits#define PMC_MDEP_CLASS_INDEX_PPC970 0 12233628Sfabient 13147191Sjkoshyunion pmc_md_op_pmcallocate { 14147191Sjkoshy uint64_t __pad[4]; 15147191Sjkoshy}; 16147191Sjkoshy 17147191Sjkoshy/* Logging */ 18147191Sjkoshy#define PMCLOG_READADDR PMCLOG_READ32 19147191Sjkoshy#define PMCLOG_EMITADDR PMCLOG_EMIT32 20147191Sjkoshy 21147191Sjkoshy#if _KERNEL 22147191Sjkoshy 23228869Sjhibbitsstruct pmc_md_powerpc_pmc { 24228869Sjhibbits uint32_t pm_powerpc_evsel; 25228869Sjhibbits}; 26228869Sjhibbits 27147191Sjkoshyunion pmc_md_pmc { 28228869Sjhibbits struct pmc_md_powerpc_pmc pm_powerpc; 29147191Sjkoshy}; 30147191Sjkoshy 31174405Sjkoshy#define PMC_TRAPFRAME_TO_PC(TF) (0) /* Stubs */ 32174405Sjkoshy#define PMC_TRAPFRAME_TO_FP(TF) (0) 33174405Sjkoshy#define PMC_TRAPFRAME_TO_SP(TF) (0) 34174405Sjkoshy 35147191Sjkoshy#endif 36147191Sjkoshy 37145332Smarcel#endif /* !_MACHINE_PMC_MDEP_H_ */ 38