~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/tile/include/asm/highmem.h

Version: ~ [ linux-5.16 ] ~ [ linux-5.15.13 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.90 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.170 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.224 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.261 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.296 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.298 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * Copyright (C) 1999 Gerhard Wichert, Siemens AG
  3  *                   Gerhard.Wichert@pdb.siemens.de
  4  * Copyright 2010 Tilera Corporation. All Rights Reserved.
  5  *
  6  *   This program is free software; you can redistribute it and/or
  7  *   modify it under the terms of the GNU General Public License
  8  *   as published by the Free Software Foundation, version 2.
  9  *
 10  *   This program is distributed in the hope that it will be useful, but
 11  *   WITHOUT ANY WARRANTY; without even the implied warranty of
 12  *   MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
 13  *   NON INFRINGEMENT.  See the GNU General Public License for
 14  *   more details.
 15  *
 16  * Used in CONFIG_HIGHMEM systems for memory pages which
 17  * are not addressable by direct kernel virtual addresses.
 18  *
 19  */
 20 
 21 #ifndef _ASM_TILE_HIGHMEM_H
 22 #define _ASM_TILE_HIGHMEM_H
 23 
 24 #include <linux/interrupt.h>
 25 #include <linux/threads.h>
 26 #include <asm/tlbflush.h>
 27 #include <asm/homecache.h>
 28 
 29 /* declarations for highmem.c */
 30 extern unsigned long highstart_pfn, highend_pfn;
 31 
 32 extern pte_t *pkmap_page_table;
 33 
 34 /*
 35  * Ordering is:
 36  *
 37  * FIXADDR_TOP
 38  *                      fixed_addresses
 39  * FIXADDR_START
 40  *                      temp fixed addresses
 41  * FIXADDR_BOOT_START
 42  *                      Persistent kmap area
 43  * PKMAP_BASE
 44  * VMALLOC_END
 45  *                      Vmalloc area
 46  * VMALLOC_START
 47  * high_memory
 48  */
 49 #define LAST_PKMAP_MASK (LAST_PKMAP-1)
 50 #define PKMAP_NR(virt)  ((virt-PKMAP_BASE) >> PAGE_SHIFT)
 51 #define PKMAP_ADDR(nr)  (PKMAP_BASE + ((nr) << PAGE_SHIFT))
 52 
 53 void *kmap_high(struct page *page);
 54 void kunmap_high(struct page *page);
 55 void *kmap(struct page *page);
 56 void kunmap(struct page *page);
 57 void *kmap_fix_kpte(struct page *page, int finished);
 58 
 59 /* This macro is used only in map_new_virtual() to map "page". */
 60 #define kmap_prot page_to_kpgprot(page)
 61 
 62 void *kmap_atomic(struct page *page);
 63 void __kunmap_atomic(void *kvaddr);
 64 void *kmap_atomic_pfn(unsigned long pfn);
 65 void *kmap_atomic_prot_pfn(unsigned long pfn, pgprot_t prot);
 66 struct page *kmap_atomic_to_page(void *ptr);
 67 void *kmap_atomic_prot(struct page *page, pgprot_t prot);
 68 void kmap_atomic_fix_kpte(struct page *page, int finished);
 69 
 70 #define flush_cache_kmaps()     do { } while (0)
 71 
 72 #endif /* _ASM_TILE_HIGHMEM_H */
 73 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp