User manual
159
For example:
to pass geometry to CHAPI disk drive we must do:
…
CHAPI_DISK_DRIVE_GEOM disk_geom;
…
disk_geom.cylinders_per_disk = 256*2;
disk_geom.tracks_per_cylinder = 2;
disk_geom.sectors_per_track = 40;
disk_geom.bytes_per_sector = 256;
HDD[1]->setup_geometry(disk_geom);
…
In implemented CHAPI disk controller and CHAPI disk drive used
predefined options.
Disk drive status after READ / WRITE command completion
enum
{
// Good status
DRIVE_STS_OK = 0x0001 << 0,
// Bad/fatal disk drive error
DRIVE_STS_BDE = 0x0001 << 1,
// Disk drive SEEK error
DRIVE_STS_SE = 0x0001 << 2,
// Disk drive READ error
DRIVE_STS_RE = 0x0001 << 3,
// Disk drive WRITE error
DRIVE_STS_WE = 0x0001 << 4,
// Disk drive HEAD POSITION error
DRIVE_STS_HPE = 0x0001 << 5,










