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

TOMOYO Linux Cross Reference
Linux/include/linux/mtd/xip.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 /include/linux/mtd/xip.h (Version linux-6.12-rc7) and /include/linux/mtd/xip.h (Version linux-2.6.0)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 
  2 /*                                                
  3  * MTD primitives for XIP support                 
  4  *                                                
  5  * Author:      Nicolas Pitre                     
  6  * Created:     Nov 2, 2004                       
  7  * Copyright:   (C) 2004 MontaVista Software,     
  8  *                                                
  9  * This XIP support for MTD has been loosely i    
 10  * by an earlier patch authored by David Woodh    
 11  */                                               
 12                                                   
 13 #ifndef __LINUX_MTD_XIP_H__                       
 14 #define __LINUX_MTD_XIP_H__                       
 15                                                   
 16                                                   
 17 #ifdef CONFIG_MTD_XIP                             
 18                                                   
 19 /*                                                
 20  * We really don't want gcc to guess anything.    
 21  * We absolutely _need_ proper inlining.          
 22  */                                               
 23 #include <linux/compiler.h>                       
 24                                                   
 25 /*                                                
 26  * Function that are modifying the flash state    
 27  * obviously not be running from flash.  The _    
 28  * those functions so they get relocated to ra    
 29  */                                               
 30 #ifdef CONFIG_XIP_KERNEL                          
 31 #define __xipram noinline __section(".xiptext"    
 32 #endif                                            
 33                                                   
 34 /*                                                
 35  * Each architecture has to provide the follow    
 36  * the hardware directly and not rely on any o    
 37  * won't be available when used (flash not in     
 38  *                                                
 39  * xip_irqpending()                               
 40  *                                                
 41  *      return non zero when any hardware inte    
 42  *                                                
 43  * xip_currtime()                                 
 44  *                                                
 45  *      return a platform specific time refere    
 46  *      xip_elapsed_since().                      
 47  *                                                
 48  * xip_elapsed_since(x)                           
 49  *                                                
 50  *      return in usecs the elapsed timebetwee    
 51  *      returned by xip_currtime().               
 52  *                                                
 53  *      note 1: conversion to usec can be appr    
 54  *              returned value is <= the real     
 55  *      note 2: this should be able to cope wi    
 56  *              overflowing.                      
 57  *                                                
 58  * xip_iprefetch()                                
 59  *                                                
 60  *      Macro to fill instruction prefetch        
 61  *      e.g. a series of nops:  asm volatile (    
 62  */                                               
 63                                                   
 64 #include <asm/mtd-xip.h>                          
 65                                                   
 66 #ifndef xip_irqpending                            
 67                                                   
 68 #warning "missing IRQ and timer primitives for    
 69 #warning "some of the XIP MTD support code wil    
 70 #warning "your system will therefore be unresp    
 71                                                   
 72 #define xip_irqpending()        (0)               
 73 #define xip_currtime()          (0)               
 74 #define xip_elapsed_since(x)    (0)               
 75                                                   
 76 #endif                                            
 77                                                   
 78 #ifndef xip_iprefetch                             
 79 #define xip_iprefetch()         do { } while (    
 80 #endif                                            
 81                                                   
 82 /*                                                
 83  * xip_cpu_idle() is used when waiting for a d    
 84  * the system timer tick period.  This should     
 85  * to save power and to be woken up only when     
 86  * This should not rely upon standard kernel c    
 87  */                                               
 88 #ifndef xip_cpu_idle                              
 89 #define xip_cpu_idle()  do { } while (0)          
 90 #endif                                            
 91                                                   
 92 #endif /* CONFIG_MTD_XIP */                       
 93                                                   
 94 #ifndef __xipram                                  
 95 #define __xipram                                  
 96 #endif                                            
 97                                                   
 98 #endif /* __LINUX_MTD_XIP_H__ */                  
 99                                                   

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