Home | History | Annotate | Download | only in util

Lines Matching refs:rom

8 use constant PCI_PTR_LOC => 0x18;	# from beginning of ROM
10 use constant PNP_PTR_LOC => 0x1a; # from beginning of ROM
18 use constant UNDI_PTR_LOC => 0x16; # from beginning of ROM
32 print STDERR "BIOS extension ROM Image did not start with 0x55 0xAA\n"
36 print STDERR "$size is a strange size for a boot ROM\n"
92 # Point to device id string at end of ROM image
147 my ($rom, $romsize);
150 $ARGV[0] or die "Usage: $0 [-s romsize] [-i ident] [-p vendorid,deviceid] [-x] [-3] rom-file\n";
152 # Read in the whole ROM in one gulp
153 my $filesize = read(R, $rom, MAXROMSIZE+1);
159 substr($rom, 2, 1) = chr((length($rom) + 511) / 512);
160 &writerom($ARGV[0], \$rom);
171 $romsize = &getromsize(\$rom);
181 print STDERR "ROM size of $romsize not big enough for data, ";
187 $rom .= "\xFF" x ($romsize - length($rom));
189 print "Warning: ROM size exceeds extension BIOS limit\n";
191 substr($rom, 2, 1) = chr(($romsize / 512) % 256);
192 print "ROM size is $romsize\n" if $opts{'v'};
193 my $identoffset = &addident(\$rom);
194 &pcipnpheaders(\$rom, $identoffset);
195 &undiheaders(\$rom);
197 substr($rom, MINROMSIZE-2, 2) = "\x80\x80"
199 &checksum(\$rom);
200 &writerom($ARGV[0], \$rom);
204 my ($rom);
207 $ARGV[0] or die "Usage: $0 [-p vendorid,deviceid] rom-file\n";
209 # Read in the whole ROM in one gulp
210 my $filesize = read(R, $rom, MAXROMSIZE+1);
214 &pcipnpheaders(\$rom);
215 &undiheaders(\$rom);
216 &checksum(\$rom);
217 &writerom($ARGV[0], \$rom);