Lines Matching refs:bpb

163 	struct	bios_param_blk bpb;
410 * The fd_vtoc, bpb, and rdirsec structures will be
416 * be added. This function should fill in fd_vtoc, bpb, and
420 (void) memset((void *)&bpb, (char)0, sizeof (struct bios_param_blk));
422 format_diskette(fd, real_name, &fd_vtoc, &bpb, &rdirsec);
426 vollabel, &bpb, rdirsec);
448 * information and ascillabel. bpb and rdirsec will
453 struct bios_param_blk *bpb, int *rdirsec)
685 bpb->b_nfat = 2;
687 bpb->b_spcl = 2;
689 bpb->b_mediadescriptor = (char)0xF0;
690 bpb->b_fatsec[0] = 9;
691 bpb->b_fatsec[1] = 0;
694 bpb->b_spcl = 1;
696 bpb->b_mediadescriptor = (char)0xF9;
697 bpb->b_fatsec[0] = 7;
698 bpb->b_fatsec[1] = 0;
700 bpb->b_spcl = 1;
702 bpb->b_mediadescriptor = (char)0xF0;
703 bpb->b_fatsec[0] = 9;
704 bpb->b_fatsec[1] = 0;
707 bpb->b_spcl = 2;
709 bpb->b_mediadescriptor = (char)0xFD;
710 bpb->b_fatsec[0] = 2;
711 bpb->b_fatsec[1] = 0;
713 bpb->b_spcl = 2;
715 bpb->b_mediadescriptor = (char)0xF9;
716 bpb->b_fatsec[0] = 3;
717 bpb->b_fatsec[1] = 0;
1483 char *doslabel, struct bios_param_blk *bpb, int rdirsec)
1504 bpb->b_bps[0] = getlobyte(512);
1505 bpb->b_bps[1] = gethibyte(512);
1507 bpb->b_res_sec[0] = 1;
1508 bpb->b_res_sec[1] = 0;
1511 bpb->b_totalsec[0] = getlobyte(totalsec);
1512 bpb->b_totalsec[1] = gethibyte(totalsec);
1513 bpb->b_spt[0] = fdchar.fdc_secptrack;
1514 bpb->b_spt[1] = 0;
1515 bpb->b_nhead[0] = fdchar.fdc_nhead;
1516 bpb->b_nhead[1] = 0;
1517 bpb->b_hiddensec[0] = 0;
1518 bpb->b_hiddensec[1] = 0;
1520 bpb->b_rdirents[0] = getlobyte(rdirsec);
1521 bpb->b_rdirents[1] = gethibyte(rdirsec);
1523 (void) memcpy((char *)(bootloadr + 0x0B), (char *)bpb,
1535 fat_bsize = 512 * bpb->b_fatsec[0];
1539 *fat_rdir = bpb->b_mediadescriptor;
1542 bootclen = (bootlen + 512 * (int)bpb->b_spcl - 1) /
1543 (512 * (int)bpb->b_spcl);
1559 for (i = 0; i < (int)bpb->b_nfat; ++i)
1567 rdirsec = bpb->b_rdirents[0];
1636 struct bios_param_blk *bpb;
1662 bpb = (struct bios_param_blk *)&(bootsec_NEC[0xb]);
1671 fatsec = bpb->b_fatsec[0];
1672 for (i = 0; i < (int)bpb->b_nfat * (int)fatsec; ++i) {
1674 fat_rdir[0] = bpb->b_mediadescriptor;
1698 rdirsec = (int)htols(bpb->b_rdirents[0]) * 32 /1024;
1700 rdirsec = (int)htols(bpb->b_rdirents[0]) * 32 /1024;