mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 15:02:25 +00:00
lx_emul: add ioremap_cache/_wc to shadow/asm/io.h
used by intel_fb for write combined allocation Issue #4450
This commit is contained in:
parent
8dbcda9943
commit
6f64917e8f
@ -7,9 +7,13 @@
|
|||||||
#ifndef _ASM_X86_IO_H
|
#ifndef _ASM_X86_IO_H
|
||||||
#define _ASM_X86_IO_H
|
#define _ASM_X86_IO_H
|
||||||
|
|
||||||
|
#define ARCH_HAS_IOREMAP_WC
|
||||||
|
#define ARCH_HAS_IOREMAP_WT
|
||||||
|
|
||||||
#include <linux/string.h>
|
#include <linux/string.h>
|
||||||
#include <linux/compiler.h>
|
#include <linux/compiler.h>
|
||||||
#include <asm/page.h>
|
#include <asm/page.h>
|
||||||
|
#include <asm/early_ioremap.h>
|
||||||
#include <asm/pgtable_types.h>
|
#include <asm/pgtable_types.h>
|
||||||
|
|
||||||
#include <lx_emul/io_port.h>
|
#include <lx_emul/io_port.h>
|
||||||
@ -19,6 +23,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void __iomem *ioremap(resource_size_t offset, unsigned long size);
|
void __iomem *ioremap(resource_size_t offset, unsigned long size);
|
||||||
|
void __iomem *ioremap_cache(resource_size_t offset, unsigned long size);
|
||||||
void iounmap(volatile void __iomem *addr);
|
void iounmap(volatile void __iomem *addr);
|
||||||
|
|
||||||
#define inb lx_emul_io_port_inb
|
#define inb lx_emul_io_port_inb
|
||||||
@ -29,6 +34,9 @@ void iounmap(volatile void __iomem *addr);
|
|||||||
#define outw lx_emul_io_port_outw
|
#define outw lx_emul_io_port_outw
|
||||||
#define outl lx_emul_io_port_outl
|
#define outl lx_emul_io_port_outl
|
||||||
|
|
||||||
|
void __iomem *ioremap_wc(resource_size_t offset, unsigned long size);
|
||||||
|
#define ioremap_wc ioremap_wc
|
||||||
|
|
||||||
#include <asm-generic/io.h>
|
#include <asm-generic/io.h>
|
||||||
|
|
||||||
#endif /* _ASM_X86_IO_H */
|
#endif /* _ASM_X86_IO_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user