aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/asm/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linuxkpi/common/include/asm/io.h')
-rw-r--r--sys/compat/linuxkpi/common/include/asm/io.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/sys/compat/linuxkpi/common/include/asm/io.h b/sys/compat/linuxkpi/common/include/asm/io.h
index 24d350f4743e..63d1c8f72f8e 100644
--- a/sys/compat/linuxkpi/common/include/asm/io.h
+++ b/sys/compat/linuxkpi/common/include/asm/io.h
@@ -25,12 +25,17 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * $FreeBSD$
*/
-#ifndef _ASM_IO_H_
-#define _ASM_IO_H_
+#ifndef _LINUXKPI_ASM_IO_H_
+#define _LINUXKPI_ASM_IO_H_
+
+#include <sys/param.h>
+
+#include <vm/vm.h>
+#include <vm/pmap.h>
#include <linux/io.h>
-#endif /* _ASM_IO_H_ */
+#define virt_to_phys(x) vtophys(x)
+
+#endif /* _LINUXKPI_ASM_IO_H_ */