Data Structures | Defines

Device attributes
[SMART APIs]

Data Structures

struct  LPDEVICEINFO

Defines

#define INTERACE_TYPE_UNKNOWN   0x00
#define INTERACE_TYPE_SCSI   0x01
#define INTERACE_TYPE_ATAPI   0x02
#define INTERACE_TYPE_ATA   0x03
#define INTERACE_TYPE_1394   0x04
#define INTERACE_TYPE_SSA   0x05
#define INTERACE_TYPE_FIBRE   0x06
#define INTERACE_TYPE_USB   0x07
#define INTERACE_TYPE_RAID   0x08
#define INTERACE_TYPE_ISCSI   0x09
#define INTERACE_TYPE_SAS   0x0A
#define INTERACE_TYPE_SATA   0x0B
#define ATA_COMPLIANCE(x)   (x != 0x0000 && x != 0xFFFF)
#define ATA8_SUPPORTED(x)   (x & (1 << 8))
#define ATA7_SUPPORTED(x)   (x & (1 << 7))
#define ATA6_SUPPORTED(x)   (x & (1 << 6))
#define ATA5_SUPPORTED(x)   (x & (1 << 5))
#define ATA4_SUPPORTED(x)   (x & (1 << 4))
#define TRANSPORT_TYPE_AVAILABLE(x)   (x != 0x0000 && x != 0xFFFF)
#define TRANSPORT_TYPE_SERIAL(x)   (x & (1 << 12))
#define TRANSPORT_TYPE_PARALLEL(x)   ((x & (1 << 12)) == 0)
#define SATA3_0_COMPLIANCE(x)   (x & (1 << 5))
#define SATA2_6_COMPLIANCE(x)   (x & (1 << 4))
#define SATA2_5_COMPLIANCE(x)   (x & (1 << 3))
#define SATA2_EXT_COMPLIANCE(x)   (x & (1 << 2))
#define SATA1_COMPLIANCE(x)   (x & (1 << 1))
#define ATA7_COMPLIANCE(x)   (x & (1 << 1))
#define ATA8_COMPLIANCE(x)   (x & 1)
#define ROTATION_RATE_AVAILABLE(x)   (x != 0)
#define ROTATION_RATE_SSD(x)   (x == 0x0001)
#define MULTIDMA_MODE2_SUPPORTED(x)   (x & (1 << 2))
#define MULTIDMA_MODE1_SUPPORTED(x)   (x & (1 << 1))
#define MULTIDMA_MODE0_SUPPORTED(x)   (x & 1)
#define MULTIDMA_MODE2_SELECTED(x)   (x & (1 << 2))
#define MULTIDMA_MODE1_SELECTED(x)   (x & (1 << 1))
#define MULTIDMA_MODE0_SELECTED(x)   (x & 1)
#define ULTRADMA_MODE6_SUPPORTED(x)   (x & (1 << 6))
#define ULTRADMA_MODE5_SUPPORTED(x)   (x & (1 << 5))
#define ULTRADMA_MODE4_SUPPORTED(x)   (x & (1 << 4))
#define ULTRADMA_MODE3_SUPPORTED(x)   (x & (1 << 3))
#define ULTRADMA_MODE2_SUPPORTED(x)   (x & (1 << 2))
#define ULTRADMA_MODE1_SUPPORTED(x)   (x & (1 << 1))
#define ULTRADMA_MODE0_SUPPORTED(x)   (x & 1)
#define ULTRADMA_MODE6_SELECTED(x)   (x & (1 << 6))
#define ULTRADMA_MODE5_SELECTED(x)   (x & (1 << 5))
#define ULTRADMA_MODE4_SELECTED(x)   (x & (1 << 4))
#define ULTRADMA_MODE3_SELECTED(x)   (x & (1 << 3))
#define ULTRADMA_MODE2_SELECTED(x)   (x & (1 << 2))
#define ULTRADMA_MODE1_SELECTED(x)   (x & (1 << 1))
#define ULTRADMA_MODE0_SELECTED(x)   (x & 1)
#define PIO_MODE3_SUPPORTED(x)   (x & 1)
#define PIO_MODE4_SUPPORTED(x)   (x & (1 << 1))
#define SATA_NCQ_PRIO_INFO_SUPPORTED(x)   (x & (1 << 12))
#define SATA_UNLOAD_NCQ_PENDING_SUPPORTED(x)   (x & (1 << 11))
#define SATA_PHY_EVENT_COUNTERS_SUPPORTED(x)   (x & (1 << 10))
#define SATA_POWER_MGMT_REQUESTS_SUPPORTED(x)   (x & (1 << 9))
#define SATA_NCQ_FEATURES_SUPPORTED(x)   (x & (1 << 8))
#define SATA_GEN2_SIGNAL_SPEED_SUPPORTED(x)   (x & (1 << 2))
#define SATA_GEN1_SIGNAL_SPEED_SUPPORTED(x)   (x & (1 << 1))
#define SATA_SSP_SUPPORTED(x)   (x & (1 << 6))
#define SATA_IN_ORDER_DELIVERY_SUPPORTED(x)   (x & (1 << 4))
#define SATA_INIT_POWER_MGMT_SUPPORTED(x)   (x & (1 << 3))
#define SATA_DMA_SETUP_AUTO_ACT_SUPPORTED(x)   (x & (1 << 2))
#define SATA_NON_ZERO_BUFOFF_SUPPORTED(x)   (x & (1 << 1))
#define SATA_SSP_ENABLED(x)   (x & (1 << 6))
#define SATA_IN_ORDER_DELIVERY_ENABLED(x)   (x & (1 << 4))
#define SATA_INIT_POWER_MGMT_ENABLED(x)   (x & (1 << 3))
#define SATA_DMA_SETUP_AUTO_ACT_ENABLED(x)   (x & (1 << 2))
#define SATA_NON_ZERO_BUFOFF_ENABLED(x)   (x & (1 << 1))
#define AAM_LEVEL_VENDOR_SPECIFIC(x)   (x == 0x00)
#define AAM_LEVEL_MIN_ACOUSTIC(x)   (x == 0x80)
#define AAM_LEVEL_INT_ACOUSTIC(x)   (x >= 0x81 && x <= 0xFD)
#define AAM_LEVEL_MAX_PERFORMANCE(x)   (x == 0xFE)
#define APM_LEVEL_MIN_POWER_WITH_STANDBY(x)   (x == 0x01)
#define APM_LEVEL_INT_POWER_WITH_STANDBY(x)   (x >= 0x02 && x <= 0x7F)
#define APM_LEVEL_MIN_POWER_WITHOUT_STANDBY(x)   (x == 0x80)
#define APM_LEVEL_INT_POWER_WITHOUT_STANDBY(x)   (x >= 0x81 && x <= 0xFD)
#define APM_LEVEL_MAX_PERFORMANCE(x)   (x == 0xFE)
#define SCT_TRANSPORT_SUPPORTED(x)   (x & 1)
#define SCT_DATA_TABLES_SUPPORTED(x)   (x & (1 << 5))
#define SCT_FEATURES_CTRL_SUPPORTED(x)   (x & (1 << 4))
#define SCT_ERROR_RECOVERY_CTRL_SUPPORTED(x)   (x & (1 << 3))
#define SCT_WRITE_SAME_SUPPORTED(x)   (x & (1 << 2))

