Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v2.6.19 31 lines 861 B view raw
1#!/usr/bin/perl 2 3# This script can be used to generate a new starfire_firmware.h 4# from GFP_RX.DAT and GFP_TX.DAT, files included with the DDK 5# and also with the Novell drivers. 6 7open FW, "GFP_RX.DAT" || die; 8open FWH, ">starfire_firmware.h" || die; 9 10printf(FWH "static u32 firmware_rx[] = {\n"); 11$counter = 0; 12while ($foo = <FW>) { 13 chomp; 14 printf(FWH " 0x%s, 0x0000%s,\n", substr($foo, 4, 8), substr($foo, 0, 4)); 15 $counter++; 16} 17 18close FW; 19open FW, "GFP_TX.DAT" || die; 20 21printf(FWH "};\t/* %d Rx instructions */\n#define FIRMWARE_RX_SIZE %d\n\nstatic u32 firmware_tx[] = {\n", $counter, $counter); 22$counter = 0; 23while ($foo = <FW>) { 24 chomp; 25 printf(FWH " 0x%s, 0x0000%s,\n", substr($foo, 4, 8), substr($foo, 0, 4)); 26 $counter++; 27} 28 29close FW; 30printf(FWH "};\t/* %d Tx instructions */\n#define FIRMWARE_TX_SIZE %d\n", $counter, $counter); 31close(FWH);