h6. [[ADFS]] h6(. » [[ADFS SWI Calls|SWI Calls]] h6((. » ADFS_PowerControl h2. ADFS_PowerControl h5. (SWI &40249) |_<^{width:4em}. Entry | | |<^. R0 |<^. Reason code (as described below) | |<^. R1 |<^. Drive | |<^. R2 |<^. Command (as described below) | |_<^{width:4em}. Exit | | |/3<^. R2 |<^. Drive spin status, if RO = 0 on entry | |<^. Value of 0 = drive is not spinning | |<^. Value != 0 = drive is spinning | |<^. R3 |<^. Previous value for drive autospindown, if R0 = 1 on entry | |_\2<^. Reason Codes | |<^{width:4em}. 0 |<^. Read drive spin status | |<^. 1 |<^. Set drive autospindown | |<^. 2 |<^. Control drive spin directly without affecting autospindown | |_\2<^. Command | |<^{width:4em}. |_<^. Drive autospindown (if R0 = 1) | |<^. 0 |<^. Disable autospindown and spinup drive | |<^. ≠ 0 |<^. Set autospindown to n seconds (where n = value specified in R2 x 5) | |<^. |_<^. Specify spin up or spin down of Drive (if R0 = 2) | |<^. 0 |<^. Spin down drive immediately | |<^. ≠ 0 |<^. Spin up drive immediately | h4. Use The purpose of this call is to control the power-saving features of [[ADFS]]. h4. Notes The drives should fully support drive spin control, otherwise unexpected errors may occur. h4. See also * [[ADFS]] * [[FileCore]]