Define Documentation

#define INTERACE_TYPE_UNKNOWN   0x00
#define INTERACE_TYPE_SCSI   0x01
#define INTERACE_TYPE_ATAPI   0x02
#define INTERACE_TYPE_ATA   0x03
#define INTERACE_TYPE_1394   0x04
#define INTERACE_TYPE_SSA   0x05
#define INTERACE_TYPE_FIBRE   0x06
#define INTERACE_TYPE_USB   0x07
#define INTERACE_TYPE_RAID   0x08
#define INTERACE_TYPE_ISCSI   0x09
#define INTERACE_TYPE_SAS   0x0A
#define INTERACE_TYPE_SATA   0x0B
#define ATA_COMPLIANCE (   x  )     (x != 0x0000 && x != 0xFFFF)
#define ATA8_SUPPORTED (   x  )     (x & (1 << 8))
#define ATA7_SUPPORTED (   x  )     (x & (1 << 7))
#define ATA6_SUPPORTED (   x  )     (x & (1 << 6))
#define ATA5_SUPPORTED (   x  )     (x & (1 << 5))
#define ATA4_SUPPORTED (   x  )     (x & (1 << 4))
#define TRANSPORT_TYPE_AVAILABLE (   x  )     (x != 0x0000 && x != 0xFFFF)
#define TRANSPORT_TYPE_SERIAL (   x  )     (x & (1 << 12))
#define TRANSPORT_TYPE_PARALLEL (   x  )     ((x & (1 << 12)) == 0)
#define SATA3_0_COMPLIANCE (   x  )     (x & (1 << 5))
#define SATA2_6_COMPLIANCE (   x  )     (x & (1 << 4))
#define SATA2_5_COMPLIANCE (   x  )     (x & (1 << 3))
#define SATA2_EXT_COMPLIANCE (   x  )     (x & (1 << 2))
#define SATA1_COMPLIANCE (   x  )     (x & (1 << 1))
#define ATA7_COMPLIANCE (   x  )     (x & (1 << 1))
#define ATA8_COMPLIANCE (   x  )     (x & 1)
#define ROTATION_RATE_AVAILABLE (   x  )     (x != 0)
#define ROTATION_RATE_SSD (   x  )     (x == 0x0001)
#define MULTIDMA_MODE2_SUPPORTED (   x  )     (x & (1 << 2))
#define MULTIDMA_MODE1_SUPPORTED (   x  )     (x & (1 << 1))
#define MULTIDMA_MODE0_SUPPORTED (   x  )     (x & 1)
#define MULTIDMA_MODE2_SELECTED (   x  )     (x & (1 << 2))
#define MULTIDMA_MODE1_SELECTED (   x  )     (x & (1 << 1))
#define MULTIDMA_MODE0_SELECTED (   x  )     (x & 1)
#define ULTRADMA_MODE6_SUPPORTED (   x  )     (x & (1 << 6))
#define ULTRADMA_MODE5_SUPPORTED (   x  )     (x & (1 << 5))
#define ULTRADMA_MODE4_SUPPORTED (   x  )     (x & (1 << 4))
#define ULTRADMA_MODE3_SUPPORTED (   x  )     (x & (1 << 3))
#define ULTRADMA_MODE2_SUPPORTED (   x  )     (x & (1 << 2))
#define ULTRADMA_MODE1_SUPPORTED (   x  )     (x & (1 << 1))
#define ULTRADMA_MODE0_SUPPORTED (   x  )     (x & 1)
#define ULTRADMA_MODE6_SELECTED (   x  )     (x & (1 << 6))
#define ULTRADMA_MODE5_SELECTED (   x  )     (x & (1 << 5))
#define ULTRADMA_MODE4_SELECTED (   x  )     (x & (1 << 4))
#define ULTRADMA_MODE3_SELECTED (   x  )     (x & (1 << 3))
#define ULTRADMA_MODE2_SELECTED (   x  )     (x & (1 << 2))
#define ULTRADMA_MODE1_SELECTED (   x  )     (x & (1 << 1))
#define ULTRADMA_MODE0_SELECTED (   x  )     (x & 1)
#define PIO_MODE3_SUPPORTED (   x  )     (x & 1)
#define PIO_MODE4_SUPPORTED (   x  )     (x & (1 << 1))
#define SATA_NCQ_PRIO_INFO_SUPPORTED (   x  )     (x & (1 << 12))
#define SATA_UNLOAD_NCQ_PENDING_SUPPORTED (   x  )     (x & (1 << 11))
#define SATA_PHY_EVENT_COUNTERS_SUPPORTED (   x  )     (x & (1 << 10))
#define SATA_POWER_MGMT_REQUESTS_SUPPORTED (   x  )     (x & (1 << 9))
#define SATA_NCQ_FEATURES_SUPPORTED (   x  )     (x & (1 << 8))
#define SATA_GEN2_SIGNAL_SPEED_SUPPORTED (   x  )     (x & (1 << 2))
#define SATA_GEN1_SIGNAL_SPEED_SUPPORTED (   x  )     (x & (1 << 1))
#define SATA_SSP_SUPPORTED (   x  )     (x & (1 << 6))
#define SATA_IN_ORDER_DELIVERY_SUPPORTED (   x  )     (x & (1 << 4))
#define SATA_INIT_POWER_MGMT_SUPPORTED (   x  )     (x & (1 << 3))
#define SATA_DMA_SETUP_AUTO_ACT_SUPPORTED (   x  )     (x & (1 << 2))
#define SATA_NON_ZERO_BUFOFF_SUPPORTED (   x  )     (x & (1 << 1))
#define SATA_SSP_ENABLED (   x  )     (x & (1 << 6))
#define SATA_IN_ORDER_DELIVERY_ENABLED (   x  )     (x & (1 << 4))
#define SATA_INIT_POWER_MGMT_ENABLED (   x  )     (x & (1 << 3))
#define SATA_DMA_SETUP_AUTO_ACT_ENABLED (   x  )     (x & (1 << 2))
#define SATA_NON_ZERO_BUFOFF_ENABLED (   x  )     (x & (1 << 1))
#define AAM_LEVEL_VENDOR_SPECIFIC (   x  )     (x == 0x00)
#define AAM_LEVEL_MIN_ACOUSTIC (   x  )     (x == 0x80)
#define AAM_LEVEL_INT_ACOUSTIC (   x  )     (x >= 0x81 && x <= 0xFD)
#define AAM_LEVEL_MAX_PERFORMANCE (   x  )     (x == 0xFE)
#define APM_LEVEL_MIN_POWER_WITH_STANDBY (   x  )     (x == 0x01)
#define APM_LEVEL_INT_POWER_WITH_STANDBY (   x  )     (x >= 0x02 && x <= 0x7F)
#define APM_LEVEL_MIN_POWER_WITHOUT_STANDBY (   x  )     (x == 0x80)
#define APM_LEVEL_INT_POWER_WITHOUT_STANDBY (   x  )     (x >= 0x81 && x <= 0xFD)
#define APM_LEVEL_MAX_PERFORMANCE (   x  )     (x == 0xFE)
#define SCT_TRANSPORT_SUPPORTED (   x  )     (x & 1)
#define SCT_DATA_TABLES_SUPPORTED (   x  )     (x & (1 << 5))
#define SCT_FEATURES_CTRL_SUPPORTED (   x  )     (x & (1 << 4))
#define SCT_ERROR_RECOVERY_CTRL_SUPPORTED (   x  )     (x & (1 << 3))
#define SCT_WRITE_SAME_SUPPORTED (   x  )     (x & (1 << 2))
 All Data Structures Files Functions Variables Enumerations Enumerator Defines