page.h (10bd3808dfd067d6d6c941cc6e1b13be165f6a70) page.h (f281b5d50c87ecca108dcbf8f791bd8923fde3de)
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

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

299typedef struct { pte_t pte; unsigned long hidx; } real_pte_t;
300#else
301typedef struct { pte_t pte; } real_pte_t;
302#endif
303
304/* PMD level */
305#ifdef CONFIG_PPC64
306typedef struct { unsigned long pmd; } pmd_t;
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

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

299typedef struct { pte_t pte; unsigned long hidx; } real_pte_t;
300#else
301typedef struct { pte_t pte; } real_pte_t;
302#endif
303
304/* PMD level */
305#ifdef CONFIG_PPC64
306typedef struct { unsigned long pmd; } pmd_t;
307#define pmd_val(x) ((x).pmd)
308#define __pmd(x) ((pmd_t) { (x) })
307#define __pmd(x) ((pmd_t) { (x) })
308static inline unsigned long pmd_val(pmd_t x)
309{
310 return x.pmd;
311}
309
310/* PUD level exusts only on 4k pages */
311#ifndef CONFIG_PPC_64K_PAGES
312typedef struct { unsigned long pud; } pud_t;
312
313/* PUD level exusts only on 4k pages */
314#ifndef CONFIG_PPC_64K_PAGES
315typedef struct { unsigned long pud; } pud_t;
313#define pud_val(x) ((x).pud)
314#define __pud(x) ((pud_t) { (x) })
316#define __pud(x) ((pud_t) { (x) })
317static inline unsigned long pud_val(pud_t x)
318{
319 return x.pud;
320}
315#endif /* !CONFIG_PPC_64K_PAGES */
316#endif /* CONFIG_PPC64 */
317
318/* PGD level */
319typedef struct { unsigned long pgd; } pgd_t;
321#endif /* !CONFIG_PPC_64K_PAGES */
322#endif /* CONFIG_PPC64 */
323
324/* PGD level */
325typedef struct { unsigned long pgd; } pgd_t;
320#define pgd_val(x) ((x).pgd)
321#define __pgd(x) ((pgd_t) { (x) })
326#define __pgd(x) ((pgd_t) { (x) })
327static inline unsigned long pgd_val(pgd_t x)
328{
329 return x.pgd;
330}
322
323/* Page protection bits */
324typedef struct { unsigned long pgprot; } pgprot_t;
325#define pgprot_val(x) ((x).pgprot)
326#define __pgprot(x) ((pgprot_t) { (x) })
327
328#else
329

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

342typedef struct { pte_t pte; unsigned long hidx; } real_pte_t;
343#else
344typedef pte_t real_pte_t;
345#endif
346
347
348#ifdef CONFIG_PPC64
349typedef unsigned long pmd_t;
331
332/* Page protection bits */
333typedef struct { unsigned long pgprot; } pgprot_t;
334#define pgprot_val(x) ((x).pgprot)
335#define __pgprot(x) ((pgprot_t) { (x) })
336
337#else
338

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

351typedef struct { pte_t pte; unsigned long hidx; } real_pte_t;
352#else
353typedef pte_t real_pte_t;
354#endif
355
356
357#ifdef CONFIG_PPC64
358typedef unsigned long pmd_t;
350#define pmd_val(x) (x)
351#define __pmd(x) (x)
359#define __pmd(x) (x)
360static inline unsigned long pmd_val(pmd_t pmd)
361{
362 return pmd;
363}
352
353#ifndef CONFIG_PPC_64K_PAGES
354typedef unsigned long pud_t;
364
365#ifndef CONFIG_PPC_64K_PAGES
366typedef unsigned long pud_t;
355#define pud_val(x) (x)
356#define __pud(x) (x)
367#define __pud(x) (x)
368static inline unsigned long pud_val(pud_t pud)
369{
370 return pud;
371}
357#endif /* !CONFIG_PPC_64K_PAGES */
358#endif /* CONFIG_PPC64 */
359
360typedef unsigned long pgd_t;
372#endif /* !CONFIG_PPC_64K_PAGES */
373#endif /* CONFIG_PPC64 */
374
375typedef unsigned long pgd_t;
361#define pgd_val(x) (x)
362#define pgprot_val(x) (x)
376#define __pgd(x) (x)
377static inline unsigned long pgd_val(pgd_t pgd)
378{
379 return pgd;
380}
363
364typedef unsigned long pgprot_t;
381
382typedef unsigned long pgprot_t;
365#define __pgd(x) (x)
383#define pgprot_val(x) (x)
366#define __pgprot(x) (x)
367
368#endif
369
370typedef struct { signed long pd; } hugepd_t;
371
372#ifdef CONFIG_HUGETLB_PAGE
373#ifdef CONFIG_PPC_BOOK3S_64

--- 63 unchanged lines hidden ---
384#define __pgprot(x) (x)
385
386#endif
387
388typedef struct { signed long pd; } hugepd_t;
389
390#ifdef CONFIG_HUGETLB_PAGE
391#ifdef CONFIG_PPC_BOOK3S_64

--- 63 unchanged lines hidden ---