]>
Commit | Line | Data |
---|---|---|
1 | #ifndef _ETHERBOOT_COMPAT_H | |
2 | #define _ETHERBOOT_COMPAT_H | |
3 | ||
4 | #include <paging.h> | |
5 | #include "lwip/pbuf.h" | |
6 | ||
7 | #define ETH_ALEN 6 | |
8 | ||
9 | struct dev { | |
10 | void (*disable) (struct dev *dev); | |
11 | }; | |
12 | ||
13 | struct nic { | |
14 | char * packet; | |
15 | int packetlen; | |
16 | ||
17 | unsigned int ioaddr; | |
18 | unsigned int irqno; | |
19 | ||
20 | unsigned char hwaddr[6]; | |
21 | ||
22 | int (*poll) (struct nic *nic, int retrieve); | |
23 | void (*transmit) (struct pbuf *p); | |
24 | }; | |
25 | ||
26 | #define virt_to_bus(x) memory_v2p((void *)(x)) | |
27 | ||
28 | #endif |