![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
![]() |
LeoReadCapacityFormat#include <leo.h> s32 LeoReadCapacity (LEOCapacity *cap, s32 direction); typedef struct { u32 startLBA; /* Beginning LBA of usable region */ u32 endLBA; /* Ending LBA of usable region */ u32 nbytes; /* Total byte size of usable region */ } LEOCapacity;What This Function Does It calculates the usable disk space. When this function is called with OS_READ placed in the direction argument, "readable starting LBA" is returned in startLBA of the LEOCapacity data structure pointed to by the cap argument, "readable ending LBA" is returned in endLBA, and "total readable LBA" is returned in nbytes. These values are usually the same no matter what the type of inserted disk, with startLBA=0, endLBA=4291 and nbytes=64458560. The following returned values are possible. A check is usually not necessary.
Leo LeoCreateLeoManager LeoReadWrite LeoSeek LeoSpdlMotor LeoByteToLBA LeoLBAToByte LeoInquiry LeoTestUnitReady LeoRezero LeoClearQueue LeoReadDiskID
|