arm64: dts: Revert "specify console via command line"
[linux/fpc-iii.git] / arch / m68k / include / asm / page.h
blob05e1e1e77a9a76e4c1771e8a7bb60fb57d7317cc
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _M68K_PAGE_H
3 #define _M68K_PAGE_H
5 #include <linux/const.h>
6 #include <asm/setup.h>
7 #include <asm/page_offset.h>
9 /* PAGE_SHIFT determines the page size */
10 #if defined(CONFIG_SUN3) || defined(CONFIG_COLDFIRE)
11 #define PAGE_SHIFT 13
12 #else
13 #define PAGE_SHIFT 12
14 #endif
15 #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
16 #define PAGE_MASK (~(PAGE_SIZE-1))
17 #define PAGE_OFFSET (PAGE_OFFSET_RAW)
19 #ifndef __ASSEMBLY__
22 * These are used to make use of C type-checking..
24 #if !defined(CONFIG_MMU) || CONFIG_PGTABLE_LEVELS == 3
25 typedef struct { unsigned long pmd[16]; } pmd_t;
26 #define pmd_val(x) ((&x)->pmd[0])
27 #define __pmd(x) ((pmd_t) { { (x) }, })
28 #endif
30 typedef struct { unsigned long pte; } pte_t;
31 typedef struct { unsigned long pgd; } pgd_t;
32 typedef struct { unsigned long pgprot; } pgprot_t;
33 typedef struct page *pgtable_t;
35 #define pte_val(x) ((x).pte)
36 #define pgd_val(x) ((x).pgd)
37 #define pgprot_val(x) ((x).pgprot)
39 #define __pte(x) ((pte_t) { (x) } )
40 #define __pgd(x) ((pgd_t) { (x) } )
41 #define __pgprot(x) ((pgprot_t) { (x) } )
43 extern unsigned long _rambase;
44 extern unsigned long _ramstart;
45 extern unsigned long _ramend;
47 #endif /* !__ASSEMBLY__ */
49 #ifdef CONFIG_MMU
50 #include <asm/page_mm.h>
51 #else
52 #include <asm/page_no.h>
53 #endif
55 #define __phys_to_pfn(paddr) ((unsigned long)((paddr) >> PAGE_SHIFT))
56 #define __pfn_to_phys(pfn) PFN_PHYS(pfn)
58 #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
59 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
61 #include <asm-generic/getorder.h>
63 #endif /* _M68K_PAGE_H */