]> Git Repo - linux.git/blame - include/asm-powerpc/page_32.h
kset: convert struct bus_device->drivers to use kset_create
[linux.git] / include / asm-powerpc / page_32.h
CommitLineData
5cd16ee9
ME
1#ifndef _ASM_POWERPC_PAGE_32_H
2#define _ASM_POWERPC_PAGE_32_H
88ced031 3#ifdef __KERNEL__
5cd16ee9
ME
4
5#define VM_DATA_DEFAULT_FLAGS VM_DATA_DEFAULT_FLAGS32
6
493f25ef
PM
7#define PPC_MEMSTART 0
8
52142e75
BH
9#ifdef CONFIG_NOT_COHERENT_CACHE
10#define ARCH_KMALLOC_MINALIGN L1_CACHE_BYTES
11#endif
12
5cd16ee9
ME
13#ifndef __ASSEMBLY__
14/*
15 * The basic type of a PTE - 64 bits for those CPUs with > 32 bit
16 * physical addressing. For now this just the IBM PPC440.
17 */
18#ifdef CONFIG_PTE_64BIT
19typedef unsigned long long pte_basic_t;
20#define PTE_SHIFT (PAGE_SHIFT - 3) /* 512 ptes per page */
5cd16ee9
ME
21#else
22typedef unsigned long pte_basic_t;
23#define PTE_SHIFT (PAGE_SHIFT - 2) /* 1024 ptes per page */
5cd16ee9
ME
24#endif
25
26struct page;
27extern void clear_pages(void *page, int order);
28static inline void clear_page(void *page) { clear_pages(page, 0); }
29extern void copy_page(void *to, void *from);
30
ef55d53c 31#include <asm-generic/page.h>
5cd16ee9
ME
32
33#endif /* __ASSEMBLY__ */
34
88ced031 35#endif /* __KERNEL__ */
5cd16ee9 36#endif /* _ASM_POWERPC_PAGE_32_H */
This page took 0.280899 seconds and 4 git commands to generate.