Lines Matching defs:drivenum

69 static int read_firstblock(uchar_t drivenum);
70 static int drive_present(uchar_t drivenum);
71 static void reset_disk(uchar_t drivenum);
72 static int is_eltorito(uchar_t drivenum);
77 uchar_t drivenum;
92 for (drivenum = 0x80; drivenum < (0x80 + BIOSDEV_NUM); drivenum++) {
94 if (!drive_present(drivenum))
97 extensions = bios_check_extension_present(drivenum);
104 if (extensions && is_eltorito(drivenum))
107 if (extensions && get_dev_params(drivenum))
112 if ((got_first_block = read_firstblock(drivenum)) == 0) {
114 got_first_block = read_firstblock(drivenum);
118 (void) sprintf((char *)name, "biosdev-0x%x", drivenum);
122 (uchar_t *)&biosdev_info[drivenum - 0x80],
129 bios_check_extension_present(uchar_t drivenum)
136 rp.edx.word.dx = drivenum;
157 get_dev_params(uchar_t drivenum)
179 rp.edx.byte.dl = drivenum;
192 index = drivenum - 0x80;
209 drive_present(uchar_t drivenum)
214 rp.edx.byte.dl = drivenum;
219 dprintf(("drive not present drivenum %x eflag %x ah %x\n",
220 drivenum, rp.eflags, rp.eax.byte.ah));
224 dprintf(("drive-present %x\n", drivenum));
229 reset_disk(uchar_t drivenum)
235 rp.edx.byte.dl = drivenum;
242 dprintf(("Bad disk reset driv %x, status %x\n", drivenum,
248 read_firstblock(uchar_t drivenum)
257 reset_disk(drivenum);
266 rp.edx.byte.dl = drivenum; /* drivenum */
280 dprintf(("drivenum %x uid at 0x1b8 is %x\n", drivenum,
283 index = drivenum - 0x80;
293 is_eltorito(uchar_t drivenum)
313 rp.edx.byte.dl = drivenum;
320 if ((rp.eflags & PS_C) != 0 || bufp->drivenum != drivenum) {
322 "eflags=%x ah=%x drivenum=%x\n",
323 rp.eflags, rp.eax.byte.ah, bufp->drivenum));