page.h (f26e8817b235d8764363bffcc9cbfc61867371f2) page.h (20717e1ff52672e31f9399c45d88936bbbc7e175)
1#ifndef _ASM_POWERPC_PAGE_H
2#define _ASM_POWERPC_PAGE_H
3
4/*
5 * Copyright (C) 2001,2005 IBM Corporation.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

--- 280 unchanged lines hidden (view full) ---

289#ifndef __ASSEMBLY__
290
291#ifdef CONFIG_PPC_BOOK3S_64
292#include <asm/pgtable-be-types.h>
293#else
294#include <asm/pgtable-types.h>
295#endif
296
1#ifndef _ASM_POWERPC_PAGE_H
2#define _ASM_POWERPC_PAGE_H
3
4/*
5 * Copyright (C) 2001,2005 IBM Corporation.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

--- 280 unchanged lines hidden (view full) ---

289#ifndef __ASSEMBLY__
290
291#ifdef CONFIG_PPC_BOOK3S_64
292#include <asm/pgtable-be-types.h>
293#else
294#include <asm/pgtable-types.h>
295#endif
296
297typedef struct { signed long pd; } hugepd_t;
298
299#ifndef CONFIG_HUGETLB_PAGE
300#define is_hugepd(pdep) (0)
301#define pgd_huge(pgd) (0)
302#endif /* CONFIG_HUGETLB_PAGE */
303
297
298#ifndef CONFIG_HUGETLB_PAGE
299#define is_hugepd(pdep) (0)
300#define pgd_huge(pgd) (0)
301#endif /* CONFIG_HUGETLB_PAGE */
302
304#define __hugepd(x) ((hugepd_t) { (x) })
305
306struct page;
307extern void clear_user_page(void *page, unsigned long vaddr, struct page *pg);
308extern void copy_user_page(void *to, void *from, unsigned long vaddr,
309 struct page *p);
310extern int page_is_ram(unsigned long pfn);
311extern int devmem_is_allowed(unsigned long pfn);
312
313#ifdef CONFIG_PPC_SMLPAR

--- 24 unchanged lines hidden ---
303struct page;
304extern void clear_user_page(void *page, unsigned long vaddr, struct page *pg);
305extern void copy_user_page(void *to, void *from, unsigned long vaddr,
306 struct page *p);
307extern int page_is_ram(unsigned long pfn);
308extern int devmem_is_allowed(unsigned long pfn);
309
310#ifdef CONFIG_PPC_SMLPAR

--- 24 unchanged lines hidden ---