mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
157e118b55
Convert X86 to the generic kmap atomic implementation and make the iomap_atomic() naming convention consistent while at it. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20201103095857.375127260@linutronix.de
29 lines
681 B
C
29 lines
681 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
#ifndef _ASM_X86_IOMAP_H
|
|
#define _ASM_X86_IOMAP_H
|
|
|
|
/*
|
|
* Copyright © 2008 Ingo Molnar
|
|
*/
|
|
|
|
#include <linux/fs.h>
|
|
#include <linux/mm.h>
|
|
#include <linux/uaccess.h>
|
|
#include <linux/highmem.h>
|
|
#include <asm/cacheflush.h>
|
|
#include <asm/tlbflush.h>
|
|
|
|
void __iomem *iomap_atomic_pfn_prot(unsigned long pfn, pgprot_t prot);
|
|
|
|
static inline void iounmap_atomic(void __iomem *vaddr)
|
|
{
|
|
kunmap_local_indexed((void __force *)vaddr);
|
|
pagefault_enable();
|
|
preempt_enable();
|
|
}
|
|
|
|
int iomap_create_wc(resource_size_t base, unsigned long size, pgprot_t *prot);
|
|
|
|
void iomap_free(resource_size_t base, unsigned long size);
|
|
|
|
#endif /* _ASM_X86_IOMAP_H */
|