Lines Matching refs:rom
149 my ($rom, $romsize, $stubsize);
155 my $filesize = read(R, $rom, MAXROMSIZE+1);
161 substr($rom, 2, 1) = chr((length($rom) + 511) / 512);
162 writerom($ARGV[0], \$rom);
185 $rom .= "\xFF" x ($romsize - length($rom));
191 substr($rom, 2, 1) = chr(($romsize / 512) % 256);
193 $stubsize = ord(substr($rom, 2, 1)) * 512;
198 my $pnp_hdr_offset = unpack('v', substr($rom, PNP_PTR_LOC, 2));
199 …my $identoffset = substr($rom, $pnp_hdr_offset+PNP_DEVICE_OFF, 2) eq "\0\0" ? addident(\$rom) : un…
200 pcipnpheaders(\$rom, $identoffset);
201 undiheaders(\$rom);
203 substr($rom, MINROMSIZE-2, 2) = "\x80\x80"
205 checksum(\$rom, $opts{'n'} ? $stubsize : $romsize);
206 writerom($ARGV[0], \$rom);
210 my ($rom);
216 my $filesize = read(R, $rom, MAXROMSIZE+1);
220 pcipnpheaders(\$rom, undef);
221 undiheaders(\$rom);
222 checksum(\$rom, ord(substr($rom, 2, 1)) * 512);
223 writerom($ARGV[0], \$rom);