1ff7125a6SMarcel Moolenaar /*- 2ff7125a6SMarcel Moolenaar * This file is in the public domain. 3ff7125a6SMarcel Moolenaar * 4ff7125a6SMarcel Moolenaar * $FreeBSD$ 5ff7125a6SMarcel Moolenaar */ 6ff7125a6SMarcel Moolenaar 7ff7125a6SMarcel Moolenaar #ifndef _MACHINE_PMC_MDEP_H_ 8ff7125a6SMarcel Moolenaar #define _MACHINE_PMC_MDEP_H_ 9ff7125a6SMarcel Moolenaar 10*7b25dccaSJustin Hibbits #define PMC_MDEP_CLASS_INDEX_PPC7450 0 11f263522aSJoseph Koshy union pmc_md_op_pmcallocate { 12f263522aSJoseph Koshy uint64_t __pad[4]; 13f263522aSJoseph Koshy }; 14f263522aSJoseph Koshy 15f263522aSJoseph Koshy /* Logging */ 16f263522aSJoseph Koshy #define PMCLOG_READADDR PMCLOG_READ32 17f263522aSJoseph Koshy #define PMCLOG_EMITADDR PMCLOG_EMIT32 18f263522aSJoseph Koshy 19f263522aSJoseph Koshy #if _KERNEL 20f263522aSJoseph Koshy 21*7b25dccaSJustin Hibbits struct pmc_md_powerpc_pmc { 22*7b25dccaSJustin Hibbits uint32_t pm_powerpc_evsel; 23*7b25dccaSJustin Hibbits }; 24*7b25dccaSJustin Hibbits 25f263522aSJoseph Koshy union pmc_md_pmc { 26*7b25dccaSJustin Hibbits struct pmc_md_powerpc_pmc pm_powerpc; 27f263522aSJoseph Koshy }; 28f263522aSJoseph Koshy 290da7aa7aSJoseph Koshy #define PMC_TRAPFRAME_TO_PC(TF) (0) /* Stubs */ 300da7aa7aSJoseph Koshy #define PMC_TRAPFRAME_TO_FP(TF) (0) 310da7aa7aSJoseph Koshy #define PMC_TRAPFRAME_TO_SP(TF) (0) 320da7aa7aSJoseph Koshy 33f263522aSJoseph Koshy #endif 34f263522aSJoseph Koshy 35ff7125a6SMarcel Moolenaar #endif /* !_MACHINE_PMC_MDEP_H_ */ 36