TRACKLAYOUT: Difference between revisions
Appearance
New |
mNo edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Track layout. | |||
=== Type === | |||
[[BYTE]] bCommand | |||
=== Type === | [[USHORT]] usHead | ||
USHORT usCylinder | |||
[[ | USHORT usFirstSector | ||
[[ | USHORT cSectors | ||
struct { | struct { | ||
USHORT usSectorNumber | |||
USHORT usSectorSize | |||
} TrackTable[1]; | } TrackTable[1]; | ||
==== C Declaration Method ==== | ==== C Declaration Method ==== | ||
typedef struct | typedef struct | ||
=== Fields === | === 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. | |||
[[Category:Data type]] | |||
Latest revision as of 23:22, 14 March 2018
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.