Michael Brown
|
5ca20abf95
|
Place the call to adjust_pci_device() back in the individual drivers,
since we probably shouldn't be doing this to arbitrary devices during a
PCI bus scan...
|
2005-04-16 17:30:37 +00:00 |
|
Michael Brown
|
2c60617836
|
Automatically modified by
perl -pi -0777 -e 's/\s*?if\s*\(\s*!\s*find_pci_device.*?,\s*\&(\w+)\s*\)\s*\)\s*return\s*0;(.*BOOT_DRIVER\s*\(.*?,)(.*?\))/$2 find_pci_boot_device, $1,$3/sm' *.c
|
2005-04-14 15:00:05 +00:00 |
|
Michael Brown
|
963dbefb51
|
Automatically updated using
perl -pi -0777 -e 's/(_probe\s*\(\s*struct\s+dev.*?)(\s*\)\s*{.*?$)\s*struct pci_device.*?=\s*pci_device \( dev \);$/${1}, struct pci_device *pci${2}/ms' *.c
sis900 excluded from update
|
2005-04-14 14:44:33 +00:00 |
|
Michael Brown
|
44c7cc8c12
|
Standardised debug mechanism in place now.
|
2005-04-14 11:55:57 +00:00 |
|
Michael Brown
|
f39cc6d978
|
Finished by hand
|
2005-04-13 01:31:44 +00:00 |
|
Michael Brown
|
91e46ed588
|
Automatically updated using
perl -pi -0777 -e 's/^(\s*)dev->disable(\s*)=\s*(\w+)_disable;\s*nic->poll\s*=\s*(\w+);\s*nic->transmit\s*=\s*(\w+);\s*nic->irq\s*=\s*(\w+);/static struct nic_operations ${3}_operations;\nstatic struct nic_operations ${3}_operations = {\n\t.connect\t= dummy_connect,\n\t.poll\t\t= $4,\n\t.transmit\t= $5,\n\t.irq\t\t= $6,\n\t.disable\t= ${3}_disable,\n};${1}nic->nic_op\t= &${3}_operations;/msg' *.c
|
2005-04-13 00:02:40 +00:00 |
|
Michael Brown
|
d9c64c9422
|
Manual tweaks to get all drivers to follow the "disable, poll, transmit,
irq" pattern.
|
2005-04-12 23:47:52 +00:00 |
|
Michael Brown
|
c87ba23399
|
Automatically updated using
perl -pi -0777 -e 's/_disable\s*\(\s*struct dev \*dev\s*\)\s*{\s*struct nic \*nic.*?$/_disable ( struct nic *nic ) {/ms' *.c
perl -pi -0777 -e 's/_disable\s*\(\s*struct dev \*dev(\s*__unused)?\)\s*{/_disable ( struct nic *nic$1 ) {/ms' *.c
|
2005-04-12 23:31:37 +00:00 |
|
Michael Brown
|
bd9ae7cc70
|
Automatically updated using
perl -pi -0777 -e 's/_probe\s*\(\s*struct dev \*dev,\s*struct pci_device \*(\w+?)\s*\)\s*{(\s*)struct nic \*nic.*?$/_probe ( struct dev *dev ) {\n${2}struct nic *nic = nic_device ( dev );\n${2}struct pci_device *$1 = pci_device ( dev );/ms' *.c
|
2005-04-12 23:24:39 +00:00 |
|
Michael Brown
|
35e6f3e58a
|
Minor regexp tweaks to catch degenerate cases.
|
2005-04-12 23:13:54 +00:00 |
|
Michael Brown
|
3d6123e69a
|
Initial revision
|
2005-03-08 18:53:11 +00:00 |
|