353 test(r==KErrNone); |
353 test(r==KErrNone); |
354 TUint driveSize=I64LOW(driveCaps.iSize); |
354 TUint driveSize=I64LOW(driveCaps.iSize); |
355 DriveSizeInSectors=(driveSize&~0xfff)>>KSectorShift; // round down to multiple of 8 sectors |
355 DriveSizeInSectors=(driveSize&~0xfff)>>KSectorShift; // round down to multiple of 8 sectors |
356 test.Printf(_L("Drive size = %08x (%dK)\n"),driveSize,driveSize>>10); |
356 test.Printf(_L("Drive size = %08x (%dK)\n"),driveSize,driveSize>>10); |
357 test.Printf(_L("Media type = %d\n"),driveCaps.iType); |
357 test.Printf(_L("Media type = %d\n"),driveCaps.iType); |
358 test.Printf(_L("Battery state = %d\n"),driveCaps.iBattery); |
358 test.Printf(_L("Connection Bus = %d\n"),driveCaps.iConnectionBusType); |
359 test.Printf(_L("Drive attributes = %08x\n"),driveCaps.iDriveAtt); |
359 test.Printf(_L("Drive attributes = %08x\n"),driveCaps.iDriveAtt); |
360 test.Printf(_L("Media attributes = %08x\n"),driveCaps.iMediaAtt); |
360 test.Printf(_L("Media attributes = %08x\n"),driveCaps.iMediaAtt); |
361 test.Printf(_L("Base address = %08x\n"),driveCaps.iBaseAddress); |
361 test.Printf(_L("Base address = %08x\n"),driveCaps.iBaseAddress); |
362 test.Printf(_L("File system ID = %08x\n"),driveCaps.iFileSystemId); |
362 test.Printf(_L("File system ID = %08x\n"),driveCaps.iFileSystemId); |
363 test.Printf(_L("Hidden sectors = %08x\n"),driveCaps.iHiddenSectors); |
363 test.Printf(_L("Hidden sectors = %08x\n"),driveCaps.iHiddenSectors); |