blob: 2a7b3211ee7a9b5c19eee08e1ef7bb451fc6694f [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-or-later */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002#ifndef _ASM_X86_IOMAP_H
3#define _ASM_X86_IOMAP_H
4
5/*
6 * Copyright © 2008 Ingo Molnar
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00007 */
8
9#include <linux/fs.h>
10#include <linux/mm.h>
11#include <linux/uaccess.h>
12#include <asm/cacheflush.h>
13#include <asm/pgtable.h>
14#include <asm/tlbflush.h>
15
16void __iomem *
17iomap_atomic_prot_pfn(unsigned long pfn, pgprot_t prot);
18
19void
20iounmap_atomic(void __iomem *kvaddr);
21
22int
23iomap_create_wc(resource_size_t base, unsigned long size, pgprot_t *prot);
24
25void
26iomap_free(resource_size_t base, unsigned long size);
27
28#endif /* _ASM_X86_IOMAP_H */