Lines Matching refs:opt
40 struct options opt; variable
172 memset(&opt, 0, sizeof opt); in opt_set_defs()
173 opt.sect = true; /* by def. load sector */ in opt_set_defs()
174 opt.maps = true; /* by def. map sector */ in opt_set_defs()
175 opt.hand = true; /* by def. prepare handover */ in opt_set_defs()
176 opt.brkchain = false; /* by def. do chainload */ in opt_set_defs()
177 opt.piflags = PIF_STRICT; /* by def. be strict, but ignore disk sizes */ in opt_set_defs()
178 opt.foff = opt.soff = opt.fip = opt.sip = 0x7C00; in opt_set_defs()
179 opt.drivename = "boot"; in opt_set_defs()
181 opt.warn = true; in opt_set_defs()
193 opt.file = argv[i] + 5; in opt_parse_args()
195 opt.file = NULL; in opt_parse_args()
197 if (soi_s2n(argv[i] + 4, &opt.fseg, &opt.foff, &opt.fip, 0)) in opt_parse_args()
200 opt.file = argv[i] + 4; in opt_parse_args()
201 opt.bss = true; in opt_parse_args()
202 opt.maps = false; in opt_parse_args()
203 opt.setbpb = true; in opt_parse_args()
205 opt.file = argv[i] + 3; in opt_parse_args()
206 opt.sect = false; in opt_parse_args()
207 opt.filebpb = true; in opt_parse_args()
209 opt.file = argv[i] + 9; in opt_parse_args()
210 opt.isolinux = true; in opt_parse_args()
211 opt.hand = false; in opt_parse_args()
212 opt.sect = false; in opt_parse_args()
214 opt.fseg = 0x2000; /* NTLDR wants this address */ in opt_parse_args()
215 opt.foff = 0; in opt_parse_args()
216 opt.fip = 0; in opt_parse_args()
217 opt.file = argv[i] + 6; in opt_parse_args()
218 opt.setbpb = true; in opt_parse_args()
219 opt.hand = false; in opt_parse_args()
227 opt.fseg = 0; in opt_parse_args()
228 opt.foff = 0x8000; in opt_parse_args()
229 opt.fip = 0x8100; in opt_parse_args()
230 opt.file = argv[i] + 8; in opt_parse_args()
231 opt.setbpb = true; in opt_parse_args()
232 opt.hand = false; in opt_parse_args()
234 opt.fseg = 0x2000; /* CMLDR wants this address */ in opt_parse_args()
235 opt.foff = 0; in opt_parse_args()
236 opt.fip = 0; in opt_parse_args()
237 opt.file = argv[i] + 6; in opt_parse_args()
238 opt.cmldr = true; in opt_parse_args()
239 opt.setbpb = true; in opt_parse_args()
240 opt.hand = false; in opt_parse_args()
242 opt.fseg = 0x60; /* FREEDOS wants this address */ in opt_parse_args()
243 opt.foff = 0; in opt_parse_args()
244 opt.fip = 0; in opt_parse_args()
245 opt.sseg = 0x1FE0; in opt_parse_args()
246 opt.file = argv[i] + 8; in opt_parse_args()
247 opt.setbpb = true; in opt_parse_args()
248 opt.hand = false; in opt_parse_args()
252 opt.fseg = 0x70; /* MS-DOS 2.00 .. 6.xx wants this address */ in opt_parse_args()
253 opt.foff = 0; in opt_parse_args()
254 opt.fip = v == 7 ? 0x200 : 0; /* MS-DOS 7.0+ wants this ip */ in opt_parse_args()
255 opt.sseg = 0x8000; in opt_parse_args()
256 opt.file = argv[i] + v; in opt_parse_args()
257 opt.setbpb = true; in opt_parse_args()
258 opt.hand = false; in opt_parse_args()
260 opt.fseg = 0x70; /* DRMK wants this address */ in opt_parse_args()
261 opt.foff = 0; in opt_parse_args()
262 opt.fip = 0; in opt_parse_args()
263 opt.sseg = 0x2000; in opt_parse_args()
264 opt.soff = 0; in opt_parse_args()
265 opt.sip = 0; in opt_parse_args()
266 opt.file = argv[i] + 5; in opt_parse_args()
268 opt.setbpb = true; in opt_parse_args()
269 opt.hand = false; in opt_parse_args()
271 opt.fseg = 0x800; /* stage2 wants this address */ in opt_parse_args()
272 opt.foff = 0; in opt_parse_args()
273 opt.fip = 0x200; in opt_parse_args()
274 opt.file = argv[i] + 5; in opt_parse_args()
275 opt.grub = true; in opt_parse_args()
276 opt.hand = false; in opt_parse_args()
277 opt.sect = false; in opt_parse_args()
279 opt.grubcfg = argv[i] + 8; in opt_parse_args()
281 opt.file = argv[i] + 6; in opt_parse_args()
282 opt.grldr = true; in opt_parse_args()
283 opt.hand = false; in opt_parse_args()
284 opt.sect = false; in opt_parse_args()
286 opt.keeppxe = 3; in opt_parse_args()
288 opt.keeppxe = 0; in opt_parse_args()
290 opt.maps = true; in opt_parse_args()
292 opt.maps = false; in opt_parse_args()
294 opt.hand = true; in opt_parse_args()
296 opt.hand = false; in opt_parse_args()
298 opt.hptr = true; in opt_parse_args()
300 opt.hptr = false; in opt_parse_args()
302 opt.swap = true; in opt_parse_args()
304 opt.swap = false; in opt_parse_args()
306 opt.hide = HIDE_OFF; in opt_parse_args()
308 opt.hide = HIDE_ON; in opt_parse_args()
309 opt.piflags |= PIF_STRICT | PIF_STRICTER; in opt_parse_args()
311 opt.hide = HIDE_ON | HIDE_EXT; in opt_parse_args()
312 opt.piflags |= PIF_STRICT | PIF_STRICTER; in opt_parse_args()
314 opt.hide = HIDE_ON | HIDE_REV; in opt_parse_args()
315 opt.piflags |= PIF_STRICT | PIF_STRICTER; in opt_parse_args()
317 opt.hide = HIDE_ON | HIDE_EXT | HIDE_REV; in opt_parse_args()
318 opt.piflags |= PIF_STRICT | PIF_STRICTER; in opt_parse_args()
320 opt.setbpb = true; in opt_parse_args()
322 opt.setbpb = false; in opt_parse_args()
324 opt.filebpb = true; in opt_parse_args()
326 opt.filebpb = false; in opt_parse_args()
330 if (soi_s2n(argv[i] + 5, &opt.sseg, &opt.soff, &opt.sip, 0)) in opt_parse_args()
333 opt.sect = true; in opt_parse_args()
335 opt.sect = false; in opt_parse_args()
336 opt.maps = false; in opt_parse_args()
338 opt.save = true; in opt_parse_args()
339 opt.piflags |= PIF_STRICT | PIF_STRICTER; in opt_parse_args()
341 opt.save = false; in opt_parse_args()
343 opt.fixchs = true; in opt_parse_args()
344 opt.piflags |= PIF_STRICT | PIF_STRICTER; in opt_parse_args()
346 opt.fixchs = false; in opt_parse_args()
348 opt.piflags &= ~(PIF_STRICT | PIF_STRICTER); in opt_parse_args()
350 opt.piflags |= PIF_STRICT | PIF_STRICTER; in opt_parse_args()
356 opt.piflags &= ~(PIF_STRICT | PIF_STRICTER); in opt_parse_args()
358 case '2': opt.piflags |= PIF_STRICTER; in opt_parse_args()
359 case '1': opt.piflags |= PIF_STRICT; break; in opt_parse_args()
363 opt.warn = true; in opt_parse_args()
365 opt.warn = false; in opt_parse_args()
367 opt.piflags |= PIF_PREFMBR; in opt_parse_args()
369 opt.piflags &= ~PIF_PREFMBR; in opt_parse_args()
371 opt.brkchain = false; in opt_parse_args()
373 opt.brkchain = true; in opt_parse_args()
374 opt.file = NULL; in opt_parse_args()
375 opt.maps = false; in opt_parse_args()
376 opt.hand = false; in opt_parse_args()
388 opt.drivename = argv[i]; in opt_parse_args()
390 p = strchr(opt.drivename, ','); in opt_parse_args()
395 opt.partition = p + 1; in opt_parse_args()
398 opt.partition = argv[++i]; in opt_parse_args()
406 if (opt.grubcfg && !opt.grub) { in opt_parse_args()
411 if (opt.filebpb && !opt.file) { in opt_parse_args()
416 if (opt.save && !opt.sect) { in opt_parse_args()
421 if (opt.setbpb && !opt.sect) { in opt_parse_args()
426 if (opt.maps && !opt.sect) { in opt_parse_args()