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.
7 open FW
, "GFP_RX.DAT" || die;
8 open FWH
, ">starfire_firmware.h" || die;
10 printf(FWH
"static u32 firmware_rx[] = {\n");
14 printf(FWH
" 0x%s, 0x0000%s,\n", substr($foo, 4, 8), substr($foo, 0, 4));
19 open FW
, "GFP_TX.DAT" || die;
21 printf(FWH
"};\t/* %d Rx instructions */\n#define FIRMWARE_RX_SIZE %d\n\nstatic u32 firmware_tx[] = {\n", $counter, $counter);
25 printf(FWH
" 0x%s, 0x0000%s,\n", substr($foo, 4, 8), substr($foo, 0, 4));
30 printf(FWH
"};\t/* %d Tx instructions */\n#define FIRMWARE_TX_SIZE %d\n", $counter, $counter);