Priyanka Mathur | 71859f4 | 2012-10-17 10:54:35 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 2 | * |
| 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 | |
| 19 | struct msm_rpmstats_platform_data { |
| 20 | phys_addr_t phys_addr_base; |
| 21 | u32 phys_size; |
Priyanka Mathur | 71859f4 | 2012-10-17 10:54:35 -0700 | [diff] [blame] | 22 | u32 version; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 23 | }; |
Anji Jonnala | 9312992 | 2012-10-09 20:57:53 +0530 | [diff] [blame] | 24 | |
| 25 | struct 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 Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 39 | #endif |