scripts/extract_xc3028.pl
Source file repositories/reference/linux-study-clean/scripts/extract_xc3028.pl
File Facts
- System
- Linux kernel
- Corpus path
scripts/extract_xc3028.pl- Extension
.pl- Size
- 45686 bytes
- Lines
- 1718
- Domain
- Support Tooling And Documentation
- Bucket
- scripts
- Inferred role
- Support Tooling And Documentation: scripts
- Status
- atlas-only
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
function verifyfunction get_hunkfunction write_le16function write_le32function write_le64function write_hunkfunction write_hunk_fix_endianfunction main_firmware_24function main_firmware_27
Annotated Snippet
if ($size>0 && $size <0x8000) {
for (my $j=0;$j<$size;$j++) {
syswrite(OUTFILE, substr($out,$j+$i,1));
}
$i+=$size;
}
}
}
sub main_firmware_24($$$$)
{
my $out;
my $j=0;
my $outfile = shift;
my $name = shift;
my $version = shift;
my $nr_desc = shift;
for ($j = length($name); $j <32; $j++) {
$name = $name.chr(0);
}
open OUTFILE, ">$outfile";
syswrite(OUTFILE, $name);
write_le16($version);
write_le16($nr_desc);
#
# Firmware 0, type: BASE FW F8MHZ (0x00000003), id: (0000000000000000), size: 6635
#
write_le32(0x00000003); # Type
write_le64(0x00000000, 0x00000000); # ID
write_le32(6635); # Size
write_hunk_fix_endian(257752, 6635);
#
# Firmware 1, type: BASE FW F8MHZ MTS (0x00000007), id: (0000000000000000), size: 6635
#
write_le32(0x00000007); # Type
write_le64(0x00000000, 0x00000000); # ID
write_le32(6635); # Size
write_hunk_fix_endian(264392, 6635);
#
# Firmware 2, type: BASE FW FM (0x00000401), id: (0000000000000000), size: 6525
#
write_le32(0x00000401); # Type
write_le64(0x00000000, 0x00000000); # ID
write_le32(6525); # Size
write_hunk_fix_endian(271040, 6525);
#
# Firmware 3, type: BASE FW FM INPUT1 (0x00000c01), id: (0000000000000000), size: 6539
#
write_le32(0x00000c01); # Type
write_le64(0x00000000, 0x00000000); # ID
write_le32(6539); # Size
write_hunk_fix_endian(277568, 6539);
#
# Firmware 4, type: BASE FW (0x00000001), id: (0000000000000000), size: 6633
#
write_le32(0x00000001); # Type
write_le64(0x00000000, 0x00000000); # ID
write_le32(6633); # Size
Annotation
- Detected declarations: `function verify`, `function get_hunk`, `function write_le16`, `function write_le32`, `function write_le64`, `function write_hunk`, `function write_hunk_fix_endian`, `function main_firmware_24`, `function main_firmware_27`.
- Atlas domain: Support Tooling And Documentation / scripts.
- Implementation status: atlas-only.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.