Lines Matching refs:rp
131 struct bop_regs rp = {0}; in bios_check_extension_present() local
134 rp.eax.word.ax = 0x4100; in bios_check_extension_present()
135 rp.ebx.word.bx = 0x55AA; in bios_check_extension_present()
136 rp.edx.word.dx = drivenum; in bios_check_extension_present()
139 BOP_DOINT(bootops, 0x13, &rp); in bios_check_extension_present()
141 if (((rp.eflags & PS_C) != 0) || (rp.ebx.word.bx != 0xAA55)) { in bios_check_extension_present()
143 "failed %d bx = %x\n", rp.eflags, rp.ebx.word.bx)); in bios_check_extension_present()
147 if ((rp.ecx.word.cx & 0x7) == 0) { in bios_check_extension_present()
149 "not supported cx = %x\n", rp.ecx.word.cx)); in bios_check_extension_present()
159 struct bop_regs rp = {0}; in get_dev_params() local
178 rp.eax.word.ax = 0x4800; in get_dev_params()
179 rp.edx.byte.dl = drivenum; in get_dev_params()
181 rp.esi.word.si = (uint16_t)FP_OFF((uint_t)(uintptr_t)bufp); in get_dev_params()
182 rp.ds = FP_SEG((uint_t)(uintptr_t)bufp); in get_dev_params()
184 BOP_DOINT(bootops, 0x13, &rp); in get_dev_params()
186 if ((rp.eflags & PS_C) != 0) { in get_dev_params()
188 rp.eflags, rp.eax.byte.ah)); in get_dev_params()
211 struct bop_regs rp = {0}; in drive_present() local
213 rp.eax.byte.ah = 0x8; /* get params */ in drive_present()
214 rp.edx.byte.dl = drivenum; in drive_present()
216 BOP_DOINT(bootops, 0x13, &rp); in drive_present()
218 if (((rp.eflags & PS_C) != 0) || rp.eax.byte.ah != 0) { in drive_present()
220 drivenum, rp.eflags, rp.eax.byte.ah)); in drive_present()
231 struct bop_regs rp = {0}; in reset_disk() local
234 rp.eax.byte.ah = 0x0; /* reset disk */ in reset_disk()
235 rp.edx.byte.dl = drivenum; in reset_disk()
237 BOP_DOINT(bootops, 0x13, &rp); in reset_disk()
239 status = rp.eax.byte.ah; in reset_disk()
241 if (((rp.eflags & PS_C) != 0) || status != 0) in reset_disk()
251 struct bop_regs rp = {0}; in read_firstblock() local
261 rp.eax.byte.ah = 0x2; /* Read disk */ in read_firstblock()
262 rp.eax.byte.al = 1; /* nsect */ in read_firstblock()
263 rp.ecx.byte.ch = 0; /* cyl & 0xff */ in read_firstblock()
264 rp.ecx.byte.cl = 1; /* cyl >> 2 & 0xc0 (sector number) */ in read_firstblock()
265 rp.edx.byte.dh = 0; /* head */ in read_firstblock()
266 rp.edx.byte.dl = drivenum; /* drivenum */ in read_firstblock()
269 rp.ebx.word.bx = (uint16_t)FP_OFF((uint_t)(uintptr_t)bufp); in read_firstblock()
270 rp.es = FP_SEG((uint_t)(uintptr_t)bufp); in read_firstblock()
272 BOP_DOINT(bootops, 0x13, &rp); in read_firstblock()
274 status = rp.eax.byte.ah; in read_firstblock()
275 if (((rp.eflags & PS_C) != 0) || status != 0) { in read_firstblock()
295 struct bop_regs rp = {0}; in is_eltorito() local
312 rp.eax.word.ax = 0x4b01; in is_eltorito()
313 rp.edx.byte.dl = drivenum; in is_eltorito()
315 rp.esi.word.si = (uint16_t)FP_OFF((uint_t)(uintptr_t)bufp); in is_eltorito()
316 rp.ds = FP_SEG((uint_t)(uintptr_t)bufp); in is_eltorito()
318 BOP_DOINT(bootops, 0x13, &rp); in is_eltorito()
320 if ((rp.eflags & PS_C) != 0 || bufp->drivenum != drivenum) { in is_eltorito()
323 rp.eflags, rp.eax.byte.ah, bufp->drivenum)); in is_eltorito()