rpm_log.h 970 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* Copyright (c) 2010, 2013, The Linux Foundation. All rights reserved.
  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. #ifndef __ARCH_ARM_MACH_MSM_RPM_LOG_H
  14. #define __ARCH_ARM_MACH_MSM_RPM_LOG_H
  15. #include <linux/types.h>
  16. enum {
  17. MSM_RPM_LOG_PAGE_INDICES,
  18. MSM_RPM_LOG_PAGE_BUFFER,
  19. MSM_RPM_LOG_PAGE_COUNT
  20. };
  21. struct msm_rpm_log_platform_data {
  22. u32 reg_offsets[MSM_RPM_LOG_PAGE_COUNT];
  23. u32 log_len;
  24. u32 log_len_mask;
  25. phys_addr_t phys_addr_base;
  26. u32 phys_size;
  27. u32 version;
  28. void __iomem *reg_base;
  29. };
  30. #endif /* __ARCH_ARM_MACH_MSM_RPM_LOG_H */