diff options
author | Geert Stappers <stappers@stappers.it> | 2024-02-18 12:29:59 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-02-22 14:19:04 +0000 |
commit | e5f3ba0ca773e8ea4dcfec6e10f18a06d14e79e0 (patch) | |
tree | cd7bd2ded78e923a71bbcf1f43f9d60bb6861504 /src/drivers/net/sundance.c | |
parent | 582132fe3f72377f592aa127d920355afa887384 (diff) | |
download | ipxe-e5f3ba0ca773e8ea4dcfec6e10f18a06d14e79e0.tar.gz |
[drivers] Sort PCI_ROM() entries numerically
Done with the help of this Perl script:
$MARKER = 'PCI_ROM'; # a regex
$AB = 1; # At Begin
@HEAD = ();
@ITEMS = ();
@TAIL = ();
foreach $fn (@ARGV) {
open(IN, $fn) or die "Can't open file '$fn': $!\n";
while (<IN>) {
if (/$MARKER/) {
push @ITEMS, $_;
$AB = 0; # not anymore at begin
}
else {
if ($AB) {
push @HEAD, $_;
}
else {
push @TAIL, $_;
}
}
}
} continue {
close IN;
open(OUT, ">$fn") or die "Can't open file '$fn' for output: $!\n";
print OUT @HEAD;
print OUT sort @ITEMS;
print OUT @TAIL;
close OUT;
# For a next file
$AB = 1;
@HEAD = ();
@ITEMS = ();
@TAIL = ();
}
Executed that script while src/drivers/ as current working directory,
provided '$(grep -rl PCI_ROM)' as argument.
Signed-off-by: Geert Stappers <stappers@stappers.it>
Diffstat (limited to 'src/drivers/net/sundance.c')
-rw-r--r-- | src/drivers/net/sundance.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/net/sundance.c b/src/drivers/net/sundance.c index 9127fa2cd..8eb09b988 100644 --- a/src/drivers/net/sundance.c +++ b/src/drivers/net/sundance.c @@ -880,9 +880,9 @@ static void set_rx_mode(struct nic *nic __unused) } static struct pci_device_id sundance_nics[] = { - PCI_ROM(0x13f0, 0x0201, "sundance", "ST201 Sundance 'Alta' based Adaptor", 0), PCI_ROM(0x1186, 0x1002, "dfe530txs", "D-Link DFE530TXS (Sundance ST201 Alta)", 0), PCI_ROM(0x13f0, 0x0200, "ip100a", "IC+ IP100A", 0), + PCI_ROM(0x13f0, 0x0201, "sundance", "ST201 Sundance 'Alta' based Adaptor", 0), }; PCI_DRIVER ( sundance_driver, sundance_nics, PCI_NO_CLASS ); |