Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
common.h
Go to the documentation of this file.
1 #ifndef __ARCH_MACH_COMMON_H
2 #define __ARCH_MACH_COMMON_H
3 
4 extern void shmobile_earlytimer_init(void);
5 extern struct sys_timer shmobile_timer;
6 extern void shmobile_setup_delay(unsigned int max_cpu_core_mhz,
7  unsigned int mult, unsigned int div);
8 struct twd_local_timer;
9 extern void shmobile_setup_console(void);
10 extern void shmobile_secondary_vector(void);
11 struct clk;
12 extern int shmobile_clk_init(void);
13 extern void shmobile_handle_irq_intc(struct pt_regs *);
15 struct cpuidle_driver;
16 struct cpuidle_device;
17 extern int shmobile_enter_wfi(struct cpuidle_device *dev,
18  struct cpuidle_driver *drv, int index);
19 extern void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv);
20 
21 extern void sh7367_init_irq(void);
22 extern void sh7367_map_io(void);
23 extern void sh7367_add_early_devices(void);
24 extern void sh7367_add_standard_devices(void);
25 extern void sh7367_clock_init(void);
26 extern void sh7367_pinmux_init(void);
27 extern struct clk sh7367_extalb1_clk;
28 extern struct clk sh7367_extal2_clk;
29 
30 extern void sh7377_init_irq(void);
31 extern void sh7377_map_io(void);
32 extern void sh7377_add_early_devices(void);
33 extern void sh7377_add_standard_devices(void);
34 extern void sh7377_clock_init(void);
35 extern void sh7377_pinmux_init(void);
36 extern struct clk sh7377_extalc1_clk;
37 extern struct clk sh7377_extal2_clk;
38 
39 extern void sh7372_init_irq(void);
40 extern void sh7372_map_io(void);
41 extern void sh7372_add_early_devices(void);
42 extern void sh7372_add_standard_devices(void);
43 extern void sh7372_clock_init(void);
44 extern void sh7372_pinmux_init(void);
45 extern void sh7372_pm_init(void);
46 extern void sh7372_resume_core_standby_sysc(void);
47 extern int sh7372_do_idle_sysc(unsigned long sleep_mode);
48 extern struct clk sh7372_extal1_clk;
49 extern struct clk sh7372_extal2_clk;
50 
51 extern void sh73a0_init_irq(void);
52 extern void sh73a0_map_io(void);
53 extern void sh73a0_add_early_devices(void);
54 extern void sh73a0_add_standard_devices(void);
55 extern void sh73a0_clock_init(void);
56 extern void sh73a0_pinmux_init(void);
57 extern struct clk sh73a0_extal1_clk;
58 extern struct clk sh73a0_extal2_clk;
59 extern struct clk sh73a0_extcki_clk;
60 extern struct clk sh73a0_extalr_clk;
61 
62 extern void r8a7740_init_irq(void);
63 extern void r8a7740_map_io(void);
64 extern void r8a7740_add_early_devices(void);
65 extern void r8a7740_add_standard_devices(void);
66 extern void r8a7740_clock_init(u8 md_ck);
67 extern void r8a7740_pinmux_init(void);
68 
69 extern void r8a7779_init_irq(void);
70 extern void r8a7779_map_io(void);
71 extern void r8a7779_add_early_devices(void);
72 extern void r8a7779_add_standard_devices(void);
73 extern void r8a7779_clock_init(void);
74 extern void r8a7779_pinmux_init(void);
75 extern void r8a7779_pm_init(void);
76 extern void r8a7740_meram_workaround(void);
77 
78 extern void r8a7779_register_twd(void);
79 
80 #ifdef CONFIG_SUSPEND
81 int shmobile_suspend_init(void);
82 #else
83 static inline int shmobile_suspend_init(void) { return 0; }
84 #endif
85 
86 #ifdef CONFIG_CPU_IDLE
87 int shmobile_cpuidle_init(void);
88 #else
89 static inline int shmobile_cpuidle_init(void) { return 0; }
90 #endif
91 
92 extern void shmobile_cpu_die(unsigned int cpu);
93 extern int shmobile_cpu_disable(unsigned int cpu);
94 
95 #ifdef CONFIG_HOTPLUG_CPU
96 extern int shmobile_cpu_is_dead(unsigned int cpu);
97 #else
98 static inline int shmobile_cpu_is_dead(unsigned int cpu) { return 1; }
99 #endif
100 
101 extern void shmobile_smp_init_cpus(unsigned int ncores);
102 
103 static inline void __init shmobile_init_late(void)
104 {
107 }
108 
109 #endif /* __ARCH_MACH_COMMON_H */