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

TOMOYO Linux Cross Reference
Linux/arch/riscv/include/asm/fixmap.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/riscv/include/asm/fixmap.h (Architecture ppc) and /arch/mips/include/asm-mips/fixmap.h (Architecture mips)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 /*                                                
  3  * Copyright (C) 2019 Western Digital Corporat    
  4  */                                               
  5                                                   
  6 #ifndef _ASM_RISCV_FIXMAP_H                       
  7 #define _ASM_RISCV_FIXMAP_H                       
  8                                                   
  9 #include <linux/kernel.h>                         
 10 #include <linux/sizes.h>                          
 11 #include <linux/pgtable.h>                        
 12 #include <asm/page.h>                             
 13                                                   
 14 #ifdef CONFIG_MMU                                 
 15 /*                                                
 16  * Here we define all the compile-time 'specia    
 17  * The point is to have a constant address at     
 18  * set the physical address only in the boot p    
 19  *                                                
 20  * These 'compile-time allocated' memory buffe    
 21  * set_fixmap(idx,phys) to associate physical     
 22  */                                               
 23 enum fixed_addresses {                            
 24         FIX_HOLE,                                 
 25         /*                                        
 26          * The fdt fixmap mapping must be PMD     
 27          * using PMD entries in fixmap_pmd in     
 28          */                                       
 29         FIX_FDT_END,                              
 30         FIX_FDT = FIX_FDT_END + FIX_FDT_SIZE /    
 31                                                   
 32         /* Below fixmaps will be mapped using     
 33         FIX_PTE,                                  
 34         FIX_PMD,                                  
 35         FIX_PUD,                                  
 36         FIX_P4D,                                  
 37         FIX_TEXT_POKE1,                           
 38         FIX_TEXT_POKE0,                           
 39         FIX_EARLYCON_MEM_BASE,                    
 40                                                   
 41         __end_of_permanent_fixed_addresses,       
 42         /*                                        
 43          * Temporary boot-time mappings, used     
 44          * before ioremap() is functional.        
 45          */                                       
 46 #define NR_FIX_BTMAPS           (SZ_256K / PAG    
 47 #define FIX_BTMAPS_SLOTS        7                 
 48 #define TOTAL_FIX_BTMAPS        (NR_FIX_BTMAPS    
 49                                                   
 50         FIX_BTMAP_END = __end_of_permanent_fix    
 51         FIX_BTMAP_BEGIN = FIX_BTMAP_END + TOTA    
 52                                                   
 53         __end_of_fixed_addresses                  
 54 };                                                
 55                                                   
 56 #define __early_set_fixmap      __set_fixmap      
 57                                                   
 58 #define __late_set_fixmap       __set_fixmap      
 59 #define __late_clear_fixmap(idx) __set_fixmap(    
 60                                                   
 61 extern void __set_fixmap(enum fixed_addresses     
 62                          phys_addr_t phys, pgp    
 63                                                   
 64 #include <asm-generic/fixmap.h>                   
 65                                                   
 66 #endif /* CONFIG_MMU */                           
 67 #endif /* _ASM_RISCV_FIXMAP_H */                  
 68                                                   

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