Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/ata.h
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
/*007*/ u_int16_t vendor7[3]; | /*007*/ u_int16_t vendor7[3]; | ||||
/*010*/ u_int8_t serial[20]; /* serial number */ | /*010*/ u_int8_t serial[20]; /* serial number */ | ||||
/*020*/ u_int16_t retired20; | /*020*/ u_int16_t retired20; | ||||
u_int16_t retired21; | u_int16_t retired21; | ||||
u_int16_t obsolete22; | u_int16_t obsolete22; | ||||
/*023*/ u_int8_t revision[8]; /* firmware revision */ | /*023*/ u_int8_t revision[8]; /* firmware revision */ | ||||
/*027*/ u_int8_t model[40]; /* model name */ | /*027*/ u_int8_t model[40]; /* model name */ | ||||
/*047*/ u_int16_t sectors_intr; /* sectors per interrupt */ | /*047*/ u_int16_t sectors_intr; /* sectors per interrupt */ | ||||
/*048*/ u_int16_t usedmovsd; /* double word read/write? */ | /*048*/ u_int16_t tcg; /* Trusted Computing Group */ | ||||
#define ATA_SUPPORT_TCG 0x0001 | |||||
/*049*/ u_int16_t capabilities1; | /*049*/ u_int16_t capabilities1; | ||||
#define ATA_SUPPORT_DMA 0x0100 | #define ATA_SUPPORT_DMA 0x0100 | ||||
#define ATA_SUPPORT_LBA 0x0200 | #define ATA_SUPPORT_LBA 0x0200 | ||||
#define ATA_SUPPORT_IORDYDIS 0x0400 | #define ATA_SUPPORT_IORDYDIS 0x0400 | ||||
#define ATA_SUPPORT_IORDY 0x0800 | #define ATA_SUPPORT_IORDY 0x0800 | ||||
#define ATA_SUPPORT_OVERLAP 0x4000 | #define ATA_SUPPORT_OVERLAP 0x4000 | ||||
/*050*/ u_int16_t capabilities2; | /*050*/ u_int16_t capabilities2; | ||||
Show All 9 Lines | |||||
#define ATA_FLAG_88 0x0004 /* word 88 valid */ | #define ATA_FLAG_88 0x0004 /* word 88 valid */ | ||||
/*054*/ u_int16_t current_cylinders; | /*054*/ u_int16_t current_cylinders; | ||||
/*055*/ u_int16_t current_heads; | /*055*/ u_int16_t current_heads; | ||||
/*056*/ u_int16_t current_sectors; | /*056*/ u_int16_t current_sectors; | ||||
/*057*/ u_int16_t current_size_1; | /*057*/ u_int16_t current_size_1; | ||||
/*058*/ u_int16_t current_size_2; | /*058*/ u_int16_t current_size_2; | ||||
/*059*/ u_int16_t multi; | /*059*/ u_int16_t multi; | ||||
#define ATA_SUPPORT_BLOCK_ERASE_EXT 0x8000 | |||||
#define ATA_SUPPORT_OVERWRITE_EXT 0x4000 | |||||
#define ATA_SUPPORT_CRYPTO_SCRAMBLE_EXT 0x2000 | |||||
#define ATA_SUPPORT_SANITIZE 0x1000 | |||||
#define ATA_MULTI_VALID 0x0100 | #define ATA_MULTI_VALID 0x0100 | ||||
/*060*/ u_int16_t lba_size_1; | /*060*/ u_int16_t lba_size_1; | ||||
u_int16_t lba_size_2; | u_int16_t lba_size_2; | ||||
u_int16_t obsolete62; | u_int16_t obsolete62; | ||||
/*063*/ u_int16_t mwdmamodes; /* multiword DMA modes */ | /*063*/ u_int16_t mwdmamodes; /* multiword DMA modes */ | ||||
/*064*/ u_int16_t apiomodes; /* advanced PIO modes */ | /*064*/ u_int16_t apiomodes; /* advanced PIO modes */ | ||||
/*065*/ u_int16_t mwdmamin; /* min. M/W DMA time/word ns */ | /*065*/ u_int16_t mwdmamin; /* min. M/W DMA time/word ns */ | ||||
/*066*/ u_int16_t mwdmarec; /* rec. M/W DMA time ns */ | /*066*/ u_int16_t mwdmarec; /* rec. M/W DMA time ns */ | ||||
/*067*/ u_int16_t pioblind; /* min. PIO cycle w/o flow */ | /*067*/ u_int16_t pioblind; /* min. PIO cycle w/o flow */ | ||||
/*068*/ u_int16_t pioiordy; /* min. PIO cycle IORDY flow */ | /*068*/ u_int16_t pioiordy; /* min. PIO cycle IORDY flow */ | ||||
/*069*/ u_int16_t support3; | /*069*/ u_int16_t support3; | ||||
#define ATA_SUPPORT_RZAT 0x0020 | #define ATA_SUPPORT_RZAT 0x0020 | ||||
#define ATA_SUPPORT_DRAT 0x4000 | #define ATA_SUPPORT_DRAT 0x4000 | ||||
#define ATA_ENCRYPTS_ALL_USER_DATA 0x0010 /* Self-encrypting drive */ | |||||
#define ATA_SUPPORT_ZONE_MASK 0x0003 | #define ATA_SUPPORT_ZONE_MASK 0x0003 | ||||
#define ATA_SUPPORT_ZONE_NR 0x0000 | #define ATA_SUPPORT_ZONE_NR 0x0000 | ||||
#define ATA_SUPPORT_ZONE_HOST_AWARE 0x0001 | #define ATA_SUPPORT_ZONE_HOST_AWARE 0x0001 | ||||
#define ATA_SUPPORT_ZONE_DEV_MANAGED 0x0002 | #define ATA_SUPPORT_ZONE_DEV_MANAGED 0x0002 | ||||
u_int16_t reserved70; | u_int16_t reserved70; | ||||
/*071*/ u_int16_t rlsovlap; /* rel time (us) for overlap */ | /*071*/ u_int16_t rlsovlap; /* rel time (us) for overlap */ | ||||
/*072*/ u_int16_t rlsservice; /* rel time (us) for service */ | /*072*/ u_int16_t rlsservice; /* rel time (us) for service */ | ||||
u_int16_t reserved73; | u_int16_t reserved73; | ||||
▲ Show 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | |||||
#define ATA_SECURITY_SUPPORTED 0x0001 /* ATA Security is supported */ | #define ATA_SECURITY_SUPPORTED 0x0001 /* ATA Security is supported */ | ||||
u_int16_t reserved129[31]; | u_int16_t reserved129[31]; | ||||
/*160*/ u_int16_t cfa_powermode1; | /*160*/ u_int16_t cfa_powermode1; | ||||
u_int16_t reserved161; | u_int16_t reserved161; | ||||
/*162*/ u_int16_t cfa_kms_support; | /*162*/ u_int16_t cfa_kms_support; | ||||
/*163*/ u_int16_t cfa_trueide_modes; | /*163*/ u_int16_t cfa_trueide_modes; | ||||
/*164*/ u_int16_t cfa_memory_modes; | /*164*/ u_int16_t cfa_memory_modes; | ||||
u_int16_t reserved165[4]; | u_int16_t reserved165[3]; | ||||
/*168*/ u_int16_t form_factor; | |||||
#define ATA_FORM_FACTOR_MASK 0x000f | |||||
#define ATA_FORM_FACTOR_NOT_REPORTED 0x0000 | |||||
#define ATA_FORM_FACTOR_5_25 0x0001 | |||||
#define ATA_FORM_FACTOR_3_5 0x0002 | |||||
#define ATA_FORM_FACTOR_2_5 0x0003 | |||||
#define ATA_FORM_FACTOR_1_8 0x0004 | |||||
#define ATA_FORM_FACTOR_SUB_1_8 0x0005 | |||||
#define ATA_FORM_FACTOR_MSATA 0x0006 | |||||
#define ATA_FORM_FACTOR_M_2 0x0007 | |||||
#define ATA_FORM_FACTOR_MICRO_SSD 0x0008 | |||||
#define ATA_FORM_FACTOR_C_FAST 0x0009 | |||||
/*169*/ u_int16_t support_dsm; | /*169*/ u_int16_t support_dsm; | ||||
#define ATA_SUPPORT_DSM_TRIM 0x0001 | #define ATA_SUPPORT_DSM_TRIM 0x0001 | ||||
u_int16_t reserved170[6]; | u_int16_t reserved170[6]; | ||||
/*176*/ u_int8_t media_serial[60]; | /*176*/ u_int8_t media_serial[60]; | ||||
/*206*/ u_int16_t sct; | /*206*/ u_int16_t sct; | ||||
u_int16_t reserved207[2]; | u_int16_t reserved207[2]; | ||||
/*209*/ u_int16_t lsalign; | /*209*/ u_int16_t lsalign; | ||||
/*210*/ u_int16_t wrv_sectors_m3_1; | /*210*/ u_int16_t wrv_sectors_m3_1; | ||||
▲ Show 20 Lines • Show All 758 Lines • Show Last 20 Lines |