mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 18:35:42 +01:00 
			
		
		
		
	Signed-off-by: Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by: Tom Rini <trini@ti.com>
		
			
				
	
	
		
			30 lines
		
	
	
		
			647 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			647 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* page.h:  Various defines and such for MMU operations on the Sparc for
 | |
|  *          the Linux kernel.
 | |
|  *
 | |
|  * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
 | |
|  * Copyright (C) 2007 Daniel Hellstrom (daniel@gaisler.com)
 | |
|  *
 | |
|  * SPDX-License-Identifier:	GPL-2.0+
 | |
|  */
 | |
| 
 | |
| #ifndef _SPARC_PAGE_H
 | |
| #define _SPARC_PAGE_H
 | |
| 
 | |
| #include <linux/config.h>
 | |
| #ifdef CONFIG_SUN4
 | |
| #define PAGE_SHIFT   13
 | |
| #else
 | |
| #define PAGE_SHIFT   12
 | |
| #endif
 | |
| 
 | |
| #ifndef __ASSEMBLY__
 | |
| /* I have my suspicions... -DaveM */
 | |
| #define PAGE_SIZE    (1UL << PAGE_SHIFT)
 | |
| #else
 | |
| #define PAGE_SIZE    (1 << PAGE_SHIFT)
 | |
| #endif
 | |
| 
 | |
| #define PAGE_MASK    (~(PAGE_SIZE-1))
 | |
| 
 | |
| #endif				/* _SPARC_PAGE_H */
 |