Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
r8a7779.h
Go to the documentation of this file.
1 #ifndef __ASM_R8A7779_H__
2 #define __ASM_R8A7779_H__
3 
4 #include <linux/sh_clk.h>
5 #include <linux/pm_domain.h>
6 
7 /* Pin Function Controller:
8  * GPIO_FN_xx - GPIO used to select pin function
9  * GPIO_GP_x_x - GPIO mapped to real I/O pin on CPU
10  */
11 enum {
20 
29 
38 
47 
56 
65 
69 
72 
73  /* IPSR0 */
90 
91  /* IPSR1 */
109 
110  /* IPSR2 */
131 
132  /* IPSR3 */
152 
153  /* IPSR4 */
173 
174  /* IPSR5 */
197 
198  /* IPSR6 */
215 
216  /* IPSR7 */
233 
234  /* IPSR8 */
254 
255  /* IPSR9 */
274 
275  /* IPSR10 */
295 
296  /* IPSR11 */
315 
316  /* IPSR12 */
326 };
327 
328 struct platform_device;
329 
331  unsigned long chan_offs;
332  unsigned int chan_bit;
333  unsigned int isr_bit;
334 };
335 
339 };
340 
341 static inline struct r8a7779_pm_ch *to_r8a7779_ch(struct generic_pm_domain *d)
342 {
343  return &container_of(d, struct r8a7779_pm_domain, genpd)->ch;
344 }
345 
346 extern int r8a7779_sysc_power_down(struct r8a7779_pm_ch *r8a7779_ch);
347 extern int r8a7779_sysc_power_up(struct r8a7779_pm_ch *r8a7779_ch);
348 
349 #ifdef CONFIG_PM
350 extern void __init r8a7779_init_pm_domains(void);
351 #else
352 static inline void r8a7779_init_pm_domains(void) {}
353 #endif /* CONFIG_PM */
354 
355 extern struct smp_operations r8a7779_smp_ops;
356 
357 #endif /* __ASM_R8A7779_H__ */