smartmontools SVN Rev 3317
Utility to control and monitor storage systems with "S.M.A.R.T."
Classes | Defines | Typedefs | Variables
os_qnxnto.h File Reference
#include <sys/cpt.h>
#include <sys/types.h>
#include <stdio.h>
#include <fcntl.h>
#include <gulliver.h>
#include <sys/dcmd_cam.h>
#include <sys/cam_device.h>
#include "atacmds.h"
Include dependency graph for os_qnxnto.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _drive_attribute
struct  _ata_pass_thru
struct  _scsi_sense
struct  _scsi_sense_descriptor
struct  _scsi_sense_desriptor_header
struct  _ata_status_descriptor
union  _cdb
struct  _cdb::_format_unit
struct  _cdb::_format_unit_old
struct  _cdb::_mode_sense10
struct  _cdb::_ata_pass_thru
struct  _ata_sense

Defines

#define OS_QNXNTO_H_CVSID   "$Id: os_qnxnto.h 3728 2012-12-13 17:57:50Z chrfranke $\n"
#define INQLEN   36
#define CAM_SUCCESS   0
#define CAM_FAILURE   1
#define CAM_FALSE   0
#define CAM_TRUE   1
#define SC_ATA_PT16   0x85
#define ATA_SMART_LBA_MID_SIG   0x4f
#define ATA_SMART_LBA_HI_SIG   0xc2
#define ATA_SMART_SIG   0xc24f
#define ATA_PROTO_MSK   0x1e
#define ATA_PROTO_RESPONSE   (15 << 1)
#define ATA_PROTO_FPDMA   (12 << 1)
#define ATA_PROTO_UDMA_DATA_OUT   (11 << 1)
#define ATA_PROTO_UDMA_DATA_IN   (10 << 1)
#define ATA_PROTO_DEVICE_RESET   (9 << 1)
#define ATA_PROTO_DEVICE_DIAGNOSTIC   (8 << 1)
#define ATA_PROTO_DMA_QUEUED   (7 << 1)
#define ATA_PROTO_DMA   (6 << 1)
#define ATA_PROTO_PIO_DATA_OUT   (5 << 1)
#define ATA_PROTO_PIO_DATA_IN   (4 << 1)
#define ATA_PROTO_DATA_NONE   (3 << 1)
#define ATA_PROTO_SRST   (1 << 1)
#define ATA_PROTO_HRST   (0 << 1)
#define ATA_PROTO_EXTEND   0x01
#define ATA_MCOUNT_MSK   0xe0
#define ATA_FLG_CK_COND   0x20
#define ATA_FLG_T_DIR   0x08
#define ATA_FLG_BYT_BLOK   0x04
#define ATA_FLG_TLEN_STPSIU   0x03
#define ATA_FLG_TLEN_SECTOR_COUNT   0x02
#define ATA_FLG_TLEN_FEATURE   0x01
#define SENSE_DATA_FMT_DESCRIPTOR   0x02
#define SENSE_DTYPE_INFORMATION   0x00
#define SENSE_DTYPE_CSI   0x01
#define SENSE_DTYPE_SKS   0x02
#define SENSE_DTYPE_FRU   0x03
#define SENSE_DTYPE_STREAM   0x04
#define SENSE_DTYPE_BLOCK   0x05
#define SENSE_DTYPE_OSD_OBJ_IDENT   0x06
#define SENSE_DTYPE_OSD_INTEGRITY   0x07
#define SENSE_DTYPE_OSD_ATR_IDENT   0x08
#define SENSE_DTYPE_ATA   0x09
#define ATA_SD_DLEN   0x0c
#define ATA_SD_FLG_EXTEND   0x01
#define SK_MSK   0x0F
#define SK_NO_SENSE   0
#define ASCQ_FILEMARK_DETECTED   0x01
#define ASCQ_EOPM_DETECTED   0x02
#define ASCQ_SETMARK_DETECTED   0x03
#define ASCQ_BOPM_DETECTED   0x04
#define SK_RECOVERED   1
#define ASC_ATA_PASS_THRU   0x00
#define ASCQ_ATA_PASS_THRU_INFO_AVAIL   0x1d
#define SK_NOT_RDY   2
#define ASC_NO_SEEK_COMPLETE   0x02
#define ASC_NOT_READY   0x04
#define ASCQ_CAUSE_NOT_REPORTABLE   0x00
#define ASCQ_BECOMING_READY   0x01
#define ASCQ_INIT_COMMAND_REQUIRED   0x02
#define ASCQ_MANUAL_INTERVENTION_REQUIRED   0x03
#define ASCQ_FORMAT_IN_PROGRESS   0x04
#define ASCQ_UNKNOWN_CHANGED   0xff
#define ASC_MEDIA_FORMAT   0x30
#define ASC_MEDIA_NOT_PRESENT   0x3a
#define ASC_NOT_CONFIGURED   0x3e
#define SK_MEDIUM   3
#define ASC_UNRECOVERABLE_READ_ERROR   0x11
#define ASC_RECORD_NOT_FOUND   0x14
#define ASCQ_RECORD_NOT_FOUND   0x01
#define ASC_UNABLE_TO_RECOVER_TOC   0x57
#define ASC_INCOMPATIBLE_MEDIUM   0x64
#define SK_HARDWARE   4
#define ASC_INTERNAL_TARGET_FAILURE   0x44
#define ASC_MEDIA_LOAD_EJECT_FAILURE   0x53
#define ASCQ_UNRECOVERABLE_CIRC   0x06
#define SK_ILLEGAL   5
#define ASC_INVALID_COMMAND   0x20
#define ASC_INVALID_FIELD   0x24
#define ASC_INVALID_FIELD_PARAMETER   0x26
#define ASC_COMMAND_SEQUENCE_ERROR   0x2c
#define ASCQ_READ_SCRAMBLED   0x03
#define ASC_ILLEGAL_MODE   0x64
#define ASC_COPY_PROTECTION   0x6f
#define SK_UNIT_ATN   6
#define ASC_MEDIUM_CHANGED   0x28
#define ASC_BUS_RESET   0x29
#define ASC_INSUFFICIENT_TIME_FOR_OPERATION   0x2e
#define ASC_OPERATOR_REQUEST   0x5a
#define ASCQ_OPERATOR_MEDIUM_REMOVAL   0x01
#define SK_DATA_PROT   7
#define ASC_WRITE_PROTECTED   0x27
#define SK_BLNK_CHK   8
#define SK_VENDOR   9
#define SK_CPY_ABORT   10
#define SK_CMD_ABORT   11
#define SK_EQUAL   12
#define SK_VOL_OFL   13
#define SK_MISCMP   14
#define SK_RESERVED   15
#define CF_LINK   0x01
#define CF_FLAG   0x02
#define CF_VENDOR0   0x40
#define CF_VENDOR1   0x80
#define CF_FUA   0x08
#define CF_DPO   0x10
#define FU_RSVD0   0xc0
#define FU_FMTDAT   0x10
#define FU_CMPLIST   0x08
#define FMT_RSVD3   0x80
#define FMT_SECT_SIZE_CD   0x70
#define FMT_IMMED   0x08
#define FMT_HEAD   0x04
#define FMT_ST   0x02
#define FMT_CERT   0x01
#define RW_OPT_RELADR   0x01
#define RW_OPT_CORRCT   0x02
#define RW_OPT_FUA   0x08
#define RW_OPT_DPO   0x10
#define MSEL_OPT_PF   0x10
#define MSEL_OPT_SP   0x01
#define LS_OPT_SP   0x01
#define LS_OPT_PCR   0x02
#define LS_PC_CUR_THRESHOLD   0x00
#define LS_PC_CUR_CUMULATIVE   0x01
#define LS_PC_DFLT_THRESHOLD   0x02
#define LS_PC_DFLT_CUMULATIVE   0x03
#define MSNS_OPT_DBD   0x08
#define PC_CURRENT   0x00
#define PC_CHANGEABLE   0x40
#define PC_DEFAULT   0x80
#define PC_SAVED   0xC0
#define PC_MSK   0xC0
#define LD_OPT_IMMED   0x01
#define LD_CMD_START   0x01
#define LD_CMD_LOEJ   0x02
#define LD_CMD_STOP   0x00
#define LD_CMD_EJECT   0x02
#define LD_CMD_LOAD   0x03
#define LD_CMD_SA_HOLD   0x08
#define LD_CMD_SA_EOT   0x04
#define LD_CMD_SA_RT   0x02
#define LD_CMD_SA_LOEJ   0x01
#define LD_CMD_PC_MSK   0xf0
#define LD_CMD_PC_NC   0
#define LD_CMD_PC_ACTIVE   1
#define LD_CMD_PC_IDLE   2
#define LD_CMD_PC_STANDBY   3
#define LD_CMD_PC_SLEEP   5
#define SC_OPT_RELADR   0x01
#define SC_OPT_IMMED   0x02
#define CD_SCAN_DIR_FORWARD   0x00
#define CD_SCAN_DIR_REVERSE   0x10
#define CD_SCAN_TYPE_LBA   0x00
#define CD_SCAN_TYPE_MSF   0x40
#define CD_SCAN_TYPE_TRK   0x80
#define CD_SCAN_TYPE_MSK   0xc0
#define RTOC_OPT_MSF   0x02
#define RTOC_FMT_TOC   0x0
#define RTOC_FMT_SESSION   0x1
#define RTOC_FMT_QSUBCODE   0x2
#define RTOC_FMT_QSUBCHNL   0x3
#define RTOC_FMT_ATIP   0x4
#define RTOC_FMT_CDTEXT   0x5
#define RTOC_CNTL_FMT_SESSION   0x40
#define EXCHANGE_OPT_IMMED   0x01
#define EXCHANGE_CMD_START   0x01
#define EXCHANGE_CMD_LOEJ   0x02
#define GE_OPT_POLLED   0x01
#define NCR_OPERATIONAL_CHANGE   0x02
#define NCR_POWER_MANAGEMENT   0x04
#define NCR_EXTERNAL_REQUEST   0x08
#define NCR_MEDIA   0x10
#define NCR_MULTI_INITIATOR   0x20
#define NCR_DEVICE_BUSY   0x40
#define RSCHNL_OPT_MSF   0x02
#define RSCHNL_DATA_SUBQ   0x40
#define CD_FRAME_SYNC_SIZE   12
#define CD_FRAME_HDR_SIZE   4
#define CD_FRAME_SUB_HDR_SIZE   8
#define CD_FRAME_EDC_SIZE   4
#define CD_FRAME_ECC_SIZE   276
#define CD_FRAME_AUX_SIZE   8
#define CD_FRAME_ZERO_SIZE   8
#define CD_FRAME_SPARE_SIZE   4
#define CD_FRAME_C2_ERR_SIZE   294
#define CD_FRAME_BLOCK_ERR_SIZE   2
#define RDCD_EST_ANY_SECTOR   (0 << 2)
#define RDCD_EST_CDDA_SECTOR   (1 << 2)
#define RDCD_EST_YELLOW_MODE1_SECTOR   (2 << 2)
#define RDCD_EST_YELLOW_MODE2_SECTOR   (3 << 2)
#define RDCD_EST_XA_SECTOR   (4 << 2)
#define RDCD_EST_XA_FORM2_SECTOR   (5 << 2)
#define RDCD_EST_MSK   (7 << 2)
#define RDCD_FLG_SYNC   0x80
#define RDCD_FLG_UDATA   0x10
#define RDCD_FLG_ECC   0x08
#define RDCD_FLG_CD_ERR   0x02
#define RDCD_FLG_CD_BLOCK_ERR   0x04
#define RDCD_FLG_HC_NONE   ( 0x00 << 5 )
#define RDCD_FLG_HC_HDR   ( 0x01 << 5 )
#define RDCD_FLG_HC_SUBHEADER   ( 0x02 << 5 )
#define RDCD_FLG_HC_ALL_HEADERS   ( 0x03 << 5 )
#define ATA_PROTO_MSK   0x1e
#define ATA_PROTO_RESPONSE   (15 << 1)
#define ATA_PROTO_FPDMA   (12 << 1)
#define ATA_PROTO_UDMA_DATA_OUT   (11 << 1)
#define ATA_PROTO_UDMA_DATA_IN   (10 << 1)
#define ATA_PROTO_DEVICE_RESET   (9 << 1)
#define ATA_PROTO_DEVICE_DIAGNOSTIC   (8 << 1)
#define ATA_PROTO_DMA_QUEUED   (7 << 1)
#define ATA_PROTO_DMA   (6 << 1)
#define ATA_PROTO_PIO_DATA_OUT   (5 << 1)
#define ATA_PROTO_PIO_DATA_IN   (4 << 1)
#define ATA_PROTO_DATA_NONE   (3 << 1)
#define ATA_PROTO_SRST   (1 << 1)
#define ATA_PROTO_HRST   (0 << 1)
#define ATA_PROTO_EXTEND   0x01
#define ATA_MCOUNT_MSK   0xe0
#define ATA_FLG_CK_COND   0x20
#define ATA_FLG_T_DIR   0x08
#define ATA_FLG_BYT_BLOK   0x04
#define ATA_FLG_TLEN_STPSIU   0x03
#define ATA_FLG_TLEN_SECTOR_COUNT   0x02
#define ATA_FLG_TLEN_FEATURE   0x01
#define ERASE_OPT_LONG   0x01
#define LOCATE_OPT_CP   0x2
#define LOCATE_OPT_BT   0x4
#define RP_OPT_BT   0x01
#define RP_OPT_LNG   0x02
#define RP_OPT_TCLP   0x04
#define SRW_OPT_FIXED   0x01
#define SRW_OPT_SILI   0x02
#define SPACE_CODE_BLOCKS   0x00
#define SPACE_CODE_FMRKS   0x01
#define SPACE_CODE_SEQ_FMRKS   0x02
#define SPACE_CODE_EOD   0x03
#define SPACE_CODE_SMRKS   0x04
#define SPACE_CODE_SEQ_SMRKS   0x05
#define WF_OPT_IMMED   0x01
#define WF_OPT_WSMK   0x02
#define RD_OPT_MEDIA   0x01
#define FM_OPT_IMMED   0x01
#define FM_OPT_VERIFY   0x02
#define FM_FMT_DFLT   0x00
#define FM_FMT_PARTITION   0x01
#define FM_FMT_FORMAT_PARTITION   0x02

