]> Joshua Wise's Git repositories - netwatch.git/blob - net/etherboot-compat.h
Merge nyus.joshuawise.com:/storage/git/netwatch
[netwatch.git] / net / etherboot-compat.h
1 #ifndef _ETHERBOOT_COMPAT_H
2 #define _ETHERBOOT_COMPAT_H
3
4 #include <paging.h>
5
6 #define ETH_ALEN        6
7
8 struct dev {
9         void (*disable) (struct dev *dev);
10 };
11
12 struct nic {
13         char * packet;
14         int packetlen;
15
16         unsigned int ioaddr;
17         unsigned int irqno;
18
19         int (*poll) (struct nic *nic, int retrieve);
20         void (*transmit) (const char *dest_addr, unsigned int proto, unsigned int size, const char *pkt);
21 };
22
23 #define virt_to_bus(x) memory_v2p((void *)(x))
24
25 #endif
This page took 0.023399 seconds and 4 git commands to generate.