4 #include "mach/pmu_v7.h"
5 #include <linux/threads.h>
10 __u32 cpu_cyc
[NR_CPUS
];
11 __u32 cpu_cnt0
[NR_CPUS
];
12 __u32 cpu_cnt1
[NR_CPUS
];
13 __u32 cpu_cnt2
[NR_CPUS
];
14 __u32 cpu_cnt3
[NR_CPUS
];
47 /* 6582 doesn't have MCI */
56 __u32 DRAMC_Interbank
;
69 extern void set_mt65xx_mon_period(long time_ns
);
70 extern long get_mt65xx_mon_period(void);
71 extern void set_mt65xx_mon_manual_start(unsigned int bStart
);
72 extern unsigned int get_mt65xx_mon_manual_start(void);
73 extern void set_mt65xx_mon_mode(MonitorMode mode
);
74 extern MonitorMode
get_mt65xx_mon_mode(void);
86 unsigned int (*mon_log
)(void *);
87 void (*set_pmu
)(struct pmu_cfg
*p_cfg
);
88 void (*get_pmu
)(struct pmu_cfg
*p_cfg
);
89 void (*set_l2c
)(struct l2c_cfg
*l_cfg
);
90 void (*get_l2c
)(struct l2c_cfg
*l_cfg
);
91 void (*set_bm_rw
)(int type
);
92 struct mt_mon_log
*log_buff
;
95 int register_monitor(struct mtk_monitor
**mtk_mon
, MonitorMode mode
);
96 void unregister_monitor(struct mtk_monitor
**mtk_mon
);
98 #endif /* !__MT65XX_MON_H__ */