Added a very quick and dirty compatibility layer, to allow

not-yet-updated drivers to at least function.
This commit is contained in:
Michael Brown
2006-06-05 15:45:21 +00:00
parent c3e41e6fd1
commit 286bf68faf
17 changed files with 144 additions and 48 deletions

View File

@@ -388,6 +388,7 @@ struct type_driver nic_driver = {
.load = nic_load,
};
#if 0
/* Careful. We need an aligned buffer to avoid problems on machines
* that care about alignment. To trivally align the ethernet data
* (the ip hdr and arp requests) we offset the packet by 2 bytes.
@@ -400,17 +401,9 @@ struct nic nic = {
.node_addr = arptable[ARP_CLIENT].node,
.packet = packet + ETH_DATA_ALIGN,
};
#endif
int dummy_connect ( struct nic *nic __unused ) {
return 1;
}
void dummy_irq ( struct nic *nic __unused, irq_action_t irq_action __unused ) {
return;
}
/**************************************************************************
DEFAULT_NETMASK - Return default netmask for IP address
**************************************************************************/