xref: /freebsd/sys/powerpc/include/pmc_mdep.h (revision f05cddf9)
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 
12 union pmc_md_op_pmcallocate {
13 	uint64_t		__pad[4];
14 };
15 
16 /* Logging */
17 #define	PMCLOG_READADDR		PMCLOG_READ32
18 #define	PMCLOG_EMITADDR		PMCLOG_EMIT32
19 
20 #if	_KERNEL
21 
22 struct pmc_md_powerpc_pmc {
23 	uint32_t	pm_powerpc_evsel;
24 };
25 
26 union pmc_md_pmc {
27 	struct pmc_md_powerpc_pmc	pm_powerpc;
28 };
29 
30 #define	PMC_TRAPFRAME_TO_PC(TF)	(0)	/* Stubs */
31 #define	PMC_TRAPFRAME_TO_FP(TF)	(0)
32 #define	PMC_TRAPFRAME_TO_SP(TF)	(0)
33 
34 #endif
35 
36 #endif /* !_MACHINE_PMC_MDEP_H_ */
37