diff options
| author | Michael Brown | 2006-06-05 17:45:21 +0200 |
|---|---|---|
| committer | Michael Brown | 2006-06-05 17:45:21 +0200 |
| commit | 286bf68faf8c712c1d5a9fd5dbedbcf142fb8cb5 (patch) | |
| tree | ec6b5bc6cb4c839f7e8c428f5d3e9fa6e48a9231 /src/core | |
| parent | Added soon-to-be-requisite missing include. (diff) | |
| download | ipxe-286bf68faf8c712c1d5a9fd5dbedbcf142fb8cb5.tar.gz ipxe-286bf68faf8c712c1d5a9fd5dbedbcf142fb8cb5.tar.xz ipxe-286bf68faf8c712c1d5a9fd5dbedbcf142fb8cb5.zip | |
Added a very quick and dirty compatibility layer, to allow
not-yet-updated drivers to at least function.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/nic.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/core/nic.c b/src/core/nic.c index 64e87f614..0382ced2d 100644 --- a/src/core/nic.c +++ b/src/core/nic.c @@ -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 **************************************************************************/ |