Typedefs

typedef struct _ata_pass_thru ATA_PASS_THRU
typedef struct _eide_identify EIDE_IDENTIFY
typedef struct _ata_sense ATA_SENSE
typedef void CCB
typedef struct _drive_attribute DRIVE_ATTRIBUTE
typedef struct _scsi_sense SCSI_SENSE
typedef struct
_scsi_sense_descriptor 
SCSI_SENSE_DESCRIPTOR
typedef struct
_scsi_sense_desriptor_header 
SCSI_SENSE_DESCRIPTOR_HEADER
typedef struct
_ata_status_descriptor 
ATA_STATUS_DESCRIPTOR
typedef union _cdb CDB

Variables

struct _ata_pass_thru ata_pass_thru_

Define Documentation

#define ASC_ATA_PASS_THRU   0x00

Definition at line 221 of file os_qnxnto.h.

#define ASC_BUS_RESET   0x29

Definition at line 260 of file os_qnxnto.h.

#define ASC_COMMAND_SEQUENCE_ERROR   0x2c

Definition at line 253 of file os_qnxnto.h.

#define ASC_COPY_PROTECTION   0x6f

Definition at line 256 of file os_qnxnto.h.

#define ASC_ILLEGAL_MODE   0x64

Definition at line 255 of file os_qnxnto.h.

