Jump to content

TRACKLAYOUT: Difference between revisions

From EDM2
Anakor (talk | contribs)
New
 
Ak120 (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== TRACKLAYOUT ==
Track layout.


Track layout.
=== Type ===
 
  [[BYTE]]      bCommand
=== Type ===  
  [[USHORT]]    usHead
 
  USHORT    usCylinder
  [[OS2 API:DataType:BYTE|BYTE]]      bCommand
  USHORT    usFirstSector
  [[OS2 API:DataType:USHORT|USHORT]]    usHead
  USHORT    cSectors
  [[OS2 API:DataType:USHORT|USHORT]]   usCylinder
  [[OS2 API:DataType:USHORT|USHORT]]   usFirstSector
  [[OS2 API:DataType:USHORT|USHORT]]   cSectors
  struct {
  struct {
   [[OS2 API:DataType:USHORT|USHORT]] usSectorNumber
   USHORT  usSectorNumber
   [[OS2 API:DataType:USHORT|USHORT]] usSectorSize
   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.


bCommand        Command information.
[[Category:Data type]]
                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.

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.