]> Joshua Wise's Git repositories - netwatch.git/blobdiff - net/etherboot-compat.h
p2v and v2p, in a manner of type A...
[netwatch.git] / net / etherboot-compat.h
index 6c9645817bb1893ff8e55ad59357a3b0a9631d74..b72885bce707f78eb0f3d2b48ceef2dad492ce13 100644 (file)
@@ -1,3 +1,8 @@
+#ifndef _ETHERBOOT_COMPAT_H
+#define _ETHERBOOT_COMPAT_H
+
+#include <paging.h>
+
 #define ETH_ALEN       6
 
 struct dev {
@@ -15,4 +20,6 @@ struct nic {
        void (*transmit) (const char *dest_addr, unsigned int proto, unsigned int size, const char *pkt);
 };
 
-#define virt_to_bus(x) ((unsigned long)x)
+#define virt_to_bus(x) memory_v2p((void *)(x))
+
+#endif
This page took 0.02237 seconds and 4 git commands to generate.