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

TOMOYO Linux Cross Reference
Linux/arch/x86/include/asm/olpc.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/x86/include/asm/olpc.h (Architecture alpha) and /arch/sparc64/include/asm-sparc64/olpc.h (Architecture sparc64)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 /* OLPC machine specific definitions */           
  3                                                   
  4 #ifndef _ASM_X86_OLPC_H                           
  5 #define _ASM_X86_OLPC_H                           
  6                                                   
  7 #include <asm/geode.h>                            
  8                                                   
  9 struct olpc_platform_t {                          
 10         int flags;                                
 11         uint32_t boardrev;                        
 12 };                                                
 13                                                   
 14 #define OLPC_F_PRESENT          0x01              
 15 #define OLPC_F_DCON             0x02              
 16                                                   
 17 #ifdef CONFIG_OLPC                                
 18                                                   
 19 extern struct olpc_platform_t olpc_platform_in    
 20                                                   
 21 /*                                                
 22  * OLPC board IDs contain the major build numb    
 23  * and the minor build number within 0x000f.      
 24  * number less than 8, and normal builds start    
 25  * is a PreB1, and 0x0C18 is a C1.                
 26  */                                               
 27                                                   
 28 static inline uint32_t olpc_board(uint8_t id)     
 29 {                                                 
 30         return (id << 4) | 0x8;                   
 31 }                                                 
 32                                                   
 33 static inline uint32_t olpc_board_pre(uint8_t     
 34 {                                                 
 35         return id << 4;                           
 36 }                                                 
 37                                                   
 38 static inline int machine_is_olpc(void)           
 39 {                                                 
 40         return (olpc_platform_info.flags & OLP    
 41 }                                                 
 42                                                   
 43 /*                                                
 44  * The DCON is OLPC's Display Controller.  It     
 45  * features that we might want to take advanta    
 46  */                                               
 47 static inline int olpc_has_dcon(void)             
 48 {                                                 
 49         return (olpc_platform_info.flags & OLP    
 50 }                                                 
 51                                                   
 52 /*                                                
 53  * The "Mass Production" version of OLPC's XO     
 54  * C2.  During the prototype phase, the follow    
 55  * order) were created: A1, B1, B2, B3, B4, C1    
 56  * were based on Geode GX CPUs, and models aft    
 57  * Geode LX CPUs.  There were also some hand-a    
 58  * around, referred to as PreB1, PreB2, etc.      
 59  */                                               
 60 static inline int olpc_board_at_least(uint32_t    
 61 {                                                 
 62         return olpc_platform_info.boardrev >=     
 63 }                                                 
 64                                                   
 65 #else                                             
 66                                                   
 67 static inline int machine_is_olpc(void)           
 68 {                                                 
 69         return 0;                                 
 70 }                                                 
 71                                                   
 72 static inline int olpc_has_dcon(void)             
 73 {                                                 
 74         return 0;                                 
 75 }                                                 
 76                                                   
 77 #endif                                            
 78                                                   
 79 #ifdef CONFIG_OLPC_XO1_PM                         
 80 extern void do_olpc_suspend_lowlevel(void);       
 81 extern void olpc_xo1_pm_wakeup_set(u16 value);    
 82 extern void olpc_xo1_pm_wakeup_clear(u16 value    
 83 #endif                                            
 84                                                   
 85 extern int pci_olpc_init(void);                   
 86                                                   
 87 /* GPIO assignments */                            
 88                                                   
 89 #define OLPC_GPIO_MIC_AC        1                 
 90 #define OLPC_GPIO_DCON_STAT0    5                 
 91 #define OLPC_GPIO_DCON_STAT1    6                 
 92 #define OLPC_GPIO_DCON_IRQ      7                 
 93 #define OLPC_GPIO_THRM_ALRM     geode_gpio(10)    
 94 #define OLPC_GPIO_DCON_LOAD    11                 
 95 #define OLPC_GPIO_DCON_BLANK   12                 
 96 #define OLPC_GPIO_SMB_CLK      14                 
 97 #define OLPC_GPIO_SMB_DATA     15                 
 98 #define OLPC_GPIO_WORKAUX       geode_gpio(24)    
 99 #define OLPC_GPIO_LID           26                
100 #define OLPC_GPIO_ECSCI         27                
101                                                   
102 #endif /* _ASM_X86_OLPC_H */                      
103                                                   

~ [ 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