18 #ifndef _LINUX_IO_MAPPING_H
19 #define _LINUX_IO_MAPPING_H
21 #include <linux/types.h>
22 #include <linux/slab.h>
34 #ifdef CONFIG_HAVE_ATOMIC_IOMAP
51 static inline struct io_mapping *
54 struct io_mapping *iomap;
76 io_mapping_free(
struct io_mapping *
mapping)
84 io_mapping_map_atomic_wc(
struct io_mapping *
mapping,
90 BUG_ON(offset >= mapping->size);
91 phys_addr = mapping->base +
offset;
103 io_mapping_map_wc(
struct io_mapping *mapping,
unsigned long offset)
107 BUG_ON(offset >= mapping->size);
108 phys_addr = mapping->base +
offset;
127 static inline struct io_mapping *
134 io_mapping_free(
struct io_mapping *mapping)
141 io_mapping_map_atomic_wc(
struct io_mapping *mapping,
142 unsigned long offset)
156 io_mapping_map_wc(
struct io_mapping *mapping,
unsigned long offset)