]> Joshua Wise's Git repositories - netwatch.git/blob - net/etherboot-compat.h
0b121a3a0ea0011feeed1b063e01494799c9c63c
[netwatch.git] / net / etherboot-compat.h
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         struct pbuf * (*recv) (struct nic *nic);
23         void (*transmit) (struct pbuf *p);
24 };
25
26 #define virt_to_bus(x) memory_v2p((void *)(x))
27
28 #endif
This page took 0.020234 seconds and 2 git commands to generate.