Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
devices
android_kernel_sony_msm8994
Commits
93a3203c
Commit
93a3203c
authored
Aug 07, 2021
by
threader
Committed by
Bernhard Thoben
Aug 09, 2021
Browse files
arch/kmap: clean-up after b365c5d17d7e
parent
fae7d1c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
arch/csky/include/asm/highmem.h
deleted
100644 → 0
View file @
fae7d1c5
/* SPDX-License-Identifier: GPL-2.0 */
// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
#ifndef __ASM_CSKY_HIGHMEM_H
#define __ASM_CSKY_HIGHMEM_H
#ifdef __KERNEL__
#include
<linux/init.h>
#include
<linux/interrupt.h>
#include
<linux/uaccess.h>
#include
<asm/kmap_types.h>
#include
<asm/cache.h>
/* undef for production */
#define HIGHMEM_DEBUG 1
/* declarations for highmem.c */
extern
unsigned
long
highstart_pfn
,
highend_pfn
;
extern
pte_t
*
pkmap_page_table
;
/*
* Right now we initialize only a single pte table. It can be extended
* easily, subsequent pte tables have to be allocated in one physical
* chunk of RAM.
*/
#define LAST_PKMAP 1024
#define LAST_PKMAP_MASK (LAST_PKMAP-1)
#define PKMAP_NR(virt) ((virt-PKMAP_BASE) >> PAGE_SHIFT)
#define PKMAP_ADDR(nr) (PKMAP_BASE + ((nr) << PAGE_SHIFT))
extern
void
kunmap_high
(
struct
page
*
page
);
#define ARCH_HAS_KMAP_FLUSH_TLB
extern
void
kmap_flush_tlb
(
unsigned
long
addr
);
extern
void
kunmap
(
struct
page
*
page
);
extern
void
*
kmap_atomic
(
struct
page
*
page
);
extern
void
__kunmap_atomic
(
void
*
kvaddr
);
extern
void
*
kmap_atomic_pfn
(
unsigned
long
pfn
);
extern
struct
page
*
kmap_atomic_to_page
(
void
*
ptr
);
#define flush_cache_kmaps() do {} while (0)
extern
void
kmap_init
(
void
);
#define kmap_prot PAGE_KERNEL
#endif
/* __KERNEL__ */
#endif
/* __ASM_CSKY_HIGHMEM_H */
arch/nds32/include/asm/highmem.h
deleted
100644 → 0
View file @
fae7d1c5
/* SPDX-License-Identifier: GPL-2.0 */
// Copyright (C) 2005-2017 Andes Technology Corporation
#ifndef _ASM_HIGHMEM_H
#define _ASM_HIGHMEM_H
#include
<asm/proc-fns.h>
#include
<asm/kmap_types.h>
#include
<asm/fixmap.h>
#include
<asm/pgtable.h>
/*
* Right now we initialize only a single pte table. It can be extended
* easily, subsequent pte tables have to be allocated in one physical
* chunk of RAM.
*/
/*
* Ordering is (from lower to higher memory addresses):
*
* high_memory
* Persistent kmap area
* PKMAP_BASE
* fixed_addresses
* FIXADDR_START
* FIXADDR_TOP
* Vmalloc area
* VMALLOC_START
* VMALLOC_END
*/
#define PKMAP_BASE ((FIXADDR_START - PGDIR_SIZE) & (PGDIR_MASK))
#define LAST_PKMAP PTRS_PER_PTE
#define LAST_PKMAP_MASK (LAST_PKMAP - 1)
#define PKMAP_NR(virt) (((virt) - (PKMAP_BASE)) >> PAGE_SHIFT)
#define PKMAP_ADDR(nr) (PKMAP_BASE + ((nr) << PAGE_SHIFT))
#define kmap_prot PAGE_KERNEL
static
inline
void
flush_cache_kmaps
(
void
)
{
cpu_dcache_wbinval_all
();
}
/* declarations for highmem.c */
extern
unsigned
long
highstart_pfn
,
highend_pfn
;
extern
pte_t
*
pkmap_page_table
;
extern
void
kunmap_high
(
struct
page
*
page
);
extern
void
kmap_init
(
void
);
/*
* The following functions are already defined by <linux/highmem.h>
* when CONFIG_HIGHMEM is not set.
*/
#ifdef CONFIG_HIGHMEM
extern
void
kunmap
(
struct
page
*
page
);
extern
void
*
kmap_atomic
(
struct
page
*
page
);
extern
void
__kunmap_atomic
(
void
*
kvaddr
);
extern
void
*
kmap_atomic_pfn
(
unsigned
long
pfn
);
extern
struct
page
*
kmap_atomic_to_page
(
void
*
ptr
);
#endif
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment