
Home / Autodocs / mfm.device
NAME
TD_RAWWRITE/ETD_RAWWRITE - write raw data to the disk.
FUNCTION
This command writes a track of raw data from the provided buffer to the specified track on disk. The data is copied straight to the disk with no processing done on it. It will appear exactly on the disk as it is in the memory buffer, hopefully in a legal MFM format.
This command is directly forwarded to the trackdisk.device.
INPUTS
- io_Device
-
preset by the call to OpenDevice()
- io_Unit
-
preset by the call to OpenDevice()
- io_Command
-
TD_RAWWRITE or ETD_RAWWRITE.
- io_Flags
-
if the IOTDB_INDEXSYNC bit is set then the driver will make a best effort attempt to start writing from the index mark. Note that there will be at least some delay, and perhaps a great deal of delay (for example if interrupts have been disabled).
- io_Length
-
Length of buffer in bytes, with a maximum of 32768 bytes.
- io_Data
-
Pointer to CHIP memory buffer where raw track data is to be taken.
- io_Offset
-
The number of the track to write to.
- iotd_Count
-
(ETD_RAWWRITE only) maximum allowable change counter value.
RESULT
- io_Error
-
0 for success, or an error code as defined in <devices/trackdisk.h>
NOTES
The track buffer provided MUST be in CHIP memory
SEE ALSO
TD_RAWREAD, the trackdisk autodocs