Automatically updated with the program
authorMichael Brown <mcb30@etherboot.org>
Thu, 21 Apr 2005 19:20:39 +0000 (19:20 +0000)
committerMichael Brown <mcb30@etherboot.org>
Thu, 21 Apr 2005 19:20:39 +0000 (19:20 +0000)
commit614c39a8a40a32146793bd25906964659d90f95b
tree9acc979cce4658905d1bffd26d03058435c5d4c5
parentcfe3a663af0dc133b8f9a1652d0820160889d6ea
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;
26 files changed:
src/drivers/net/3c515.c
src/drivers/net/3c595.c
src/drivers/net/3c90x.c
src/drivers/net/davicom.c
src/drivers/net/depca.c
src/drivers/net/dmfe.c
src/drivers/net/e1000.c
src/drivers/net/eepro.c
src/drivers/net/eepro100.c
src/drivers/net/epic100.c
src/drivers/net/forcedeth.c
src/drivers/net/mtd80x.c
src/drivers/net/natsemi.c
src/drivers/net/ns83820.c
src/drivers/net/pcnet32.c
src/drivers/net/r8169.c
src/drivers/net/rtl8139.c
src/drivers/net/sis900.c
src/drivers/net/skel.c
src/drivers/net/smc9000.c
src/drivers/net/sundance.c
src/drivers/net/tg3.c
src/drivers/net/tlan.c
src/drivers/net/tulip.c
src/drivers/net/via-rhine.c
src/drivers/net/w89c840.c