]> Joshua Wise's Git repositories - netwatch.git/blobdiff - net/etherboot-compat.h
add net
[netwatch.git] / net / etherboot-compat.h
diff --git a/net/etherboot-compat.h b/net/etherboot-compat.h
new file mode 100644 (file)
index 0000000..6c96458
--- /dev/null
@@ -0,0 +1,18 @@
+#define ETH_ALEN       6
+
+struct dev {
+       void (*disable) (struct dev *dev);
+};
+
+struct nic {
+       char * packet;
+       int packetlen;
+
+       unsigned int ioaddr;
+       unsigned int irqno;
+
+       int (*poll) (struct nic *nic, int retrieve);
+       void (*transmit) (const char *dest_addr, unsigned int proto, unsigned int size, const char *pkt);
+};
+
+#define virt_to_bus(x) ((unsigned long)x)
This page took 0.022109 seconds and 4 git commands to generate.