Lines Matching refs:rp

124 	struct bop_regs rp = {0};  in bios_check_extension_present()  local
127 rp.eax.word.ax = 0x4100; in bios_check_extension_present()
128 rp.ebx.word.bx = 0x55AA; in bios_check_extension_present()
129 rp.edx.word.dx = drivenum; in bios_check_extension_present()
132 BOP_DOINT(bootops, 0x13, &rp); in bios_check_extension_present()
134 if (((rp.eflags & PS_C) != 0) || (rp.ebx.word.bx != 0xAA55)) { in bios_check_extension_present()
136 "failed %d bx = %x\n", rp.eflags, rp.ebx.word.bx)); in bios_check_extension_present()
140 if ((rp.ecx.word.cx & 0x7) == 0) { in bios_check_extension_present()
142 "not supported cx = %x\n", rp.ecx.word.cx)); in bios_check_extension_present()
152 struct bop_regs rp = {0}; in get_dev_params() local
171 rp.eax.word.ax = 0x4800; in get_dev_params()
172 rp.edx.byte.dl = drivenum; in get_dev_params()
174 rp.esi.word.si = (uint16_t)FP_OFF((uint_t)(uintptr_t)bufp); in get_dev_params()
175 rp.ds = FP_SEG((uint_t)(uintptr_t)bufp); in get_dev_params()
177 BOP_DOINT(bootops, 0x13, &rp); in get_dev_params()
179 if ((rp.eflags & PS_C) != 0) { in get_dev_params()
181 rp.eflags, rp.eax.byte.ah)); in get_dev_params()
204 struct bop_regs rp = {0}; in drive_present() local
206 rp.eax.byte.ah = 0x8; /* get params */ in drive_present()
207 rp.edx.byte.dl = drivenum; in drive_present()
209 BOP_DOINT(bootops, 0x13, &rp); in drive_present()
211 if (((rp.eflags & PS_C) != 0) || rp.eax.byte.ah != 0) { in drive_present()
213 drivenum, rp.eflags, rp.eax.byte.ah)); in drive_present()
224 struct bop_regs rp = {0}; in reset_disk() local
227 rp.eax.byte.ah = 0x0; /* reset disk */ in reset_disk()
228 rp.edx.byte.dl = drivenum; in reset_disk()
230 BOP_DOINT(bootops, 0x13, &rp); in reset_disk()
232 status = rp.eax.byte.ah; in reset_disk()
234 if (((rp.eflags & PS_C) != 0) || status != 0) in reset_disk()
244 struct bop_regs rp = {0}; in read_firstblock() local
254 rp.eax.byte.ah = 0x2; /* Read disk */ in read_firstblock()
255 rp.eax.byte.al = 1; /* nsect */ in read_firstblock()
256 rp.ecx.byte.ch = 0; /* cyl & 0xff */ in read_firstblock()
257 rp.ecx.byte.cl = 1; /* cyl >> 2 & 0xc0 (sector number) */ in read_firstblock()
258 rp.edx.byte.dh = 0; /* head */ in read_firstblock()
259 rp.edx.byte.dl = drivenum; /* drivenum */ in read_firstblock()
262 rp.ebx.word.bx = (uint16_t)FP_OFF((uint_t)(uintptr_t)bufp); in read_firstblock()
263 rp.es = FP_SEG((uint_t)(uintptr_t)bufp); in read_firstblock()
265 BOP_DOINT(bootops, 0x13, &rp); in read_firstblock()
267 status = rp.eax.byte.ah; in read_firstblock()
268 if (((rp.eflags & PS_C) != 0) || status != 0) { in read_firstblock()
288 struct bop_regs rp = {0}; in is_eltorito() local
305 rp.eax.word.ax = 0x4b01; in is_eltorito()
306 rp.edx.byte.dl = drivenum; in is_eltorito()
308 rp.esi.word.si = (uint16_t)FP_OFF((uint_t)(uintptr_t)bufp); in is_eltorito()
309 rp.ds = FP_SEG((uint_t)(uintptr_t)bufp); in is_eltorito()
311 BOP_DOINT(bootops, 0x13, &rp); in is_eltorito()
313 if ((rp.eflags & PS_C) != 0 || bufp->drivenum != drivenum) { in is_eltorito()
316 rp.eflags, rp.eax.byte.ah, bufp->drivenum)); in is_eltorito()