TRACKDISK Types Reference

Per-function autodoc pages link to these types via the type name (e.g., [List](types-trackdisk.md#list)).

Clickable inner types: inside each struct definition, field types that are themselves structs/unions/enums are clickable hyperlinks to their own definitions.

Contents

trackdisk.h


DriveGeometry

Source: devices/trackdisk.h


struct DriveGeometry {
    ULONG   dg_SectorSize;      /* in bytes */
    ULONG   dg_TotalSectors;    /* total # of sectors on drive */
    ULONG   dg_Cylinders;       /* number of cylinders */
    ULONG   dg_CylSectors;      /* number of sectors/cylinder */
    ULONG   dg_Heads;       /* number of surfaces */
    ULONG   dg_TrackSectors;    /* number of sectors/track */
    ULONG   dg_BufMemType;      /* preferred buffer memory type */
                    /* (usually MEMF_PUBLIC) */
    UBYTE   dg_DeviceType;      /* codes as defined in the SCSI-2 spec*/
    UBYTE   dg_Flags;       /* flags, including removable */
    UWORD   dg_Reserved;
};


IOExtTD

Source: devices/trackdisk.h


struct IOExtTD {
    struct IOStdReq iotd_Req;
    ULONG   iotd_Count;
    APTR    iotd_SecLabel;
};


TDU_PublicUnit

Source: devices/trackdisk.h


struct TDU_PublicUnit {
    struct Unit tdu_Unit;       /* base message port */
    UWORD   tdu_Comp01Track;    /* track for first precomp */
    UWORD   tdu_Comp10Track;    /* track for second precomp */
    UWORD   tdu_Comp11Track;    /* track for third precomp */
    ULONG   tdu_StepDelay;      /* time to wait after stepping */
    ULONG   tdu_SettleDelay;    /* time to wait after seeking */
    UBYTE   tdu_RetryCnt;       /* # of times to retry */
    UBYTE   tdu_PubFlags;       /* public flags, see below */
    UWORD   tdu_CurrTrk;        /* track the heads are over... */
                    /* ONLY ACCESS WHILE UNIT IS STOPPED! */
    ULONG   tdu_CalibrateDelay; /* time to wait after stepping */
                    /* during a recalibrate */
    ULONG   tdu_Counter;        /* counter for disk changes... */
                    /* ONLY ACCESS WHILE UNIT IS STOPPED! */
    ULONG   tdu_PostWriteDelay; /* time to wait after a write */
    ULONG   tdu_SideSelectDelay;    /* time to wait after head select */
};