2 * EtherBoot driver compatibility routines
3 * NetWatch system management mode administration console
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.
12 #ifndef _ETHERBOOT_COMPAT_H
13 #define _ETHERBOOT_COMPAT_H
16 #include "lwip/pbuf.h"
21 void (*disable) (struct dev *dev);
31 unsigned char hwaddr[6];
33 int (*recv) (struct nic *nic);
34 void (*transmit) (struct nic *nic, struct pbuf *p);
37 #define virt_to_bus(x) memory_v2p((void *)(x))