]>
Commit | Line | Data |
---|---|---|
42125f27 JP |
1 | #ifndef _ETHERBOOT_COMPAT_H |
2 | #define _ETHERBOOT_COMPAT_H | |
3 | ||
68beefa8 | 4 | #include <paging.h> |
54d4b877 | 5 | #include "lwip/pbuf.h" |
68beefa8 | 6 | |
748534f4 JP |
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; | |
47c41031 JW |
19 | |
20 | unsigned char hwaddr[6]; | |
748534f4 JP |
21 | |
22 | int (*poll) (struct nic *nic, int retrieve); | |
54d4b877 | 23 | void (*transmit) (struct pbuf *p); |
748534f4 JP |
24 | }; |
25 | ||
68beefa8 | 26 | #define virt_to_bus(x) memory_v2p((void *)(x)) |
42125f27 JP |
27 | |
28 | #endif |