blob: c1dfe34924509f560f8b9dbfe68a7458e4b72e09 [file] [log] [blame]
Priyanka Mathur71859f42012-10-17 10:54:35 -07001/* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 */
13
14#ifndef __ARCH_ARM_MACH_MSM_RPM_STATS_H
15#define __ARCH_ARM_MACH_MSM_RPM_STATS_H
16
17#include <linux/types.h>
18
19struct msm_rpmstats_platform_data {
20 phys_addr_t phys_addr_base;
21 u32 phys_size;
Priyanka Mathur71859f42012-10-17 10:54:35 -070022 u32 version;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070023};
Anji Jonnala93129922012-10-09 20:57:53 +053024
25struct msm_rpm_master_stats_platform_data {
26 phys_addr_t phys_addr_base;
27 u32 phys_size;
28 char **masters;
29 /*
30 * RPM maintains PC stats for each master in MSG RAM,
31 * it allocates 256 bytes for this use.
32 * No of masters differs for different targets.
33 * Based on the number of masters, linux rpm stat
34 * driver reads (32 * nomasters) bytes to display
35 * master stats.
36 */
37 u32 nomasters;
38};
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070039#endif