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