X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/720d0679adb8080f32a56546f60acb218ae9d62c..68beefa85564e151acd18e12733897a5201fe67e:/net/etherboot-compat.h diff --git a/net/etherboot-compat.h b/net/etherboot-compat.h index 2d8d98f..b72885b 100644 --- a/net/etherboot-compat.h +++ b/net/etherboot-compat.h @@ -1,6 +1,8 @@ #ifndef _ETHERBOOT_COMPAT_H #define _ETHERBOOT_COMPAT_H +#include + #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