~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-s3c/pm.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/arm/mach-s3c/pm.h (Version linux-6.12-rc7) and /arch/alpha/mach-s3c/pm.h (Version linux-6.7.12)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 /*                                                
  3  * Copyright (c) 2004 Simtec Electronics          
  4  *      http://armlinux.simtec.co.uk/             
  5  *      Written by Ben Dooks, <ben@simtec.co.u    
  6  */                                               
  7                                                   
  8 /* s3c_pm_init                                    
  9  *                                                
 10  * called from board at initialisation time to    
 11  * management                                     
 12 */                                                
 13                                                   
 14 #include "pm-common.h"                            
 15                                                   
 16 struct device;                                    
 17                                                   
 18 #ifdef CONFIG_SAMSUNG_PM                          
 19                                                   
 20 extern __init int s3c_pm_init(void);              
 21 extern __init int s3c64xx_pm_init(void);          
 22                                                   
 23 #else                                             
 24                                                   
 25 static inline int s3c_pm_init(void)               
 26 {                                                 
 27         return 0;                                 
 28 }                                                 
 29                                                   
 30 static inline int s3c64xx_pm_init(void)           
 31 {                                                 
 32         return 0;                                 
 33 }                                                 
 34 #endif                                            
 35                                                   
 36 /* configuration for the IRQ mask over sleep *    
 37 extern unsigned long s3c_irqwake_intmask;         
 38 extern unsigned long s3c_irqwake_eintmask;        
 39                                                   
 40 /* per-cpu sleep functions */                     
 41                                                   
 42 extern void (*pm_cpu_prep)(void);                 
 43 extern int (*pm_cpu_sleep)(unsigned long);        
 44                                                   
 45 /* Flags for PM Control */                        
 46                                                   
 47 extern unsigned long s3c_pm_flags;                
 48                                                   
 49 /* from sleep.S */                                
 50                                                   
 51 #ifdef CONFIG_PM_SLEEP                            
 52 extern int s3c_irq_wake(struct irq_data *data,    
 53 extern void s3c_cpu_resume(void);                 
 54 #else                                             
 55 #define s3c_irq_wake NULL                         
 56 #define s3c_cpu_resume NULL                       
 57 #endif                                            
 58                                                   
 59 #ifdef CONFIG_SAMSUNG_PM                          
 60 extern int s3c_irqext_wake(struct irq_data *da    
 61 #else                                             
 62 #define s3c_irqext_wake NULL                      
 63 #endif                                            
 64                                                   
 65 /**                                               
 66  * s3c_pm_configure_extint() - ensure pins are    
 67  *                                                
 68  * Setup all the necessary GPIO pins for wakin    
 69  * interrupt.                                     
 70  */                                               
 71 extern void s3c_pm_configure_extint(void);        
 72                                                   
 73 #ifdef CONFIG_GPIO_SAMSUNG                        
 74 /**                                               
 75  * samsung_pm_restore_gpios() - restore the st    
 76  *                                                
 77  * Restore the state of the GPIO pins after sl    
 78  * that we do not glitch the state of the pins    
 79  * resume code has done.                          
 80 */                                                
 81 extern void samsung_pm_restore_gpios(void);       
 82                                                   
 83 /**                                               
 84  * samsung_pm_save_gpios() - save the state of    
 85  *                                                
 86  * Save the GPIO states for resotration on res    
 87  */                                               
 88 extern void samsung_pm_save_gpios(void);          
 89 #else                                             
 90 static inline void samsung_pm_restore_gpios(vo    
 91 static inline void samsung_pm_save_gpios(void)    
 92 #endif                                            
 93                                                   
 94 extern void s3c_pm_save_core(void);               
 95 extern void s3c_pm_restore_core(void);            
 96                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php