]> Joshua Wise's Git repositories - netwatch.git/blobdiff - net/etherboot-compat.h
We do not speak Pittsburgh here.
[netwatch.git] / net / etherboot-compat.h
index 6c9645817bb1893ff8e55ad59357a3b0a9631d74..e769ce8727232ee5dfa825ebef0c457644f32618 100644 (file)
@@ -1,3 +1,8 @@
+#ifndef _ETHERBOOT_COMPAT_H
+#define _ETHERBOOT_COMPAT_H
+
+#include <paging.h>
+
 #define ETH_ALEN       6
 
 struct dev {
@@ -10,9 +15,13 @@ struct nic {
 
        unsigned int ioaddr;
        unsigned int irqno;
+       
+       unsigned char hwaddr[6];
 
        int (*poll) (struct nic *nic, int retrieve);
-       void (*transmit) (const char *dest_addr, unsigned int proto, unsigned int size, const char *pkt);
+       void (*transmit) (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.023499 seconds and 4 git commands to generate.