home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / TRSICAT.LZX / CATS_CD2_TRSI / Inc&AD2.1 / Text_Autodocs / trackdisk.doc < prev    next >
Encoding:
Text File  |  1992-09-11  |  23.0 KB  |  664 lines

  1. TABLE OF CONTENTS
  2.  
  3. trackdisk.device/CMD_CLEAR
  4. trackdisk.device/CMD_READ
  5. trackdisk.device/CMD_UPDATE
  6. trackdisk.device/CMD_WRITE
  7. trackdisk.device/TD_ADDCHANGEINT
  8. trackdisk.device/TD_CHANGENUM
  9. trackdisk.device/TD_CHANGESTATE
  10. trackdisk.device/TD_EJECT
  11. trackdisk.device/TD_FORMAT
  12. trackdisk.device/TD_GETDRIVETYPE
  13. trackdisk.device/TD_GETGEOMETRY
  14. trackdisk.device/TD_GETNUMTRACKS
  15. trackdisk.device/TD_MOTOR
  16. trackdisk.device/TD_PROTSTATUS
  17. trackdisk.device/TD_RAWREAD
  18. trackdisk.device/TD_RAWWRITE
  19. trackdisk.device/TD_REMCHANGEINT
  20. trackdisk.device/TD_SEEK
  21. trackdisk.device/CMD_CLEAR                         trackdisk.device/CMD_CLEAR
  22.  
  23.    NAME
  24.     CMD_CLEAR/ETD_CLEAR -- mark the track buffer as containing invalid
  25.                    data.
  26.  
  27.    FUNCTION
  28.     These commands mark the track buffer as invalid, forcing a
  29.     reread of the disk on the next operation. ETD_UPDATE or CMD_UPDATE
  30.     would be used to force data out to the disk before turning the motor
  31.     off. ETD_CLEAR or CMD_CLEAR are usually used after having locked out
  32.     the trackdisk.device via the use of the disk resource, when you
  33.     wish to prevent the track from being updated, or when you wish to
  34.     force the track to be re-read. ETD_CLEAR or CMD_CLEAR will not do an
  35.     update, nor will an update command do a clear.
  36.  
  37.    IO REQUEST INPUT
  38.     io_Device    preset by the call to OpenDevice()
  39.     io_Unit        preset by the call to OpenDevice()
  40.     io_Command    CMD_CLEAR or ETD_CLEAR
  41.     io_Flags    0 or IOF_QUICK
  42.     iotd_Count    (ETD_CLEAR only) maximum allowable change counter
  43.             value.
  44.  
  45.    IO REQUEST RESULT
  46.     io_Error - 0 for success, or am error code as defined in
  47.                <devices/trackdisk.h>
  48.  
  49.    SEE ALSO
  50.     CMD_WRITE, CMD_UPDATE
  51.  
  52. trackdisk.device/CMD_READ                           trackdisk.device/CMD_READ
  53.  
  54.    NAME
  55.     CMD_READ/ETD_READ -- read sectors of data from a disk.
  56.  
  57.    FUNCTION
  58.     These commands transfer data from the track buffer to a supplied
  59.     buffer. If the desired sector is already in the track buffer, no disk
  60.     activity is initiated. If the desired sector is not in the buffer, the
  61.     track containing that sector is automatically read in. If the data in
  62.     the current track buffer has been modified, it is written out to the
  63.     disk before a new track is read. ETD_READ will read the sector label
  64.     area if the iotd_SecLabel is non-NULL.
  65.  
  66.    IO REQUEST INPUT
  67.     io_Device    preset by the call to OpenDevice()
  68.     io_Unit        preset by the call to OpenDevice()
  69.     io_Command    CMD_READ or ETD_READ
  70.     io_Flags    0 or IOF_QUICK
  71.     io_Data        pointer to the buffer where the data should be put
  72.     io_Length    number of bytes to read, must be a multiple of
  73.             TD_SECTOR.
  74.     io_Offset    byte offset from the start of the disk describing
  75.             where to read data from, must be a multiple of
  76.             TD_SECTOR.
  77.     iotd_Count    (ETD_READ only) maximum allowable change counter
  78.             value.
  79.     iotd_SecLabel    (ETD_READ only) NULL or sector label buffer pointer.
  80.             If provided, the buffer must be a multiple of
  81.             TD_LABELSIZE.
  82.  
  83.    IO REQUEST RESULT
  84.     io_Error - 0 for success, or am error code as defined in
  85.                <devices/trackdisk.h>
  86.    NOTES
  87.     Under versions of Kickstart earlier than V36, the io_Data had to
  88.     point to a buffer in chip memory. This restriction is no longer
  89.     present as of Kickstart V36 and beyond.
  90.  
  91.    SEE ALSO
  92.     CMD_WRITE
  93.  
  94. trackdisk.device/CMD_UPDATE                       trackdisk.device/CMD_UPDATE
  95.  
  96.    NAME
  97.     CMD_UPDATE/ETD_UPDATE -- write out the track buffer if it is dirty.
  98.  
  99.    FUNCTION
  100.     The trackdisk device does not write data sectors unless it is
  101.     necessary (you request that a different track be used) or until the
  102.     user requests that an update be performed. This improves system speed
  103.     by caching disk operations. These commands ensure that any
  104.     buffered data is flushed out to the disk. If the track buffer has not
  105.     been changed since the track was read in, these commands do nothing.
  106.     ETD_UPDATE command checks for diskchange.
  107.  
  108.    IO REQUEST INPUT
  109.     io_Device    preset by the call to OpenDevice()
  110.     io_Unit        preset by the call to OpenDevice()
  111.     io_Command    CMD_UPDATE or ETD_UPDATE
  112.     io_Flags    0 or IOF_QUICK
  113.     iotd_Count    (ETD_UPDATE only) maximum allowable change counter
  114.             value.
  115.  
  116.    IO REQUEST RESULT
  117.     io_Error - 0 for success, or am error code as defined in
  118.                <devices/trackdisk.h>
  119.  
  120.    SEE ALSO
  121.     CMD_WRITE
  122.  
  123. trackdisk.device/CMD_WRITE                         trackdisk.device/CMD_WRITE
  124.  
  125.    NAME
  126.     CMD_WRITE/ETD_WRITE -- write sectors of data to a disk.
  127.  
  128.    FUNCTION
  129.     These commands transfer data from a supplied buffer to the track
  130.     buffer. If the track that contains this sector is already in the track
  131.     buffer, no disk activity is initiated. If the desired sector is not in
  132.     the buffer, the track containing that sector is automatically read in.
  133.     If the data in the current track buffer has been modified, it is
  134.     written out to the disk before the new track is read in for
  135.     modification. ETD_WRITE will write the sector label area if
  136.     iotd_SecLabel is non-NULL.
  137.  
  138.    IO REQUEST INPUT
  139.     io_Device    preset by the call to OpenDevice()
  140.     io_Unit        preset by the call to OpenDevice()
  141.     io_Command    CMD_WRITE or ETD_WRITE
  142.     io_Flags    0 or IOF_QUICK
  143.     io_Data        pointer to the buffer where the data should be put
  144.     io_Length    number of bytes to write, must be a multiple of
  145.             TD_SECTOR.
  146.     io_Offset    byte offset from the start of the disk describing
  147.             where to write data to, must be a multiple of
  148.             TD_SECTOR.
  149.     iotd_Count    (ETD_WRITE only) maximum allowable change counter
  150.             value.
  151.     iotd_SecLabel    (ETD_WRITE only) NULL or sector label buffer pointer.
  152.             If provided, the buffer must be a multiple of
  153.             TD_LABELSIZE.
  154.  
  155.    IO REQUEST RESULT
  156.     io_Error - 0 for success, or am error code as defined in
  157.                <devices/trackdisk.h>
  158.  
  159.    NOTES
  160.     Under versions of Kickstart earlier than V36, the io_Data had to
  161.     point to a buffer in chip memory. This restriction is no longer
  162.     present as of Kickstart V36 and beyond.
  163.  
  164.    SEE ALSO
  165.     CMD_READ, TD_FORMAT
  166.  
  167. trackdisk.device/TD_ADDCHANGEINT             trackdisk.device/TD_ADDCHANGEINT
  168.  
  169.    NAME
  170.     TD_ADDCHANGEINT -- add a disk change software interrupt handler.
  171.  
  172.    FUNCTION
  173.     This command lets you add a software interrupt handler to the
  174.     disk device that gets invoked whenever a disk insertion or removal
  175.     occurs.
  176.  
  177.     You must pass in a properly initialized Exec Interrupt structure
  178.     and be prepared to deal with disk insertions/removals
  179.     immediately. From within the interrupt handler, you may only call the
  180.     status commands that can use IOF_QUICK.
  181.  
  182.     To set up the handler, an Interrupt structure must be initialized.
  183.     This structure is supplied as the io_Data to the TD_ADDCHANGEINT
  184.     command. The handler then gets linked into the handler chain and
  185.     gets invoked whenever a disk change happens. You must eventually
  186.     remove the handler before you exit.
  187.  
  188.     This command only returns when the handler is removed. That is,
  189.     the device holds onto the IO request until the TD_REMCHANGEINT command
  190.     is executed with that same IO request. Hence, you must use SendIO()
  191.     with this command.
  192.  
  193.    IO REQUEST INPUT
  194.     io_Device    preset by the call to OpenDevice()
  195.     io_Unit        preset by the call to OpenDevice()
  196.     io_Command    TD_ADDCHANGEINT
  197.     io_Flags    0
  198.     io_Length    sizeof(struct Interrupt)
  199.     io_Data        pointer to Interrupt structure
  200.  
  201.    IO REQUEST RESULT
  202.     io_Error - 0 for success, or am error code as defined in
  203.                <devices/trackdisk.h>
  204.  
  205.    SEE ALSO
  206.     TD_REMCHANGEINT, <devices/trackdisk.h>, <exec/interrupts.h>,
  207.     exec.library/Cause()
  208.  
  209. trackdisk.device/TD_CHANGENUM                   trackdisk.device/TD_CHANGENUM
  210.  
  211.    NAME
  212.     TD_CHANGENUM -- return the current value of the disk-change counter.
  213.  
  214.    FUNCTION
  215.     This command returns the current value of the disk-change counter (as
  216.     used by the enhanced commands). The disk change counter is incremented
  217.     each time a disk is inserted or removed from the trackdisk unit.
  218.  
  219.    IO REQUEST INPUT
  220.     io_Device    preset by the call to OpenDevice()
  221.     io_Unit        preset by the call to OpenDevice()
  222.     io_Command    TD_CHANGENUM
  223.     io_Flags    0 or IOF_QUICK
  224.  
  225.    IO REQUEST RESULT
  226.     io_Error - 0 for success, or am error code as defined in
  227.                <devices/trackdisk.h>
  228.     io_Actual - if io_Error is 0, this contains the current value of the
  229.             disk-change counter.
  230.  
  231. trackdisk.device/TD_CHANGESTATE               trackdisk.device/TD_CHANGESTATE
  232.  
  233.    NAME
  234.     TD_CHANGESTATE -- check if a disk is currently in a drive.
  235.  
  236.    FUNCTION
  237.     This command checks to see if there is currently a disk in a drive.
  238.  
  239.    IO REQUEST INPUT
  240.     io_Device    preset by the call to OpenDevice()
  241.     io_Unit        preset by the call to OpenDevice()
  242.     io_Command    TD_CHANGESTATE
  243.     io_Flags    0 or IOF_QUICK
  244.  
  245.    IO REQUEST RESULT
  246.     io_Error - 0 for success, or am error code as defined in
  247.                <devices/trackdisk.h>
  248.     io_Actual - if io_Error is 0, this tells you whether a disk is in
  249.             the drive. 0 means there is a disk, while anything else
  250.             indicates there is no disk.
  251.  
  252. trackdisk.device/TD_EJECT                           trackdisk.device/TD_EJECT
  253.  
  254.    NAME
  255.        TD_EJECT -- eject the disk in the drive, if possible.
  256.  
  257.    FUNCTION
  258.     This command causes the drive to attempt to eject the disk in
  259.     it, if any.  Note that the current trackdisk.device does not
  260.     implement this command, but it might in the future, and other
  261.     trackdisk-compatible drivers may implement this command.
  262.  
  263.    IO REQUEST INPUT
  264.     io_Device    preset by the call to OpenDevice()
  265.     io_Unit        preset by the call to OpenDevice()
  266.     io_Command    TD_EJECT
  267.     io_Flags    0 or IOF_QUICK
  268.  
  269.    IO REQUEST RESULT
  270.     io_Error - 0 for success, or am error code as defined in
  271.                <devices/trackdisk.h>
  272.  
  273. trackdisk.device/TD_FORMAT                         trackdisk.device/TD_FORMAT
  274.  
  275.    NAME
  276.     TD_FORMAT/ETD_FORMAT -- format a track on a disk.
  277.  
  278.    FUNCTION
  279.     These commands are used to write data to a track that either
  280.     has not yet been formatted or has had a hard error on a standard write
  281.     command. TD_FORMAT completely ignores all data currently on a track and
  282.     does not check for disk change before performing the command. The
  283.     io_Data field must point to at least one track worth of data. The
  284.     io_Offset field must be track aligned, and the io_Length field must be
  285.     in units of track length (that is, NUMSEC*TD_SECTOR).
  286.  
  287.     The device will format the requested tracks, filling each sector with
  288.     the contents of the buffer pointed to by io_Data. You
  289.     should do a read pass to verify the data.
  290.  
  291.     If you have a hard write error during a normal write, you may find it
  292.     possible to use the TD_FORMAT command to reformat the track as part of
  293.     your error recovery process. ETD_FORMAT will write the sector label
  294.     area if iotd_SecLabel is non-NULL.
  295.  
  296.    IO REQUEST INPUT
  297.     io_Device    preset by the call to OpenDevice()
  298.     io_Unit        preset by the call to OpenDevice()
  299.     io_Command    TD_FORMAT or ETD_FORMAT
  300.     io_Flags    0 or IOF_QUICK
  301.     io_Data        points to a buffer containing the data to write to the
  302.             track, must be at least as large as io_Length.
  303.     io_Length    number of bytes to format, must be a multiple of
  304.             (TD_SECTORS * NUMSEC).
  305.     io_Offset    byte offset from the start of the disk for the track to
  306.             format, must be a multiple of (TD_SECTORS * NUMSEC).
  307.     iotd_Count    (ETD_FORMAT only) maximum allowable change counter
  308.             value.
  309.     iotd_SecLabel    (ETD_FORMAT only) NULL or sector label buffer pointer.
  310.             If provided, the buffer must be a multiple of
  311.             (TD_LABELSIZE * NUMSEC).
  312.  
  313.    IO REQUEST RESULT
  314.     io_Error - 0 for success, or am error code as defined in
  315.                <devices/trackdisk.h>
  316.  
  317.    NOTES
  318.     Under versions of Kickstart earlier than V36, the io_Data had to
  319.     point to a buffer in chip memory. This restriction is no longer
  320.     present as of Kickstart V36 and beyond.
  321.  
  322.    SEE ALSO
  323.     CMD_WRITE, TD_RAWWRITE
  324.  
  325. trackdisk.device/TD_GETDRIVETYPE             trackdisk.device/TD_GETDRIVETYPE
  326.  
  327.    NAME
  328.     TD_GETDRIVETYPE -- return the type of disk drive for the unit that was
  329.                opened.
  330.  
  331.    FUNCTION
  332.     This command returns the type of the disk drive to the user.
  333.     This number will be a small integer and will come from the set of
  334.     DRIVEXXX constants defined in <devices/trackdisk.h>.
  335.  
  336.     The only way you can actually use this command is if the trackdisk
  337.     device understands the drive type of the hardware that is plugged in.
  338.     This is because the OpenDevice() call will fail if the trackdisk device
  339.     does not understand the drive type. To find raw drive identifiers see
  340.     the disk.resource's DR_GETUNITID entry point.
  341.  
  342.    IO REQUEST INPUT
  343.     io_Device    preset by the call to OpenDevice()
  344.     io_Unit        preset by the call to OpenDevice()
  345.     io_Command    TD_GETDRIVETYPE
  346.     io_Flags    0 or IOF_QUICK
  347.  
  348.    IO REQUEST RESULT
  349.     io_Error - 0 for success, or am error code as defined in
  350.                <devices/trackdisk.h>
  351.     io_Actual - if io_Error is 0 this contains the drive type connected to
  352.             this unit.
  353.  
  354.    SEE ALSO
  355.     TD_GETNUMTRACKS, <devices/trackdisk.h>
  356.  
  357. trackdisk.device/TD_GETGEOMETRY               trackdisk.device/TD_GETGEOMETRY
  358.  
  359.    NAME
  360.        TD_GETGEOMETRY -- return the geometry of the drive.
  361.  
  362.    FUNCTION
  363.     This command returns a full set of information about the
  364.     layout of the drive. The information is returned in the
  365.     DriveGeometry structure pointed to by io_Data.
  366.  
  367.    IO REQUEST INPUT
  368.     io_Device    preset by the call to OpenDevice()
  369.     io_Unit        preset by the call to OpenDevice()
  370.     io_Command    TD_GETGEOMETRY
  371.     io_Flags    0 or IOF_QUICK
  372.     io_Data        Pointer to a DriveGeometry structure
  373.     io_Length    sizeof(struct DriveGeometry)
  374.  
  375.    IO REQUEST RESULT
  376.     io_Error - 0 for success, or am error code as defined in
  377.                <devices/trackdisk.h>
  378.  
  379.    NOTE
  380.     This information may change when a disk in inserted when
  381.     certain hardware is present.
  382.  
  383.    SEE ALSO
  384.     TD_GETDRIVETYPE, TD_GETNUMTRACKS
  385.  
  386. trackdisk.device/TD_GETNUMTRACKS             trackdisk.device/TD_GETNUMTRACKS
  387.  
  388.    NAME
  389.     TD_GETNUMTRACKS -- return the number of tracks for the type of disk
  390.                drive for the unit that was opened.
  391.  
  392.    FUNCTION
  393.     This command returns the number of tracks that are available
  394.     on the disk unit.
  395.  
  396.    IO REQUEST INPUT
  397.     io_Device    preset by the call to OpenDevice()
  398.     io_Unit        preset by the call to OpenDevice()
  399.     io_Command    TD_GETNUMTRACKS
  400.     io_Flags    0 or IOF_QUICK
  401.  
  402.    IO REQUEST RESULT
  403.     io_Error - 0 for success, or am error code as defined in
  404.                <devices/trackdisk.h>
  405.     io_Actual - if io_Error is 0 this contains the drive type connected to
  406.             this unit.
  407.  
  408.    SEE ALSO
  409.     TD_GETDRIVETYPE
  410.  
  411. trackdisk.device/TD_MOTOR                           trackdisk.device/TD_MOTOR
  412.  
  413.    NAME
  414.     TD_MOTOR/ETD_MOTOR -- control the on/off state of a drive motor.
  415.  
  416.    FUNCTION
  417.     This command gives control over the disk motor. The motor may be
  418.     turned on or off. When it is on, the drive light automatically turns
  419.     on as well.
  420.  
  421.     If the motor is just being turned on, the device will delay the
  422.     proper amount of time to allow the drive to come up to speed. Normally,
  423.     turning the drive on is not necessary, the device does this
  424.     automatically if it receives a request when the motor is off. However,
  425.     turning the motor off is the programmer's responsibility.
  426.  
  427.     In addition, the standard instructions to the user are that it is safe
  428.     to remove a disk from a drive if and only if the motor is off (that is,
  429.     if the disk light is off).
  430.  
  431.    IO REQUEST INPUT
  432.     io_Device    preset by the call to OpenDevice()
  433.     io_Unit        preset by the call to OpenDevice()
  434.     io_Command    TD_MOTOR or ETD_MOTOR
  435.     io_Flags    0 or IOF_QUICK
  436.     io_Length    the requested state of the motor, 0 to turn the motor
  437.             off, and 1 to turn the motor on.
  438.     iotd_Count    (ETD_MOTOR only) maximum allowable change counter
  439.             value.
  440.  
  441.    IO REQUEST RESULT
  442.     io_Error - 0 for success, or am error code as defined in
  443.                <devices/trackdisk.h>
  444.     io_Actual - if io_Error is 0 this contains the previous state of the
  445.             drive motor.
  446.  
  447. trackdisk.device/TD_PROTSTATUS                 trackdisk.device/TD_PROTSTATUS
  448.  
  449.    NAME
  450.     TD_PROTSTATUS -- return whether the current disk is write-protected.
  451.  
  452.    FUNCTION
  453.     This command is used to determine whether the current disk is
  454.     write-protected.
  455.  
  456.    IO REQUEST INPUT
  457.     io_Device    preset by the call to OpenDevice()
  458.     io_Unit        preset by the call to OpenDevice()
  459.     io_Command    TD_PROTSTATUS
  460.     io_Flags    0 or IOF_QUICK
  461.  
  462.    IO REQUEST RESULT
  463.     io_Error - 0 for success, or am error code as defined in
  464.                <devices/trackdisk.h>
  465.     io_Actual - if io_Error is 0, this tells you whether the disk in the
  466.             drive is write-protected. 0 means the disk is NOT write-
  467.             protected, while any other value indicates it is.
  468.  
  469. trackdisk.device/TD_RAWREAD                       trackdisk.device/TD_RAWREAD
  470.  
  471.    NAME
  472.     TD_RAWREAD/ETD_RAWREAD -- read raw data from the disk.
  473.  
  474.    FUNCTION
  475.     These commands read a track of raw data from disk and deposits it in
  476.     the provided buffer. The data is taken straight from the disk with
  477.     no processing done on it. It will appear exactly as the bits come out
  478.     off the disk, hopefully in some legal MFM format.
  479.  
  480.     This interface is intended for sophisticated programmers only.
  481.     Commodore-Amiga reserves the right to make enhancements to the disk
  482.     format in the future. We will provide compatibility via the
  483.     CMD_READ and ETD_READ commands, anyone using TD_RAWREAD is
  484.     bypassing this upwards compatibility, and may thus stop working.
  485.  
  486.    IO REQUEST INPUT
  487.     io_Device    preset by the call to OpenDevice()
  488.     io_Unit        preset by the call to OpenDevice()
  489.     io_Command      TD_RAWREAD or ETD_RAWREAD.
  490.     io_Flags    if the IOTDB_INDEXSYNC bit is set then the driver
  491.             will make a best effort attempt to start reading
  492.             from the index mark.  Note that there will be at
  493.             least some delay, and perhaps a great deal of delay
  494.             (for example if interrupts have been disabled).
  495.     io_Length    Length of buffer in bytes, with a maximum of 32768
  496.             bytes.
  497.     io_Data        Pointer to CHIP memory buffer where raw track data is
  498.             to be deposited.
  499.     io_Offset    The number of the track to read in.
  500.     iotd_Count    (ETD_RAWREAD only) maximum allowable change counter
  501.             value.
  502.  
  503.    IO REQUEST RESULT
  504.     io_Error - 0 for success, or am error code as defined in
  505.                <devices/trackdisk.h>
  506.  
  507.    NOTES
  508.     The track buffer provided MUST be in CHIP memory
  509.  
  510.     There is a delay between the index pulse and the start of bits
  511.     coming in from the drive (e.g. dma started). This delay
  512.     is in the range of 135-200 microseconds. This delay breaks
  513.     down as follows: 55 microsecs is software interrupt overhead
  514.     (this is the time from interrupt to the write of the DSKLEN
  515.     register). 66 microsecs is one horizontal line delay (remember
  516.     that disk IO is synchronized with agnus' display fetches).
  517.     The last variable (0-65 microsecs) is an additional scan line
  518.     since DSKLEN is poked anywhere in the horizontal line. This leaves
  519.     15 microsecs unaccounted for...  Sigh.
  520.  
  521.     In short, You will almost never get bits within the first 135
  522.     microseconds of the index pulse, and may not get it until 200
  523.     microseconds. At 4 microsecs/bit, this works out to be between
  524.     4 and 7 bytes of user data of delay.
  525.  
  526.    BUGS
  527.     This command does not work reliably under versions of Kickstart
  528.     earlier than V36, especially on systems with 1 floppy drive.
  529.  
  530.    SEE ALSO
  531.     TD_RAWWRITE
  532.  
  533. trackdisk.device/TD_RAWWRITE                     trackdisk.device/TD_RAWWRITE
  534.  
  535.    NAME
  536.     TD_RAWWRITE/ETD_RAWWRITE -- write raw data to the disk.
  537.  
  538.    FUNCTION
  539.     This command writes a track of raw data from the provided buffer to
  540.     the specified track on disk. The data is copied straight to the disk
  541.     with no processing done on it. It will appear exactly on the disk as
  542.     it is in the memory buffer, hopefully in a legal MFM format.
  543.  
  544.     This interface is intended for sophisticated programmers only.
  545.     Commodore-Amiga reserves the right to make enhancements to the disk
  546.     format in the future. We will provide compatibility via the
  547.     CMD_WRITE and ETD_WRITE commands, anyone using TD_RAWWRITE is
  548.     bypassing this upwards compatibility, and may thus stop working.
  549.  
  550.    IO REQUEST INPUT
  551.     io_Device    preset by the call to OpenDevice()
  552.     io_Unit        preset by the call to OpenDevice()
  553.     io_Command      TD_RAWWRITE or ETD_RAWWRITE.
  554.     io_Flags    if the IOTDB_INDEXSYNC bit is set then the driver
  555.             will make a best effort attempt to start writing
  556.             from the index mark.  Note that there will be at
  557.             least some delay, and perhaps a great deal of delay
  558.             (for example if interrupts have been disabled).
  559.     io_Length    Length of buffer in bytes, with a maximum of 32768
  560.             bytes.
  561.     io_Data        Pointer to CHIP memory buffer where raw track data is
  562.             to be taken.
  563.     io_Offset    The number of the track to write to.
  564.     iotd_Count    (ETD_RAWWRITE only) maximum allowable change counter
  565.             value.
  566.  
  567.    IO REQUEST RESULT
  568.     io_Error - 0 for success, or am error code as defined in
  569.                <devices/trackdisk.h>
  570.  
  571.    NOTES
  572.     The track buffer provided MUST be in CHIP memory
  573.  
  574.     There is a delay between the index pulse and the start of bits
  575.     going out to the driver (e.g. write gate enabled). This delay
  576.     is in the range of 135-200 microseconds. This delay breaks
  577.     down as follows: 55 microsecs is software interrupt overhead
  578.     (this is the time from interrupt to the write of the DSKLEN
  579.     register). 66 microsecs is one horizontal line delay (remember
  580.     that disk IO is synchronized with agnus' display fetches).
  581.     The last variable (0-65 microsecs) is an additional scan line
  582.     since DSKLEN is poked anywhere in the horizontal line. This leaves
  583.     15 microsecs unaccounted for...  Sigh.
  584.  
  585.     In short, You will almost never get bits within the first 135
  586.     microseconds of the index pulse, and may not get it until 200
  587.     microseconds. At 4 microsecs/bit, this works out to be between
  588.     4 and 7 bytes of user data of delay.
  589.  
  590.    BUGS
  591.     This command does not work reliably under versions of Kickstart
  592.     earlier than V36, especially on systems with 1 floppy drive.
  593.  
  594.    SEE ALSO
  595.     TD_RAWREAD
  596.  
  597. trackdisk.device/TD_REMCHANGEINT             trackdisk.device/TD_REMCHANGEINT
  598.  
  599.    NAME
  600.     TD_REMCHANGEINT -- remove a disk change software interrupt handler.
  601.  
  602.    FUNCTION
  603.     This command removes a disk change software interrupt added
  604.     by a previous use of TD_ADDCHANGEINT.
  605.  
  606.    IO REQUEST INPUT
  607.     The same IO request used for TD_ADDCHANGEINT.
  608.  
  609.     io_Device    preset by the call to OpenDevice()
  610.     io_Unit        preset by the call to OpenDevice()
  611.     io_Command    TD_REMCHANGEINT
  612.     io_Flags    0
  613.     io_Length    sizeof(struct Interrupt)
  614.     io_Data        pointer to Interrupt structure
  615.  
  616.    IO REQUEST RESULT
  617.     io_Error - 0 for success, or am error code as defined in
  618.                <devices/trackdisk.h>
  619.  
  620.    BUGS
  621.     This command did not function properly under versions of Kickstart
  622.     earlier than V36. A valid workaround under these older versions of
  623.     Kickstart is:
  624.  
  625.         Forbid();
  626.         Remove(ioRequest);
  627.         Permit();
  628.  
  629.     Do not use this workaround in versions of Kickstart >= V36, use
  630.     TD_REMCHANGEINT instead (for future compatibility with V38+).
  631.  
  632.    SEE ALSO
  633.     TD_ADDCHANGEINT, <devices/trackdisk.h>
  634.  
  635. trackdisk.device/TD_SEEK                             trackdisk.device/TD_SEEK
  636.  
  637.    NAME
  638.     TD_SEEK/ETD_SEEK -- control positioning of the drive heads.
  639.  
  640.    FUNCTION
  641.     These commands are currently provided for internal diagnostics,
  642.     disk repair, and head cleaning only.
  643.  
  644.     TD_SEEK and ETD_SEEK move the drive heads to the track specified. The
  645.     io_Offset field should be set to the (byte) offset to which the seek is
  646.     to occur. TD_SEEK and ETD_SEEK do not verify their position until the
  647.     next read. That is, they only move the heads; they do not actually read
  648.     any data.
  649.  
  650.    IO REQUEST INPUT
  651.     io_Device    preset by the call to OpenDevice()
  652.     io_Unit        preset by the call to OpenDevice()
  653.     io_Command    TD_SEEK or ETD_SEEK
  654.     io_Flags    0 or IOF_QUICK
  655.     io_Offset    byte offset from the start of the disk describing
  656.             where to move the head to.
  657.     iotd_Count    (ETD_SEEK only) maximum allowable change counter
  658.             value.
  659.  
  660.    IO REQUEST RESULT
  661.     io_Error - 0 for success, or am error code as defined in
  662.                <devices/trackdisk.h>
  663.  
  664.