]> Joshua Wise's Git repositories - netwatch.git/blame - net/etherboot-compat.h
p2v and v2p, in a manner of type A...
[netwatch.git] / net / etherboot-compat.h
CommitLineData
42125f27
JP
1#ifndef _ETHERBOOT_COMPAT_H
2#define _ETHERBOOT_COMPAT_H
3
68beefa8
JW
4#include <paging.h>
5
748534f4
JP
6#define ETH_ALEN 6
7
8struct dev {
9 void (*disable) (struct dev *dev);
10};
11
12struct 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
68beefa8 23#define virt_to_bus(x) memory_v2p((void *)(x))
42125f27
JP
24
25#endif
This page took 0.024981 seconds and 4 git commands to generate.