Function 24
and its subfunctions (4,5)
Subfunction 4 - remove the disc tray
Options:
* eax =
24 - function number
* ebx = 4
- subfunction number
* ecx =
CD / DVD number
from 0 = Primary Master
to 3 = Secondary Slave for the first IDE counter.
from 4 = Primary Master
to 7 = Secondary Slave for the second IDE counter.
from 8 = Primary Master
to 11 = Secondary Slave for the third IDE counter.
Return value:
* function does not return value
Remarks:
This feature is
supported for ATAPI devices only (CD and DVD).
When the tray is
removed, the manual operation of the tray mechanism is unlocked.
When the tray is
removed, the code clears the cache of the corresponding device.
An example of using a
function is the CD_tray application.
Constants for registers:
eax -
SF_CD (24)
ebx -
SSF_EJECT_TRAY (4), SSF_INSERT_TRAY (5)
Subfunction 5 - load the disc tray
Options:
* eax =
24 - function number
* ebx = 5
- subfunction number
* ecx =
CD / DVD number
from 0 = Primary Master
to 3 = Secondary Slave for the first IDE counter.
from 4 = Primary Master
to 7 = Secondary Slave for the second IDE counter.
from 8 = Primary Master
to 11 = Secondary Slave for the third IDE counter.
Return value:
* function does not return value
Remarks:
This feature is
supported for ATAPI devices only (CD and DVD).
An example of using a
function is the CD_tray application.
Constants for registers:
eax -
SF_CD (24)
ebx -
SSF_EJECT_TRAY (4), SSF_INSERT_TRAY (5)