/*
* This file is auto - generated . Modifications will be lost .
*
* See https : //android.googlesource.com/platform/bionic/+/master/libc/kernel/
* for more information .
*/
#ifndef _LINUX_HDREG_H
#define _LINUX_HDREG_H
#include <linux/types.h>
#define HDIO_DRIVE_CMD_HDR_SIZE (4 * sizeof (__u8))
#define HDIO_DRIVE_HOB_HDR_SIZE (8 * sizeof (__u8))
#define HDIO_DRIVE_TASK_HDR_SIZE (8 * sizeof (__u8))
#define IDE_DRIVE_TASK_NO_DATA 0
#define IDE_DRIVE_TASK_INVALID - 1
#define IDE_DRIVE_TASK_SET_XFER 1
#define IDE_DRIVE_TASK_IN 2
#define IDE_DRIVE_TASK_OUT 3
#define IDE_DRIVE_TASK_RAW_WRITE 4
#define IDE_TASKFILE_STD_IN_FLAGS 0 xFE
#define IDE_HOB_STD_IN_FLAGS 0 x3C
#define IDE_TASKFILE_STD_OUT_FLAGS 0 xFE
#define IDE_HOB_STD_OUT_FLAGS 0 x3C
typedef unsigned char task_ioreg_t;
typedef unsigned long sata_ioreg_t;
typedef union ide_reg_valid_s {
unsigned all : 16 ;
struct {
unsigned data : 1 ;
unsigned error_feature : 1 ;
unsigned sector : 1 ;
unsigned nsector : 1 ;
unsigned lcyl : 1 ;
unsigned hcyl : 1 ;
unsigned select : 1 ;
unsigned status_command : 1 ;
unsigned data_hob : 1 ;
unsigned error_feature_hob : 1 ;
unsigned sector_hob : 1 ;
unsigned nsector_hob : 1 ;
unsigned lcyl_hob : 1 ;
unsigned hcyl_hob : 1 ;
unsigned select_hob : 1 ;
unsigned control_hob : 1 ;
} b;
} ide_reg_valid_t;
typedef struct ide_task_request_s {
__u8 io_ports[8 ];
__u8 hob_ports[8 ];
ide_reg_valid_t out_flags;
ide_reg_valid_t in_flags;
int data_phase;
int req_cmd;
unsigned long out_size;
unsigned long in_size;
} ide_task_request_t;
typedef struct ide_ioctl_request_s {
ide_task_request_t * task_request;
unsigned char * out_buffer;
unsigned char * in_buffer;
} ide_ioctl_request_t;
struct hd_drive_cmd_hdr {
__u8 command;
__u8 sector_number;
__u8 feature;
__u8 sector_count;
};
typedef struct hd_drive_task_hdr {
__u8 data;
__u8 feature;
__u8 sector_count;
__u8 sector_number;
__u8 low_cylinder;
__u8 high_cylinder;
__u8 device_head;
__u8 command;
} task_struct_t;
typedef struct hd_drive_hob_hdr {
__u8 data;
__u8 feature;
__u8 sector_count;
__u8 sector_number;
__u8 low_cylinder;
__u8 high_cylinder;
__u8 device_head;
__u8 control;
} hob_struct_t;
#define TASKFILE_NO_DATA 0 x0000
#define TASKFILE_IN 0 x0001
#define TASKFILE_MULTI_IN 0 x0002
#define TASKFILE_OUT 0 x0004
#define TASKFILE_MULTI_OUT 0 x0008
#define TASKFILE_IN_OUT 0 x0010
#define TASKFILE_IN_DMA 0 x0020
#define TASKFILE_OUT_DMA 0 x0040
#define TASKFILE_IN_DMAQ 0 x0080
#define TASKFILE_OUT_DMAQ 0 x0100
#define TASKFILE_P_IN 0 x0200
#define TASKFILE_P_OUT 0 x0400
#define TASKFILE_P_IN_DMA 0 x0800
#define TASKFILE_P_OUT_DMA 0 x1000
#define TASKFILE_P_IN_DMAQ 0 x2000
#define TASKFILE_P_OUT_DMAQ 0 x4000
#define TASKFILE_48 0 x8000
#define TASKFILE_INVALID 0 x7fff
#define WIN_NOP 0 x00
#define CFA_REQ_EXT_ERROR_CODE 0 x03
#define WIN_SRST 0 x08
#define WIN_DEVICE_RESET 0 x08
#define WIN_RECAL 0 x10
#define WIN_RESTORE WIN_RECAL
#define WIN_READ 0 x20
#define WIN_READ_ONCE 0 x21
#define WIN_READ_LONG 0 x22
#define WIN_READ_LONG_ONCE 0 x23
#define WIN_READ_EXT 0 x24
#define WIN_READDMA_EXT 0 x25
#define WIN_READDMA_QUEUED_EXT 0 x26
#define WIN_READ_NATIVE_MAX_EXT 0 x27
#define WIN_MULTREAD_EXT 0 x29
#define WIN_WRITE 0 x30
#define WIN_WRITE_ONCE 0 x31
#define WIN_WRITE_LONG 0 x32
#define WIN_WRITE_LONG_ONCE 0 x33
#define WIN_WRITE_EXT 0 x34
#define WIN_WRITEDMA_EXT 0 x35
#define WIN_WRITEDMA_QUEUED_EXT 0 x36
#define WIN_SET_MAX_EXT 0 x37
#define CFA_WRITE_SECT_WO_ERASE 0 x38
#define WIN_MULTWRITE_EXT 0 x39
#define WIN_WRITE_VERIFY 0 x3C
#define WIN_VERIFY 0 x40
#define WIN_VERIFY_ONCE 0 x41
#define WIN_VERIFY_EXT 0 x42
#define WIN_FORMAT 0 x50
#define WIN_INIT 0 x60
#define WIN_SEEK 0 x70
#define CFA_TRANSLATE_SECTOR 0 x87
#define WIN_DIAGNOSE 0 x90
#define WIN_SPECIFY 0 x91
#define WIN_DOWNLOAD_MICROCODE 0 x92
#define WIN_STANDBYNOW2 0 x94
#define WIN_STANDBY2 0 x96
#define WIN_SETIDLE2 0 x97
#define WIN_CHECKPOWERMODE2 0 x98
#define WIN_SLEEPNOW2 0 x99
#define WIN_PACKETCMD 0 xA0
#define WIN_PIDENTIFY 0 xA1
#define WIN_QUEUED_SERVICE 0 xA2
#define WIN_SMART 0 xB0
#define CFA_ERASE_SECTORS 0 xC0
#define WIN_MULTREAD 0 xC4
#define WIN_MULTWRITE 0 xC5
#define WIN_SETMULT 0 xC6
#define WIN_READDMA_QUEUED 0 xC7
#define WIN_READDMA 0 xC8
#define WIN_READDMA_ONCE 0 xC9
#define WIN_WRITEDMA 0 xCA
#define WIN_WRITEDMA_ONCE 0 xCB
#define WIN_WRITEDMA_QUEUED 0 xCC
#define CFA_WRITE_MULTI_WO_ERASE 0 xCD
#define WIN_GETMEDIASTATUS 0 xDA
#define WIN_ACKMEDIACHANGE 0 xDB
#define WIN_POSTBOOT 0 xDC
#define WIN_PREBOOT 0 xDD
#define WIN_DOORLOCK 0 xDE
#define WIN_DOORUNLOCK 0 xDF
#define WIN_STANDBYNOW1 0 xE0
#define WIN_IDLEIMMEDIATE 0 xE1
#define WIN_STANDBY 0 xE2
#define WIN_SETIDLE1 0 xE3
#define WIN_READ_BUFFER 0 xE4
#define WIN_CHECKPOWERMODE1 0 xE5
#define WIN_SLEEPNOW1 0 xE6
#define WIN_FLUSH_CACHE 0 xE7
#define WIN_WRITE_BUFFER 0 xE8
#define WIN_WRITE_SAME 0 xE9
#define WIN_FLUSH_CACHE_EXT 0 xEA
#define WIN_IDENTIFY 0 xEC
#define WIN_MEDIAEJECT 0 xED
#define WIN_IDENTIFY_DMA 0 xEE
#define WIN_SETFEATURES 0 xEF
#define EXABYTE_ENABLE_NEST 0 xF0
#define WIN_SECURITY_SET_PASS 0 xF1
#define WIN_SECURITY_UNLOCK 0 xF2
#define WIN_SECURITY_ERASE_PREPARE 0 xF3
#define WIN_SECURITY_ERASE_UNIT 0 xF4
#define WIN_SECURITY_FREEZE_LOCK 0 xF5
#define WIN_SECURITY_DISABLE 0 xF6
#define WIN_READ_NATIVE_MAX 0 xF8
#define WIN_SET_MAX 0 xF9
#define DISABLE_SEAGATE 0 xFB
#define SMART_READ_VALUES 0 xD0
#define SMART_READ_THRESHOLDS 0 xD1
#define SMART_AUTOSAVE 0 xD2
#define SMART_SAVE 0 xD3
#define SMART_IMMEDIATE_OFFLINE 0 xD4
#define SMART_READ_LOG_SECTOR 0 xD5
#define SMART_WRITE_LOG_SECTOR 0 xD6
#define SMART_WRITE_THRESHOLDS 0 xD7
#define SMART_ENABLE 0 xD8
#define SMART_DISABLE 0 xD9
#define SMART_STATUS 0 xDA
#define SMART_AUTO_OFFLINE 0 xDB
#define SMART_LCYL_PASS 0 x4F
#define SMART_HCYL_PASS 0 xC2
#define SETFEATURES_EN_8BIT 0 x01
#define SETFEATURES_EN_WCACHE 0 x02
#define SETFEATURES_DIS_DEFECT 0 x04
#define SETFEATURES_EN_APM 0 x05
#define SETFEATURES_EN_SAME_R 0 x22
#define SETFEATURES_DIS_MSN 0 x31
#define SETFEATURES_DIS_RETRY 0 x33
#define SETFEATURES_EN_AAM 0 x42
#define SETFEATURES_RW_LONG 0 x44
#define SETFEATURES_SET_CACHE 0 x54
#define SETFEATURES_DIS_RLA 0 x55
#define SETFEATURES_EN_RI 0 x5D
#define SETFEATURES_EN_SI 0 x5E
#define SETFEATURES_DIS_RPOD 0 x66
#define SETFEATURES_DIS_ECC 0 x77
#define SETFEATURES_DIS_8BIT 0 x81
#define SETFEATURES_DIS_WCACHE 0 x82
#define SETFEATURES_EN_DEFECT 0 x84
#define SETFEATURES_DIS_APM 0 x85
#define SETFEATURES_EN_ECC 0 x88
#define SETFEATURES_EN_MSN 0 x95
#define SETFEATURES_EN_RETRY 0 x99
#define SETFEATURES_EN_RLA 0 xAA
#define SETFEATURES_PREFETCH 0 xAB
#define SETFEATURES_EN_REST 0 xAC
#define SETFEATURES_4B_RW_LONG 0 xBB
#define SETFEATURES_DIS_AAM 0 xC2
#define SETFEATURES_EN_RPOD 0 xCC
#define SETFEATURES_DIS_RI 0 xDD
#define SETFEATURES_EN_SAME_M 0 xDD
#define SETFEATURES_DIS_SI 0 xDE
#define SECURITY_SET_PASSWORD 0 xBA
#define SECURITY_UNLOCK 0 xBB
#define SECURITY_ERASE_PREPARE 0 xBC
#define SECURITY_ERASE_UNIT 0 xBD
#define SECURITY_FREEZE_LOCK 0 xBE
#define SECURITY_DISABLE_PASSWORD 0 xBF
struct hd_geometry {
unsigned char heads;
unsigned char sectors;
unsigned short cylinders;
unsigned long start;
};
#define HDIO_GETGEO 0 x0301
#define HDIO_GET_UNMASKINTR 0 x0302
#define HDIO_GET_MULTCOUNT 0 x0304
#define HDIO_GET_QDMA 0 x0305
#define HDIO_SET_XFER 0 x0306
#define HDIO_OBSOLETE_IDENTITY 0 x0307
#define HDIO_GET_KEEPSETTINGS 0 x0308
#define HDIO_GET_32BIT 0 x0309
#define HDIO_GET_NOWERR 0 x030a
#define HDIO_GET_DMA 0 x030b
#define HDIO_GET_NICE 0 x030c
#define HDIO_GET_IDENTITY 0 x030d
#define HDIO_GET_WCACHE 0 x030e
#define HDIO_GET_ACOUSTIC 0 x030f
#define HDIO_GET_ADDRESS 0 x0310
#define HDIO_GET_BUSSTATE 0 x031a
#define HDIO_TRISTATE_HWIF 0 x031b
#define HDIO_DRIVE_RESET 0 x031c
#define HDIO_DRIVE_TASKFILE 0 x031d
#define HDIO_DRIVE_TASK 0 x031e
#define HDIO_DRIVE_CMD 0 x031f
#define HDIO_DRIVE_CMD_AEB HDIO_DRIVE_TASK
#define HDIO_SET_MULTCOUNT 0 x0321
#define HDIO_SET_UNMASKINTR 0 x0322
#define HDIO_SET_KEEPSETTINGS 0 x0323
#define HDIO_SET_32BIT 0 x0324
#define HDIO_SET_NOWERR 0 x0325
#define HDIO_SET_DMA 0 x0326
#define HDIO_SET_PIO_MODE 0 x0327
#define HDIO_SCAN_HWIF 0 x0328
#define HDIO_UNREGISTER_HWIF 0 x032a
#define HDIO_SET_NICE 0 x0329
#define HDIO_SET_WCACHE 0 x032b
#define HDIO_SET_ACOUSTIC 0 x032c
#define HDIO_SET_BUSSTATE 0 x032d
#define HDIO_SET_QDMA 0 x032e
#define HDIO_SET_ADDRESS 0 x032f
enum {
BUSSTATE_OFF = 0 ,
BUSSTATE_ON,
BUSSTATE_TRISTATE
};
#define __NEW_HD_DRIVE_ID
struct hd_driveid {
unsigned short config;
unsigned short cyls;
unsigned short reserved2;
unsigned short heads;
unsigned short track_bytes;
unsigned short sector_bytes;
unsigned short sectors;
unsigned short vendor0;
unsigned short vendor1;
unsigned short vendor2;
unsigned char serial_no[20 ];
unsigned short buf_type;
unsigned short buf_size;
unsigned short ecc_bytes;
unsigned char fw_rev[8 ];
unsigned char model[40 ];
unsigned char max_multsect;
unsigned char vendor3;
unsigned short dword_io;
unsigned char vendor4;
unsigned char capability;
unsigned short reserved50;
unsigned char vendor5;
unsigned char tPIO;
unsigned char vendor6;
unsigned char tDMA;
unsigned short field_valid;
unsigned short cur_cyls;
unsigned short cur_heads;
unsigned short cur_sectors;
unsigned short cur_capacity0;
unsigned short cur_capacity1;
unsigned char multsect;
unsigned char multsect_valid;
unsigned int lba_capacity;
unsigned short dma_1word;
unsigned short dma_mword;
unsigned short eide_pio_modes;
unsigned short eide_dma_min;
unsigned short eide_dma_time;
unsigned short eide_pio;
unsigned short eide_pio_iordy;
unsigned short words69_70[2 ];
unsigned short words71_74[4 ];
unsigned short queue_depth;
unsigned short words76_79[4 ];
unsigned short major_rev_num;
unsigned short minor_rev_num;
unsigned short command_set_1;
unsigned short command_set_2;
unsigned short cfsse;
unsigned short cfs_enable_1;
unsigned short cfs_enable_2;
unsigned short csf_default;
unsigned short dma_ultra;
unsigned short trseuc;
unsigned short trsEuc;
unsigned short CurAPMvalues;
unsigned short mprc;
unsigned short hw_config;
unsigned short acoustic;
unsigned short msrqs;
unsigned short sxfert;
unsigned short sal;
unsigned int spg;
unsigned long long lba_capacity_2;
unsigned short words104_125[22 ];
unsigned short last_lun;
unsigned short word127;
unsigned short dlf;
unsigned short csfo;
unsigned short words130_155[26 ];
unsigned short word156;
unsigned short words157_159[3 ];
unsigned short cfa_power;
unsigned short words161_175[15 ];
unsigned short words176_205[30 ];
unsigned short words206_254[49 ];
unsigned short integrity_word;
};
#define IDE_NICE_DSC_OVERLAP (0 )
#define IDE_NICE_ATAPI_OVERLAP (1 )
#define IDE_NICE_1 (3 )
#define IDE_NICE_0 (2 )
#define IDE_NICE_2 (4 )
#endif
Messung V0.5 in Prozent C=85 H=96 G=90
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-06-28)
¤
*© Formatika GbR, Deutschland