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

TOMOYO Linux Cross Reference
Linux/arch/powerpc/include/asm/nvram.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/powerpc/include/asm/nvram.h (Architecture alpha) and /arch/ppc/include/asm-ppc/nvram.h (Architecture ppc)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 
  2 /*                                                
  3  * NVRAM definitions and access functions.        
  4  */                                               
  5 #ifndef _ASM_POWERPC_NVRAM_H                      
  6 #define _ASM_POWERPC_NVRAM_H                      
  7                                                   
  8 #include <linux/types.h>                          
  9 #include <linux/errno.h>                          
 10 #include <linux/list.h>                           
 11 #include <uapi/asm/nvram.h>                       
 12                                                   
 13 /*                                                
 14  * Set oops header version to distinguish betw    
 15  * lnx,oops-log partition max size is 4000, he    
 16  * help in identifying new header.                
 17  */                                               
 18 #define OOPS_HDR_VERSION 5000                     
 19                                                   
 20 struct err_log_info {                             
 21         __be32 error_type;                        
 22         __be32 seq_num;                           
 23 };                                                
 24                                                   
 25 struct nvram_os_partition {                       
 26         const char *name;                         
 27         int req_size;   /* desired size, in by    
 28         int min_size;   /* minimum acceptable     
 29         long size;      /* size of data portio    
 30         long index;     /* offset of data port    
 31         bool os_partition; /* partition initia    
 32 };                                                
 33                                                   
 34 struct oops_log_info {                            
 35         __be16 version;                           
 36         __be16 report_length;                     
 37         __be64 timestamp;                         
 38 } __attribute__((packed));                        
 39                                                   
 40 extern struct nvram_os_partition oops_log_part    
 41                                                   
 42 #ifdef CONFIG_PPC_PSERIES                         
 43 extern struct nvram_os_partition rtas_log_part    
 44                                                   
 45 extern int nvram_write_error_log(char * buff,     
 46                                          unsig    
 47 extern int nvram_read_error_log(char * buff, i    
 48                                          unsig    
 49 extern int nvram_clear_error_log(void);           
 50 extern int pSeries_nvram_init(void);              
 51 #endif /* CONFIG_PPC_PSERIES */                   
 52                                                   
 53 #ifdef CONFIG_MMIO_NVRAM                          
 54 extern int mmio_nvram_init(void);                 
 55 #else                                             
 56 static inline int mmio_nvram_init(void)           
 57 {                                                 
 58         return -ENODEV;                           
 59 }                                                 
 60 #endif                                            
 61                                                   
 62 extern int __init nvram_scan_partitions(void);    
 63 extern loff_t nvram_create_partition(const cha    
 64                                      int req_s    
 65 extern int nvram_remove_partition(const char *    
 66                                         const     
 67 extern int nvram_get_partition_size(loff_t dat    
 68 extern loff_t nvram_find_partition(const char     
 69                                                   
 70 /* Return partition offset in nvram */            
 71 extern int      pmac_get_partition(int partiti    
 72                                                   
 73 /* Direct access to XPRAM on PowerMacs */         
 74 extern u8       pmac_xpram_read(int xpaddr);      
 75 extern void     pmac_xpram_write(int xpaddr, u    
 76                                                   
 77 /* Initialize NVRAM OS partition */               
 78 extern int __init nvram_init_os_partition(stru    
 79                                                   
 80 /* Initialize NVRAM oops partition */             
 81 extern void __init nvram_init_oops_partition(i    
 82                                                   
 83 /* Read a NVRAM partition */                      
 84 extern int nvram_read_partition(struct nvram_o    
 85                                 int length, un    
 86                                 unsigned int *    
 87                                                   
 88 /* Write to NVRAM OS partition */                 
 89 extern int nvram_write_os_partition(struct nvr    
 90                                     char *buff    
 91                                     unsigned i    
 92                                     unsigned i    
 93                                                   
 94 #endif /* _ASM_POWERPC_NVRAM_H */                 
 95                                                   

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