]> Joshua Wise's Git repositories - netwatch.git/blob - net/etherboot-compat.h
Move elfload into tools/
[netwatch.git] / net / etherboot-compat.h
1 /* etherboot-compat.h
2  * EtherBoot driver compatibility routines
3  * NetWatch system management mode administration console
4  *
5  * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
6  * This program is free software; you can redistribute and/or modify it under
7  * the terms found in the file LICENSE in the root of this source tree.
8  *
9  */
10
11
12 #ifndef _ETHERBOOT_COMPAT_H
13 #define _ETHERBOOT_COMPAT_H
14
15 #include <paging.h>
16 #include "lwip/pbuf.h"
17
18 #define ETH_ALEN        6
19
20 struct dev {
21         void (*disable) (struct dev *dev);
22 };
23
24 struct nic {
25         char * packet;
26         int packetlen;
27
28         unsigned int ioaddr;
29         unsigned int irqno;
30         
31         unsigned char hwaddr[6];
32
33         int (*recv) (struct nic *nic);
34         void (*transmit) (struct nic *nic, struct pbuf *p);
35 };
36
37 #define virt_to_bus(x) memory_v2p((void *)(x))
38
39 #endif
This page took 0.024528 seconds and 4 git commands to generate.