Lines Matching defs:bs

378 		bootsector32 *bs = (bootsector32 *)bootsector;
381 memcpy(bs->BS_OEMName,"Haiku ",8);
382 bs->BPB_BytsPerSec = B_HOST_TO_LENDIAN_INT16(sectorSize);
383 bs->BPB_SecPerClus = sectorPerCluster;
384 bs->BPB_RsvdSecCnt = B_HOST_TO_LENDIAN_INT16(reservedSectorCount);
385 bs->BPB_NumFATs = numFATs;
386 bs->BPB_RootEntCnt = B_HOST_TO_LENDIAN_INT16(rootEntryCount);
387 bs->BPB_TotSec16 = B_HOST_TO_LENDIAN_INT16(0);
388 bs->BPB_Media = 0xF8;
389 bs->BPB_FATSz16 = B_HOST_TO_LENDIAN_INT16(0);
391 bs->BPB_SecPerTrk = B_HOST_TO_LENDIAN_INT16(temp16);
393 bs->BPB_NumHeads = B_HOST_TO_LENDIAN_INT16(temp16);
395 bs->BPB_HiddSec = B_HOST_TO_LENDIAN_INT32(temp32);
397 bs->BPB_TotSec32 = B_HOST_TO_LENDIAN_INT32(temp32);
398 bs->BPB_FATSz32 = B_HOST_TO_LENDIAN_INT32(FATSize);
399 bs->BPB_ExtFlags = B_HOST_TO_LENDIAN_INT16(0);
400 bs->BPB_FSVer = B_HOST_TO_LENDIAN_INT16(0);
401 bs->BPB_RootClus = B_HOST_TO_LENDIAN_INT32(FAT32_ROOT_CLUSTER);
402 bs->BPB_FSInfo = B_HOST_TO_LENDIAN_INT16(FSINFO_SECTOR_NUM);
403 bs->BPB_BkBootSec = B_HOST_TO_LENDIAN_INT16(BACKUP_SECTOR_NUM);
404 memset(bs->BPB_Reserved,0,12);
405 bs->BS_DrvNum = biosDriveId;
406 bs->BS_Reserved1 = 0x00;
407 bs->BS_BootSig = 0x29;
408 *(uint32*)bs->BS_VolID = (uint32)system_time();
409 memset(bs->BS_VolLab, 0x20, 11);
410 memcpy(bs->BS_VolLab, label, min_c(11, strlen(label)));
411 memcpy(bs->BS_FilSysType,"FAT32 ",8);
412 bs->signature = B_HOST_TO_LENDIAN_INT16(0xAA55);
414 bootsector1216 *bs = (bootsector1216 *)bootsector;
418 memcpy(bs->BS_OEMName, "Haiku ", 8);
419 bs->BPB_BytsPerSec = B_HOST_TO_LENDIAN_INT16(sectorSize);
420 bs->BPB_SecPerClus = sectorPerCluster;
421 bs->BPB_RsvdSecCnt = B_HOST_TO_LENDIAN_INT16(reservedSectorCount);
422 bs->BPB_NumFATs = numFATs;
423 bs->BPB_RootEntCnt = B_HOST_TO_LENDIAN_INT16(rootEntryCount);
425 bs->BPB_TotSec16 = B_HOST_TO_LENDIAN_INT16(temp16);
426 bs->BPB_Media = 0xF8;
427 bs->BPB_FATSz16 = B_HOST_TO_LENDIAN_INT16(FATSize);
429 bs->BPB_SecPerTrk = B_HOST_TO_LENDIAN_INT16(temp16);
431 bs->BPB_NumHeads = B_HOST_TO_LENDIAN_INT16(temp16);
433 bs->BPB_HiddSec = B_HOST_TO_LENDIAN_INT32(temp32);
435 bs->BPB_TotSec32 = B_HOST_TO_LENDIAN_INT32(temp32);
436 bs->BS_DrvNum = biosDriveId;
437 bs->BS_Reserved1 = 0x00;
438 bs->BS_BootSig = 0x29;
439 *(uint32*)bs->BS_VolID = (uint32)system_time();
440 memset(bs->BS_VolLab, 0x20, 11);
441 memcpy(bs->BS_VolLab, label, min_c(11, strlen(label)));
442 memcpy(bs->BS_FilSysType,(fatbits == 12) ? "FAT12 " : "FAT16 ",8);
443 bs->signature = B_HOST_TO_LENDIAN_INT16(0xAA55);