#define ASC_INCOMPATIBLE_MEDIUM   0x64

Definition at line 242 of file os_qnxnto.h.

#define ASC_INSUFFICIENT_TIME_FOR_OPERATION   0x2e

Definition at line 261 of file os_qnxnto.h.

#define ASC_INTERNAL_TARGET_FAILURE   0x44

Definition at line 245 of file os_qnxnto.h.

#define ASC_INVALID_COMMAND   0x20

Definition at line 250 of file os_qnxnto.h.

#define ASC_INVALID_FIELD   0x24

Definition at line 251 of file os_qnxnto.h.

#define ASC_INVALID_FIELD_PARAMETER   0x26

Definition at line 252 of file os_qnxnto.h.

#define ASC_MEDIA_FORMAT   0x30

Definition at line 233 of file os_qnxnto.h.

#define ASC_MEDIA_LOAD_EJECT_FAILURE   0x53

Definition at line 246 of file os_qnxnto.h.

#define ASC_MEDIA_NOT_PRESENT   0x3a

Definition at line 234 of file os_qnxnto.h.

#define ASC_MEDIUM_CHANGED   0x28

Definition at line 259 of file os_qnxnto.h.

#define ASC_NO_SEEK_COMPLETE   0x02

Definition at line 225 of file os_qnxnto.h.

#define ASC_NOT_CONFIGURED   0x3e

Definition at line 235 of file os_qnxnto.h.

#define ASC_NOT_READY   0x04

Definition at line 226 of file os_qnxnto.h.

#define ASC_OPERATOR_REQUEST   0x5a

Definition at line 262 of file os_qnxnto.h.

#define ASC_RECORD_NOT_FOUND   0x14

Definition at line 239 of file os_qnxnto.h.

#define ASC_UNABLE_TO_RECOVER_TOC   0x57

Definition at line 241 of file os_qnxnto.h.

#define ASC_UNRECOVERABLE_READ_ERROR   0x11

Definition at line 238 of file os_qnxnto.h.

#define ASC_WRITE_PROTECTED   0x27

Definition at line 266 of file os_qnxnto.h.

#define ASCQ_ATA_PASS_THRU_INFO_AVAIL   0x1d

Definition at line 222 of file os_qnxnto.h.

#define ASCQ_BECOMING_READY   0x01

Definition at line 228 of file os_qnxnto.h.

#define ASCQ_BOPM_DETECTED   0x04

Definition at line 218 of file os_qnxnto.h.

#define ASCQ_CAUSE_NOT_REPORTABLE   0x00

Definition at line 227 of file os_qnxnto.h.

#define ASCQ_EOPM_DETECTED   0x02

Definition at line 216 of file os_qnxnto.h.

#define ASCQ_FILEMARK_DETECTED   0x01

Definition at line 215 of file os_qnxnto.h.

#define ASCQ_FORMAT_IN_PROGRESS   0x04

Definition at line 231 of file os_qnxnto.h.

#define ASCQ_INIT_COMMAND_REQUIRED   0x02

Definition at line 229 of file os_qnxnto.h.

#define ASCQ_MANUAL_INTERVENTION_REQUIRED   0x03

Definition at line 230 of file os_qnxnto.h.

#define ASCQ_OPERATOR_MEDIUM_REMOVAL   0x01

Definition at line 263 of file os_qnxnto.h.

#define ASCQ_READ_SCRAMBLED   0x03

Definition at line 254 of file os_qnxnto.h.

#define ASCQ_RECORD_NOT_FOUND   0x01

Definition at line 240 of file os_qnxnto.h.

#define ASCQ_SETMARK_DETECTED   0x03

Definition at line 217 of file os_qnxnto.h.

#define ASCQ_UNKNOWN_CHANGED   0xff

Definition at line 232 of file os_qnxnto.h.

#define ASCQ_UNRECOVERABLE_CIRC   0x06

Definition at line 247 of file os_qnxnto.h.

#define ATA_FLG_BYT_BLOK   0x04

Definition at line 767 of file os_qnxnto.h.

#define ATA_FLG_BYT_BLOK   0x04

Definition at line 767 of file os_qnxnto.h.

#define ATA_FLG_CK_COND   0x20

Definition at line 765 of file os_qnxnto.h.

#define ATA_FLG_CK_COND   0x20

Definition at line 765 of file os_qnxnto.h.

#define ATA_FLG_T_DIR   0x08

Definition at line 766 of file os_qnxnto.h.

#define ATA_FLG_T_DIR   0x08

Definition at line 766 of file os_qnxnto.h.

#define ATA_FLG_TLEN_FEATURE   0x01

Definition at line 770 of file os_qnxnto.h.

#define ATA_FLG_TLEN_FEATURE   0x01

Definition at line 770 of file os_qnxnto.h.

#define ATA_FLG_TLEN_SECTOR_COUNT   0x02

Definition at line 769 of file os_qnxnto.h.

#define ATA_FLG_TLEN_SECTOR_COUNT   0x02

Definition at line 769 of file os_qnxnto.h.

#define ATA_FLG_TLEN_STPSIU   0x03

Definition at line 768 of file os_qnxnto.h.

#define ATA_FLG_TLEN_STPSIU   0x03

Definition at line 768 of file os_qnxnto.h.

#define ATA_MCOUNT_MSK   0xe0

Definition at line 763 of file os_qnxnto.h.

#define ATA_MCOUNT_MSK   0xe0

Definition at line 763 of file os_qnxnto.h.

#define ATA_PROTO_DATA_NONE   (3 << 1)

Definition at line 758 of file os_qnxnto.h.

#define ATA_PROTO_DATA_NONE   (3 << 1)

Definition at line 758 of file os_qnxnto.h.

#define ATA_PROTO_DEVICE_DIAGNOSTIC   (8 << 1)

Definition at line 753 of file os_qnxnto.h.

#define ATA_PROTO_DEVICE_DIAGNOSTIC   (8 << 1)

Definition at line 753 of file os_qnxnto.h.

#define ATA_PROTO_DEVICE_RESET   (9 << 1)

Definition at line 752 of file os_qnxnto.h.

#define ATA_PROTO_DEVICE_RESET   (9 << 1)

Definition at line 752 of file os_qnxnto.h.

#define ATA_PROTO_DMA   (6 << 1)

Definition at line 755 of file os_qnxnto.h.

#define ATA_PROTO_DMA   (6 << 1)

Definition at line 755 of file os_qnxnto.h.

#define ATA_PROTO_DMA_QUEUED   (7 << 1)

Definition at line 754 of file os_qnxnto.h.

#define ATA_PROTO_DMA_QUEUED   (7 << 1)

Definition at line 754 of file os_qnxnto.h.

#define ATA_PROTO_EXTEND   0x01

Definition at line 761 of file os_qnxnto.h.

#define ATA_PROTO_EXTEND   0x01

Definition at line 761 of file os_qnxnto.h.

#define ATA_PROTO_FPDMA   (12 << 1)

Definition at line 749 of file os_qnxnto.h.

#define ATA_PROTO_FPDMA   (12 << 1)

Definition at line 749 of file os_qnxnto.h.

#define ATA_PROTO_HRST   (0 << 1)

Definition at line 760 of file os_qnxnto.h.

#define ATA_PROTO_HRST   (0 << 1)

Definition at line 760 of file os_qnxnto.h.

#define ATA_PROTO_MSK   0x1e

Definition at line 747 of file os_qnxnto.h.

#define ATA_PROTO_MSK   0x1e

Definition at line 747 of file os_qnxnto.h.

#define ATA_PROTO_PIO_DATA_IN   (4 << 1)

Definition at line 757 of file os_qnxnto.h.

#define ATA_PROTO_PIO_DATA_IN   (4 << 1)

Definition at line 757 of file os_qnxnto.h.

#define ATA_PROTO_PIO_DATA_OUT   (5 << 1)

Definition at line 756 of file os_qnxnto.h.

#define ATA_PROTO_PIO_DATA_OUT   (5 << 1)

Definition at line 756 of file os_qnxnto.h.

#define ATA_PROTO_RESPONSE   (15 << 1)

Definition at line 748 of file os_qnxnto.h.

#define ATA_PROTO_RESPONSE   (15 << 1)

Definition at line 748 of file os_qnxnto.h.

#define ATA_PROTO_SRST   (1 << 1)

Definition at line 759 of file os_qnxnto.h.

#define ATA_PROTO_SRST   (1 << 1)

Definition at line 759 of file os_qnxnto.h.

#define ATA_PROTO_UDMA_DATA_IN   (10 << 1)

Definition at line 751 of file os_qnxnto.h.

#define ATA_PROTO_UDMA_DATA_IN   (10 << 1)

Definition at line 751 of file os_qnxnto.h.

#define ATA_PROTO_UDMA_DATA_OUT   (11 << 1)

Definition at line 750 of file os_qnxnto.h.

#define ATA_PROTO_UDMA_DATA_OUT   (11 << 1)

Definition at line 750 of file os_qnxnto.h.

#define ATA_SD_DLEN   0x0c

Definition at line 193 of file os_qnxnto.h.

#define ATA_SD_FLG_EXTEND   0x01

Definition at line 195 of file os_qnxnto.h.

#define ATA_SMART_LBA_HI_SIG   0xc2

Definition at line 79 of file os_qnxnto.h.

#define ATA_SMART_LBA_MID_SIG   0x4f

Definition at line 78 of file os_qnxnto.h.

#define ATA_SMART_SIG   0xc24f

Definition at line 80 of file os_qnxnto.h.

#define CAM_FAILURE   1

Definition at line 69 of file os_qnxnto.h.

#define CAM_FALSE   0

Definition at line 71 of file os_qnxnto.h.

#define CAM_SUCCESS   0

Definition at line 68 of file os_qnxnto.h.

#define CAM_TRUE   1

Definition at line 72 of file os_qnxnto.h.

#define CD_FRAME_AUX_SIZE   8

Definition at line 697 of file os_qnxnto.h.

#define CD_FRAME_BLOCK_ERR_SIZE   2

Definition at line 701 of file os_qnxnto.h.

#define CD_FRAME_C2_ERR_SIZE   294

Definition at line 700 of file os_qnxnto.h.

#define CD_FRAME_ECC_SIZE   276

Definition at line 696 of file os_qnxnto.h.

#define CD_FRAME_EDC_SIZE   4

Definition at line 695 of file os_qnxnto.h.

#define CD_FRAME_HDR_SIZE   4

Definition at line 693 of file os_qnxnto.h.

#define CD_FRAME_SPARE_SIZE   4

Definition at line 699 of file os_qnxnto.h.

#define CD_FRAME_SUB_HDR_SIZE   8

Definition at line 694 of file os_qnxnto.h.

#define CD_FRAME_SYNC_SIZE   12

Definition at line 692 of file os_qnxnto.h.

#define CD_FRAME_ZERO_SIZE   8

Definition at line 698 of file os_qnxnto.h.

#define CD_SCAN_DIR_FORWARD   0x00

Definition at line 566 of file os_qnxnto.h.

#define CD_SCAN_DIR_REVERSE   0x10

Definition at line 567 of file os_qnxnto.h.

#define CD_SCAN_TYPE_LBA   0x00

Definition at line 570 of file os_qnxnto.h.

#define CD_SCAN_TYPE_MSF   0x40

Definition at line 571 of file os_qnxnto.h.

#define CD_SCAN_TYPE_MSK   0xc0

Definition at line 573 of file os_qnxnto.h.

#define CD_SCAN_TYPE_TRK   0x80

Definition at line 572 of file os_qnxnto.h.

#define CF_DPO   0x10

Definition at line 286 of file os_qnxnto.h.

#define CF_FLAG   0x02

Definition at line 281 of file os_qnxnto.h.

#define CF_FUA   0x08

Definition at line 285 of file os_qnxnto.h.

#define CF_LINK   0x01

Definition at line 280 of file os_qnxnto.h.

#define CF_VENDOR0   0x40

Definition at line 282 of file os_qnxnto.h.

#define CF_VENDOR1   0x80

Definition at line 283 of file os_qnxnto.h.

#define ERASE_OPT_LONG   0x01

Definition at line 791 of file os_qnxnto.h.

#define EXCHANGE_CMD_LOEJ   0x02

Definition at line 617 of file os_qnxnto.h.

#define EXCHANGE_CMD_START   0x01

Definition at line 616 of file os_qnxnto.h.

#define EXCHANGE_OPT_IMMED   0x01

Definition at line 612 of file os_qnxnto.h.

#define FM_FMT_DFLT   0x00

Definition at line 878 of file os_qnxnto.h.

#define FM_FMT_FORMAT_PARTITION   0x02

Definition at line 880 of file os_qnxnto.h.

#define FM_FMT_PARTITION   0x01

Definition at line 879 of file os_qnxnto.h.

#define FM_OPT_IMMED   0x01

Definition at line 875 of file os_qnxnto.h.

#define FM_OPT_VERIFY   0x02

Definition at line 876 of file os_qnxnto.h.

#define FMT_CERT   0x01

Definition at line 348 of file os_qnxnto.h.

#define FMT_HEAD   0x04

Definition at line 346 of file os_qnxnto.h.

#define FMT_IMMED   0x08

Definition at line 345 of file os_qnxnto.h.

#define FMT_RSVD3   0x80

Definition at line 343 of file os_qnxnto.h.

#define FMT_SECT_SIZE_CD   0x70

Definition at line 344 of file os_qnxnto.h.

#define FMT_ST   0x02

Definition at line 347 of file os_qnxnto.h.

#define FU_CMPLIST   0x08

Definition at line 329 of file os_qnxnto.h.

#define FU_FMTDAT   0x10

Definition at line 328 of file os_qnxnto.h.

#define FU_RSVD0   0xc0

Definition at line 327 of file os_qnxnto.h.

#define GE_OPT_POLLED   0x01

Definition at line 641 of file os_qnxnto.h.

#define INQLEN   36

Definition at line 66 of file os_qnxnto.h.

#define LD_CMD_EJECT   0x02

Definition at line 481 of file os_qnxnto.h.

#define LD_CMD_LOAD   0x03

Definition at line 482 of file os_qnxnto.h.

#define LD_CMD_LOEJ   0x02

Definition at line 479 of file os_qnxnto.h.

#define LD_CMD_PC_ACTIVE   1

Definition at line 493 of file os_qnxnto.h.

#define LD_CMD_PC_IDLE   2

Definition at line 494 of file os_qnxnto.h.

#define LD_CMD_PC_MSK   0xf0

Definition at line 491 of file os_qnxnto.h.

#define LD_CMD_PC_NC   0

Definition at line 492 of file os_qnxnto.h.

#define LD_CMD_PC_SLEEP   5

Definition at line 496 of file os_qnxnto.h.

#define LD_CMD_PC_STANDBY   3

Definition at line 495 of file os_qnxnto.h.

#define LD_CMD_SA_EOT   0x04

Definition at line 486 of file os_qnxnto.h.

#define LD_CMD_SA_HOLD   0x08

Definition at line 485 of file os_qnxnto.h.

#define LD_CMD_SA_LOEJ   0x01

Definition at line 488 of file os_qnxnto.h.

#define LD_CMD_SA_RT   0x02

Definition at line 487 of file os_qnxnto.h.

#define LD_CMD_START   0x01

Definition at line 478 of file os_qnxnto.h.

#define LD_CMD_STOP   0x00

Definition at line 480 of file os_qnxnto.h.

#define LD_OPT_IMMED   0x01

Definition at line 474 of file os_qnxnto.h.

#define LOCATE_OPT_BT   0x4

Definition at line 800 of file os_qnxnto.h.

#define LOCATE_OPT_CP   0x2

Definition at line 799 of file os_qnxnto.h.

#define LS_OPT_PCR   0x02

Definition at line 410 of file os_qnxnto.h.

#define LS_OPT_SP   0x01

Definition at line 409 of file os_qnxnto.h.

#define LS_PC_CUR_CUMULATIVE   0x01

Definition at line 413 of file os_qnxnto.h.

#define LS_PC_CUR_THRESHOLD   0x00

Definition at line 412 of file os_qnxnto.h.

#define LS_PC_DFLT_CUMULATIVE   0x03

Definition at line 415 of file os_qnxnto.h.

#define LS_PC_DFLT_THRESHOLD   0x02

Definition at line 414 of file os_qnxnto.h.

#define MSEL_OPT_PF   0x10

Definition at line 384 of file os_qnxnto.h.

#define MSEL_OPT_SP   0x01

Definition at line 385 of file os_qnxnto.h.

#define MSNS_OPT_DBD   0x08

Definition at line 427 of file os_qnxnto.h.

#define NCR_DEVICE_BUSY   0x40

Definition at line 650 of file os_qnxnto.h.

#define NCR_EXTERNAL_REQUEST   0x08

Definition at line 647 of file os_qnxnto.h.

#define NCR_MEDIA   0x10

Definition at line 648 of file os_qnxnto.h.

#define NCR_MULTI_INITIATOR   0x20

Definition at line 649 of file os_qnxnto.h.

#define NCR_OPERATIONAL_CHANGE   0x02

Definition at line 645 of file os_qnxnto.h.

#define NCR_POWER_MANAGEMENT   0x04

Definition at line 646 of file os_qnxnto.h.

#define OS_QNXNTO_H_CVSID   "$Id: os_qnxnto.h 3728 2012-12-13 17:57:50Z chrfranke $\n"

Definition at line 26 of file os_qnxnto.h.

#define PC_CHANGEABLE   0x40

Definition at line 430 of file os_qnxnto.h.

#define PC_CURRENT   0x00

Definition at line 429 of file os_qnxnto.h.

#define PC_DEFAULT   0x80

Definition at line 431 of file os_qnxnto.h.

#define PC_MSK   0xC0

Definition at line 433 of file os_qnxnto.h.

#define PC_SAVED   0xC0

Definition at line 432 of file os_qnxnto.h.

#define RD_OPT_MEDIA   0x01

Definition at line 866 of file os_qnxnto.h.

#define RDCD_EST_ANY_SECTOR   (0 << 2)

Definition at line 707 of file os_qnxnto.h.

#define RDCD_EST_CDDA_SECTOR   (1 << 2)

Definition at line 708 of file os_qnxnto.h.

#define RDCD_EST_MSK   (7 << 2)

Definition at line 713 of file os_qnxnto.h.

#define RDCD_EST_XA_FORM2_SECTOR   (5 << 2)

Definition at line 712 of file os_qnxnto.h.

#define RDCD_EST_XA_SECTOR   (4 << 2)

Definition at line 711 of file os_qnxnto.h.

#define RDCD_EST_YELLOW_MODE1_SECTOR   (2 << 2)

Definition at line 709 of file os_qnxnto.h.

#define RDCD_EST_YELLOW_MODE2_SECTOR   (3 << 2)

Definition at line 710 of file os_qnxnto.h.

#define RDCD_FLG_CD_BLOCK_ERR   0x04

Definition at line 721 of file os_qnxnto.h.

#define RDCD_FLG_CD_ERR   0x02

Definition at line 720 of file os_qnxnto.h.

#define RDCD_FLG_ECC   0x08

Definition at line 719 of file os_qnxnto.h.

#define RDCD_FLG_HC_ALL_HEADERS   ( 0x03 << 5 )

Definition at line 725 of file os_qnxnto.h.

#define RDCD_FLG_HC_HDR   ( 0x01 << 5 )

Definition at line 723 of file os_qnxnto.h.

#define RDCD_FLG_HC_NONE   ( 0x00 << 5 )

Definition at line 722 of file os_qnxnto.h.

#define RDCD_FLG_HC_SUBHEADER   ( 0x02 << 5 )

Definition at line 724 of file os_qnxnto.h.

#define RDCD_FLG_SYNC   0x80

Definition at line 717 of file os_qnxnto.h.

#define RDCD_FLG_UDATA   0x10

Definition at line 718 of file os_qnxnto.h.

#define RP_OPT_BT   0x01

Definition at line 816 of file os_qnxnto.h.

#define RP_OPT_LNG   0x02

Definition at line 817 of file os_qnxnto.h.

#define RP_OPT_TCLP   0x04

Definition at line 818 of file os_qnxnto.h.

#define RSCHNL_DATA_SUBQ   0x40

Definition at line 682 of file os_qnxnto.h.

#define RSCHNL_OPT_MSF   0x02

Definition at line 680 of file os_qnxnto.h.

#define RTOC_CNTL_FMT_SESSION   0x40

Definition at line 598 of file os_qnxnto.h.

#define RTOC_FMT_ATIP   0x4

Definition at line 590 of file os_qnxnto.h.

#define RTOC_FMT_CDTEXT   0x5

Definition at line 591 of file os_qnxnto.h.

#define RTOC_FMT_QSUBCHNL   0x3

Definition at line 589 of file os_qnxnto.h.

#define RTOC_FMT_QSUBCODE   0x2

Definition at line 588 of file os_qnxnto.h.

#define RTOC_FMT_SESSION   0x1

Definition at line 587 of file os_qnxnto.h.

#define RTOC_FMT_TOC   0x0

Definition at line 586 of file os_qnxnto.h.

#define RTOC_OPT_MSF   0x02

Definition at line 584 of file os_qnxnto.h.

#define RW_OPT_CORRCT   0x02

Definition at line 355 of file os_qnxnto.h.

#define RW_OPT_DPO   0x10

Definition at line 357 of file os_qnxnto.h.

#define RW_OPT_FUA   0x08

Definition at line 356 of file os_qnxnto.h.

#define RW_OPT_RELADR   0x01

Definition at line 354 of file os_qnxnto.h.

#define SC_ATA_PT16   0x85

Definition at line 76 of file os_qnxnto.h.

#define SC_OPT_IMMED   0x02

Definition at line 506 of file os_qnxnto.h.

#define SC_OPT_RELADR   0x01

Definition at line 505 of file os_qnxnto.h.

#define SENSE_DATA_FMT_DESCRIPTOR   0x02

Definition at line 125 of file os_qnxnto.h.

#define SENSE_DTYPE_ATA   0x09

Definition at line 189 of file os_qnxnto.h.

#define SENSE_DTYPE_BLOCK   0x05

Definition at line 185 of file os_qnxnto.h.

#define SENSE_DTYPE_CSI   0x01

Definition at line 181 of file os_qnxnto.h.

#define SENSE_DTYPE_FRU   0x03

Definition at line 183 of file os_qnxnto.h.

#define SENSE_DTYPE_INFORMATION   0x00

Definition at line 180 of file os_qnxnto.h.

#define SENSE_DTYPE_OSD_ATR_IDENT   0x08

Definition at line 188 of file os_qnxnto.h.

#define SENSE_DTYPE_OSD_INTEGRITY   0x07

Definition at line 187 of file os_qnxnto.h.

#define SENSE_DTYPE_OSD_OBJ_IDENT   0x06

Definition at line 186 of file os_qnxnto.h.

#define SENSE_DTYPE_SKS   0x02

Definition at line 182 of file os_qnxnto.h.

#define SENSE_DTYPE_STREAM   0x04

Definition at line 184 of file os_qnxnto.h.

#define SK_BLNK_CHK   8

Definition at line 268 of file os_qnxnto.h.

#define SK_CMD_ABORT   11

Definition at line 271 of file os_qnxnto.h.

#define SK_CPY_ABORT   10

Definition at line 270 of file os_qnxnto.h.

#define SK_DATA_PROT   7

Definition at line 265 of file os_qnxnto.h.

#define SK_EQUAL   12

Definition at line 272 of file os_qnxnto.h.

#define SK_HARDWARE   4

Definition at line 244 of file os_qnxnto.h.

#define SK_ILLEGAL   5

Definition at line 249 of file os_qnxnto.h.

#define SK_MEDIUM   3

Definition at line 237 of file os_qnxnto.h.

#define SK_MISCMP   14

Definition at line 274 of file os_qnxnto.h.

#define SK_MSK   0x0F

Definition at line 212 of file os_qnxnto.h.

#define SK_NO_SENSE   0

Definition at line 214 of file os_qnxnto.h.

#define SK_NOT_RDY   2

Definition at line 224 of file os_qnxnto.h.

#define SK_RECOVERED   1

Definition at line 220 of file os_qnxnto.h.

#define SK_RESERVED   15

Definition at line 275 of file os_qnxnto.h.

#define SK_UNIT_ATN   6

Definition at line 258 of file os_qnxnto.h.

#define SK_VENDOR   9

Definition at line 269 of file os_qnxnto.h.

#define SK_VOL_OFL   13

Definition at line 273 of file os_qnxnto.h.

#define SPACE_CODE_BLOCKS   0x00

Definition at line 844 of file os_qnxnto.h.

#define SPACE_CODE_EOD   0x03

Definition at line 847 of file os_qnxnto.h.

#define SPACE_CODE_FMRKS   0x01

Definition at line 845 of file os_qnxnto.h.

#define SPACE_CODE_SEQ_FMRKS   0x02

Definition at line 846 of file os_qnxnto.h.

#define SPACE_CODE_SEQ_SMRKS   0x05

Definition at line 849 of file os_qnxnto.h.

#define SPACE_CODE_SMRKS   0x04

Definition at line 848 of file os_qnxnto.h.

#define SRW_OPT_FIXED   0x01

Definition at line 826 of file os_qnxnto.h.

#define SRW_OPT_SILI   0x02

Definition at line 827 of file os_qnxnto.h.

#define WF_OPT_IMMED   0x01

Definition at line 857 of file os_qnxnto.h.

#define WF_OPT_WSMK   0x02

Definition at line 858 of file os_qnxnto.h.


Typedef Documentation

typedef struct _ata_pass_thru ATA_PASS_THRU

Definition at line 47 of file os_qnxnto.h.

typedef struct _ata_sense ATA_SENSE

Definition at line 49 of file os_qnxnto.h.

typedef void CCB

Definition at line 51 of file os_qnxnto.h.

typedef union _cdb CDB
typedef struct _eide_identify EIDE_IDENTIFY

Definition at line 48 of file os_qnxnto.h.

typedef struct _scsi_sense SCSI_SENSE

Variable Documentation