Jump to content

TRACKLAYOUT

From EDM2
Revision as of 23:22, 14 March 2018 by Ak120 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Track layout.

Type

BYTE      bCommand
USHORT    usHead
USHORT    usCylinder
USHORT    usFirstSector
USHORT    cSectors
struct {
  USHORT  usSectorNumber
  USHORT  usSectorSize
} TrackTable[1];

C Declaration Method

typedef struct

Fields

bCommand
Command information.
Bit 0 If 0, the track layout contains nonconsecutive sectors or does not start with Sector 1. If set (1), the track layout starts with Sector 1 and contains only consecutive sectors. All other bits are reserved and must be set to 0.
usHead
Physical head on the device that performs the operation.
usCylinder
Cylinder to be written, read, or verified.
usFirstSector
Logical sector number within the Track Layout Table that starts the I/O operation.
All the sector numbers start with 0. For example the third sector is number 2.
cSectors
Number of sectors to read, write, or verify.
This value must be less than or equal to the maximum number number of sectors specified in the track table.
The IOCtl subfunctions do not step heads or tracks.
usSectorNumber
Sector number.
There must be one usSectorNumber and usSectorSize in the track layout table for every sector, up to cSectors sectors.
usSectorSize
Sector size.
There must be one usSectorNumber and usSectorSize in the track layout table for every sector, up to cSectors sectors.