Merge tag 'locks-v3.16-2' of git://git.samba.org/jlayton/linux
[linux/fpc-iii.git] / arch / arm / mach-msm / common.h
blob572479a3c7be0d52c2a01f31d266ed266093d9a8
1 /* Copyright (c) 2012, The Linux Foundation. All rights reserved.
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.
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.
12 #ifndef __MACH_COMMON_H
13 #define __MACH_COMMON_H
15 extern void msm7x01_timer_init(void);
16 extern void msm7x30_timer_init(void);
17 extern void qsd8x50_timer_init(void);
19 extern void msm_map_common_io(void);
20 extern void msm_map_msm7x30_io(void);
21 extern void msm_map_qsd8x50_io(void);
23 extern void __iomem *__msm_ioremap_caller(phys_addr_t phys_addr, size_t size,
24 unsigned int mtype, void *caller);
26 struct msm_mmc_platform_data;
28 extern void msm_add_devices(void);
29 extern void msm_init_irq(void);
30 extern void msm_init_gpio(void);
31 extern int msm_add_sdcc(unsigned int controller,
32 struct msm_mmc_platform_data *plat,
33 unsigned int stat_irq, unsigned long stat_irq_flags);
35 #if defined(CONFIG_MSM_SMD) && defined(CONFIG_DEBUG_FS)
36 extern int smd_debugfs_init(void);
37 #else
38 static inline int smd_debugfs_init(void) { return 0; }
39 #endif
41 #endif