]> Joshua Wise's Git repositories - netwatch.git/blame - net/etherboot-compat.h
Add a small serial driver
[netwatch.git] / net / etherboot-compat.h
CommitLineData
42125f27
JP
1#ifndef _ETHERBOOT_COMPAT_H
2#define _ETHERBOOT_COMPAT_H
3
748534f4
JP
4#define ETH_ALEN 6
5
6struct dev {
7 void (*disable) (struct dev *dev);
8};
9
10struct nic {
11 char * packet;
12 int packetlen;
13
14 unsigned int ioaddr;
15 unsigned int irqno;
16
17 int (*poll) (struct nic *nic, int retrieve);
18 void (*transmit) (const char *dest_addr, unsigned int proto, unsigned int size, const char *pkt);
19};
20
21#define virt_to_bus(x) ((unsigned long)x)
42125f27
JP
22
23#endif
This page took 0.020717 seconds and 4 git commands to generate.