ADFS in RISC OS 3.

New ADFS SWIs

ADFS_ControllerType

Returns the controller type of a disc

On Entry:

On Exit:

ADFS_PowerControl

Controls the power-saving features of the ADFS system It can be dangerous to use the drive spin control SWIs on drives that do not fully support them: the controllers on at least two drives tested hang up when autospindown is enabled and a reset does not recover the situation (power-on reset does).

R0 is reason code on entry:

0 => read drive spin status
On Entry:
  • R1 = drive (4..7)
On Exit:
  • R2 = 0 => drive is not spinning
  • R2!= 0 => drive is spinning
1 => set drive autospindown
On Entry:
  • R1 = drive (4..7)
  • R2 = 0 => disable autospindown and spinup drive
  • R2!= 0 => set autospindown to R2*5 seconds
On Exit:
  • R3 = previous enable value
2 => manual control of drive spin without affecting autospindown
On Entry:
  • R1 = drive (4..7)
  • R2 = 0 => spin down immediately
  • R2!= 0 => spin up immediately
ADFS_SetIDEController

Gives the IDE driver the details of an alternative controller.

On Entry:

On Exit:

ADFS_IDEUserOp

Direct user interface for low-level IDE commands. Must not be called in background.

On Entry:

On Exit:

New ADFS service calls

Service_ADFSPoduleIDE

Issued by ADFS to locate an IDE podule.

On Entry:

On Exit:

Service_ADFSPoduleIDEDying

Issued by podule module to tell ADFS of imminent demise.

On Entry:

On Exit: