25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_ether.c,v 1.14 2006/06/15 17:29:38 debug Exp $ |
* $Id: dev_ether.c,v 1.15 2006/10/07 00:36:29 debug Exp $ |
29 |
* |
* |
30 |
* Basic "ethernet" network device. This is a simple test device which can |
* Basic "ethernet" network device. This is a simple test device which can |
31 |
* be used to send and receive packets to/from a simulated ethernet network. |
* be used to send and receive packets to/from a simulated ethernet network. |
59 |
}; |
}; |
60 |
|
|
61 |
|
|
62 |
/* |
DEVICE_TICK(ether) |
|
* dev_ether_tick(): |
|
|
*/ |
|
|
void dev_ether_tick(struct cpu *cpu, void *extra) |
|
63 |
{ |
{ |
64 |
struct ether_data *d = (struct ether_data *) extra; |
struct ether_data *d = (struct ether_data *) extra; |
65 |
int r = 0; |
int r = 0; |
77 |
} |
} |
78 |
|
|
79 |
|
|
|
/* |
|
|
* dev_ether_buf_access(): |
|
|
*/ |
|
80 |
DEVICE_ACCESS(ether_buf) |
DEVICE_ACCESS(ether_buf) |
81 |
{ |
{ |
82 |
struct ether_data *d = (struct ether_data *) extra; |
struct ether_data *d = (struct ether_data *) extra; |