]> 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 2d8d98fb47efb3ad40588810a44988a29bb75c1a..b72885bce707f78eb0f3d2b48ceef2dad492ce13 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _ETHERBOOT_COMPAT_H
 #define _ETHERBOOT_COMPAT_H
 
+#include <paging.h>
+
 #define ETH_ALEN       6
 
 struct dev {
@@ -18,6 +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.023389 seconds and 4 git commands to generate.