Difference between revisions of "TMMCDiskController"

From Ultibo.org
Jump to: navigation, search
(Created page with "Return to Unit Filesystem __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible...")
 
(No difference)

Latest revision as of 05:08, 17 May 2018

Return to Unit Filesystem


Description


To be documented

Class definitions



TMMCDiskController = class(TExtDiskController)

constructor Create(ADriver:TFileSysDriver);  
public
function ControllerInit:Boolean; override;  
 
function LocateDevices:Boolean; override;  
 
function Read(ADevice:TDiskDevice; ASector:LongWord; ACount:Word; var ABuffer):Boolean; override;  
function Write(ADevice:TDiskDevice; ASector:LongWord; ACount:Word; const ABuffer):Boolean; override;  
function Erase(ADevice:TDiskDevice; ASector:LongWord; ACount:Word):Boolean; override;  
 
function Reset(ADevice:TDiskDevice):Boolean; override;  
 
function LockMedia(ADevice:TDiskDevice):Boolean; override;  
function UnlockMedia(ADevice:TDiskDevice):Boolean; override;  
function EjectMedia(ADevice:TDiskDevice):Boolean; override;  
 
function MediaReady(ADevice:TDiskDevice):Boolean; override;  
function MediaChanged(ADevice:TDiskDevice):Boolean; override;  
function MediaLocked(ADevice:TDiskDevice):Boolean; override;  
 
function Information(ADevice:TDiskDevice):String; override;  
 
function VendorId(ADevice:TDiskDevice):Word; override;  
function DeviceId(ADevice:TDiskDevice):Word; override;  
 
function Manufacturer(ADevice:TDiskDevice):String; override;  
function Product(ADevice:TDiskDevice):String; override;  
function SerialNumber(ADevice:TDiskDevice):String; override;  
 
function LogicalUnitNo(ADevice:TDiskDevice):LongWord; override;  
 
function LBA(ADevice:TDiskDevice):Boolean; override;  
 
function MediaType(ADevice:TDiskDevice):TMediaType; override;  
function FloppyType(ADevice:TDiskDevice):TFloppyType; override;  
function Ready(ADevice:TDiskDevice):Boolean; override;  
function Locked(ADevice:TDiskDevice):Boolean; override;  
function Lockable(ADevice:TDiskDevice):Boolean; override;  
function Ejectable(ADevice:TDiskDevice):Boolean; override;  
function Readable(ADevice:TDiskDevice):Boolean; override;  
function Writeable(ADevice:TDiskDevice):Boolean; override;  
function Eraseable(ADevice:TDiskDevice):Boolean; override;  
function Removable(ADevice:TDiskDevice):Boolean; override;  
function ChangeLine(ADevice:TDiskDevice):Boolean; override;  
 
function PhysicalCylinders(ADevice:TDiskDevice):LongWord; override;  
function PhysicalHeads(ADevice:TDiskDevice):LongWord; override;  
function PhysicalSectors(ADevice:TDiskDevice):LongWord; override;  
 
function LogicalCylinders(ADevice:TDiskDevice):LongWord; override;  
function LogicalHeads(ADevice:TDiskDevice):LongWord; override;  
function LogicalSectors(ADevice:TDiskDevice):LongWord; override;  
 
function SectorSize(ADevice:TDiskDevice):Word; override;  
function SectorCount(ADevice:TDiskDevice):Int64; override;  


Function declarations



constructor TMMCDiskController.Create(ADriver:TFileSysDriver);
Description: To be documented
Note None documented


function TMMCDiskController.ControllerInit:Boolean;
Description: To be documented
Note None documented


function TMMCDiskController.LocateDevices:Boolean;
Description: To be documented
Note None documented


function TMMCDiskController.Read(ADevice:TDiskDevice; ASector:LongWord; ACount:Word; var ABuffer):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.Write(ADevice:TDiskDevice; ASector:LongWord; ACount:Word; const ABuffer):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.Erase(ADevice:TDiskDevice; ASector:LongWord; ACount:Word):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.Reset(ADevice:TDiskDevice):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.LockMedia(ADevice:TDiskDevice):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.UnlockMedia(ADevice:TDiskDevice):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.EjectMedia(ADevice:TDiskDevice):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.MediaReady(ADevice:TDiskDevice):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.MediaChanged(ADevice:TDiskDevice):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.MediaLocked(ADevice:TDiskDevice):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.Information(ADevice:TDiskDevice):String;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.VendorId(ADevice:TDiskDevice):Word;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.DeviceId(ADevice:TDiskDevice):Word;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.Manufacturer(ADevice:TDiskDevice):String;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.Product(ADevice:TDiskDevice):String;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.SerialNumber(ADevice:TDiskDevice):String;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.LogicalUnitNo(ADevice:TDiskDevice):LongWord;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.LBA(ADevice:TDiskDevice):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.MediaType(ADevice:TDiskDevice):TMediaType;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.FloppyType(ADevice:TDiskDevice):TFloppyType;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.Ready(ADevice:TDiskDevice):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.Locked(ADevice:TDiskDevice):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.Lockable(ADevice:TDiskDevice):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.Ejectable(ADevice:TDiskDevice):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.Readable(ADevice:TDiskDevice):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.Writeable(ADevice:TDiskDevice):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.Eraseable(ADevice:TDiskDevice):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.Removable(ADevice:TDiskDevice):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.ChangeLine(ADevice:TDiskDevice):Boolean;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.PhysicalCylinders(ADevice:TDiskDevice):LongWord;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.PhysicalHeads(ADevice:TDiskDevice):LongWord;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.PhysicalSectors(ADevice:TDiskDevice):LongWord;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.LogicalCylinders(ADevice:TDiskDevice):LongWord;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.LogicalHeads(ADevice:TDiskDevice):LongWord;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.LogicalSectors(ADevice:TDiskDevice):LongWord;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.SectorSize(ADevice:TDiskDevice):Word;
Description: To be documented
Note Caller must hold the device lock


function TMMCDiskController.SectorCount(ADevice:TDiskDevice):Int64;
Description: To be documented
Note Caller must hold the device lock


Return to Unit Reference