Lines Matching refs:ebr
282 struct TempMBR ebr;
304 if (myDisk->Read(&ebr, 512) != 512) { // Load the data....
309 ReverseBytes(&ebr.MBRSignature, 2);
310 ReverseBytes(&ebr.partitions[0].firstLBA, 4);
311 ReverseBytes(&ebr.partitions[0].lengthLBA, 4);
312 ReverseBytes(&ebr.partitions[1].firstLBA, 4);
313 ReverseBytes(&ebr.partitions[1].lengthLBA, 4);
316 if (ebr.MBRSignature != MBR_SIGNATURE) {
322 cerr << hex << ebr.MBRSignature << ", but should be 0x";
332 ebrType = ebr.partitions[0].partitionType;
335 offset = extendedStart + ebr.partitions[0].firstLBA;
338 partitions[partNum] = ebr.partitions[0];
340 partitions[partNum].SetStartLBA(ebr.partitions[0].firstLBA + offset);
344 if ((ebr.partitions[1].firstLBA != UINT32_C(0)) && (partNum < (MAX_MBR_PARTS - 1))) {
345 offset = extendedStart + ebr.partitions[1].firstLBA;