david/ipxe
Archived
1
0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/drivers/net
Michael Brown 614c39a8a4 Automatically updated with the program
#!/usr/bin/perl -w -pi -0777

use strict;

( my $type ) = /find_(\w+?)_boot_device/ or die "Could not find type\n";

( my $disable ) = /\.disable\s*=\s*(\w+)/ or die "Could not locate disable\n";

s/(${disable}\s*\(\s*struct\s+nic\s+\*nic)(\s*\)\s*\{)(\s*)/${1}, struct ${type}_device \*${type} __unused${2}${3}nic_disable ( nic );${3}/s;

s/(${disable}\s*\(\s*struct\s+nic\s+\*nic)(\s*\)\s*;)/${1}, struct ${type}_device \*${type}${2}/g;

s/^\s*.disable\s*=\s*${disable}\s*,\s*?$//m;

s/(_probe\s*\(\s*)struct\s+dev\s+\*dev/${1}struct nic \*nic/g;

s/^\s*struct\s+nic\s+\*nic\s*=\s*nic_device\s*\(\s*dev\s*\)\s*;\s*?$//m;

s/^(\s*)(nic->(ioaddr|irqno)\s*=\s*${type})/${1}${type}_fill_nic ( nic, ${type} );\n${1}${2}/m;
2005-04-21 19:20:39 +00:00
..
3c5x9.c Split 3c509.c into 3c509.9 and 3c529.c, with shared code in 3c5x9.c. 2005-04-14 12:23:12 +00:00
3c90x.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
3c90x.txt Initial revision 2005-03-08 18:53:11 +00:00
3c509-eisa.c Split out EISA driver into a separate file, since 3c509s can only take 16K 2005-04-17 17:52:33 +00:00
3c509.c Split out EISA driver into a separate file, since 3c509s can only take 16K 2005-04-17 17:52:33 +00:00
3c509.h Split 3c509.c into 3c509.9 and 3c529.c, with shared code in 3c5x9.c. 2005-04-14 12:23:12 +00:00
3c515.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
3c515.txt Initial revision 2005-03-08 18:53:11 +00:00
3c529.c Updated to new device API. 2005-04-14 14:31:11 +00:00
3c595.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
3c595.h Initial revision 2005-03-08 18:53:11 +00:00
cs89x0.c Make isa_probe_addr a simple integer rather than a struct, to facilitate 2005-04-16 09:30:48 +00:00
cs89x0.h Initial revision 2005-03-08 18:53:11 +00:00
cs89x0.txt Initial revision 2005-03-08 18:53:11 +00:00
davicom.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
depca.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
dmfe.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
e1000_hw.h Initial revision 2005-03-08 18:53:11 +00:00
e1000.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
eepro100.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
eepro.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
epic100.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
epic100.h Initial revision 2005-03-08 18:53:11 +00:00
forcedeth.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
hfa384x.h Initial revision 2005-03-08 18:53:11 +00:00
mtd80x.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
natsemi.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
ns8390.c Don't even try to compile until the code is tidied up. 2005-04-15 16:50:36 +00:00
ns8390.h Initial revision 2005-03-08 18:53:11 +00:00
ns83820.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
p80211hdr.h Initial revision 2005-03-08 18:53:11 +00:00
pcnet32.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
pnic_api.h Initial revision 2005-03-08 18:53:11 +00:00
pnic.c Tweaked API to minimise changes to existing drivers even further. 2005-04-21 19:04:53 +00:00
prism2_pci.c Automatically modified by 2005-04-14 15:00:05 +00:00
prism2_plx.c Automatically modified by 2005-04-14 15:00:05 +00:00
prism2.c Finished by hand 2005-04-13 02:02:08 +00:00
r8169.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
rtl8139.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
sis900.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
sis900.h Initial revision 2005-03-08 18:53:11 +00:00
skel.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
smc9000.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
smc9000.h Initial revision 2005-03-08 18:53:11 +00:00
sundance.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
tg3.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
tg3.h Initial revision 2005-03-08 18:53:11 +00:00
tlan.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
tlan.h Initial revision 2005-03-08 18:53:11 +00:00
tulip.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
tulip.txt Initial revision 2005-03-08 18:53:11 +00:00
via-rhine.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
w89c840.c Automatically updated with the program 2005-04-21 19:20:39 +00:00
wlan_compat.h Initial revision 2005-03-08 18:53:11 +00:00