#ifndef _LINUX_HDREG_H
#define _LINUX_HDREG_H
#include <linux/types.h>
#define HDIO_DRIVE_CMD_HDR_SIZE …
#define HDIO_DRIVE_HOB_HDR_SIZE …
#define HDIO_DRIVE_TASK_HDR_SIZE …
#define IDE_DRIVE_TASK_NO_DATA …
#ifndef __KERNEL__
#define IDE_DRIVE_TASK_INVALID …
#define IDE_DRIVE_TASK_SET_XFER …
#define IDE_DRIVE_TASK_IN …
#define IDE_DRIVE_TASK_OUT …
#endif
#define IDE_DRIVE_TASK_RAW_WRITE …
#define IDE_TASKFILE_STD_IN_FLAGS …
#define IDE_HOB_STD_IN_FLAGS …
#ifndef __KERNEL__
#define IDE_TASKFILE_STD_OUT_FLAGS …
#define IDE_HOB_STD_OUT_FLAGS …
typedef unsigned char task_ioreg_t;
typedef unsigned long sata_ioreg_t;
#endif
ide_reg_valid_t;
ide_task_request_t;
ide_ioctl_request_t;
struct hd_drive_cmd_hdr { … };
#ifndef __KERNEL__
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;
#endif
#define TASKFILE_NO_DATA …
#define TASKFILE_IN …
#define TASKFILE_MULTI_IN …
#define TASKFILE_OUT …
#define TASKFILE_MULTI_OUT …
#define TASKFILE_IN_OUT …
#define TASKFILE_IN_DMA …
#define TASKFILE_OUT_DMA …
#define TASKFILE_IN_DMAQ …
#define TASKFILE_OUT_DMAQ …
#ifndef __KERNEL__
#define TASKFILE_P_IN …
#define TASKFILE_P_OUT …
#define TASKFILE_P_IN_DMA …
#define TASKFILE_P_OUT_DMA …
#define TASKFILE_P_IN_DMAQ …
#define TASKFILE_P_OUT_DMAQ …
#define TASKFILE_48 …
#define TASKFILE_INVALID …
#endif
#ifndef __KERNEL__
#define WIN_NOP …
#define CFA_REQ_EXT_ERROR_CODE …
#define WIN_SRST …
#define WIN_DEVICE_RESET …
#define WIN_RECAL …
#define WIN_RESTORE …
#define WIN_READ …
#define WIN_READ_ONCE …
#define WIN_READ_LONG …
#define WIN_READ_LONG_ONCE …
#define WIN_READ_EXT …
#define WIN_READDMA_EXT …
#define WIN_READDMA_QUEUED_EXT …
#define WIN_READ_NATIVE_MAX_EXT …
#define WIN_MULTREAD_EXT …
#define WIN_WRITE …
#define WIN_WRITE_ONCE …
#define WIN_WRITE_LONG …
#define WIN_WRITE_LONG_ONCE …
#define WIN_WRITE_EXT …
#define WIN_WRITEDMA_EXT …
#define WIN_WRITEDMA_QUEUED_EXT …
#define WIN_SET_MAX_EXT …
#define CFA_WRITE_SECT_WO_ERASE …
#define WIN_MULTWRITE_EXT …
#define WIN_WRITE_VERIFY …
#define WIN_VERIFY …
#define WIN_VERIFY_ONCE …
#define WIN_VERIFY_EXT …
#define WIN_FORMAT …
#define WIN_INIT …
#define WIN_SEEK …
#define CFA_TRANSLATE_SECTOR …
#define WIN_DIAGNOSE …
#define WIN_SPECIFY …
#define WIN_DOWNLOAD_MICROCODE …
#define WIN_STANDBYNOW2 …
#define WIN_STANDBY2 …
#define WIN_SETIDLE2 …
#define WIN_CHECKPOWERMODE2 …
#define WIN_SLEEPNOW2 …
#define WIN_PACKETCMD …
#define WIN_PIDENTIFY …
#define WIN_QUEUED_SERVICE …
#define WIN_SMART …
#define CFA_ERASE_SECTORS …
#define WIN_MULTREAD …
#define WIN_MULTWRITE …
#define WIN_SETMULT …
#define WIN_READDMA_QUEUED …
#define WIN_READDMA …
#define WIN_READDMA_ONCE …
#define WIN_WRITEDMA …
#define WIN_WRITEDMA_ONCE …
#define WIN_WRITEDMA_QUEUED …
#define CFA_WRITE_MULTI_WO_ERASE …
#define WIN_GETMEDIASTATUS …
#define WIN_ACKMEDIACHANGE …
#define WIN_POSTBOOT …
#define WIN_PREBOOT …
#define WIN_DOORLOCK …
#define WIN_DOORUNLOCK …
#define WIN_STANDBYNOW1 …
#define WIN_IDLEIMMEDIATE …
#define WIN_STANDBY …
#define WIN_SETIDLE1 …
#define WIN_READ_BUFFER …
#define WIN_CHECKPOWERMODE1 …
#define WIN_SLEEPNOW1 …
#define WIN_FLUSH_CACHE …
#define WIN_WRITE_BUFFER …
#define WIN_WRITE_SAME …
#define WIN_FLUSH_CACHE_EXT …
#define WIN_IDENTIFY …
#define WIN_MEDIAEJECT …
#define WIN_IDENTIFY_DMA …
#define WIN_SETFEATURES …
#define EXABYTE_ENABLE_NEST …
#define WIN_SECURITY_SET_PASS …
#define WIN_SECURITY_UNLOCK …
#define WIN_SECURITY_ERASE_PREPARE …
#define WIN_SECURITY_ERASE_UNIT …
#define WIN_SECURITY_FREEZE_LOCK …
#define WIN_SECURITY_DISABLE …
#define WIN_READ_NATIVE_MAX …
#define WIN_SET_MAX …
#define DISABLE_SEAGATE …
#define SMART_READ_VALUES …
#define SMART_READ_THRESHOLDS …
#define SMART_AUTOSAVE …
#define SMART_SAVE …
#define SMART_IMMEDIATE_OFFLINE …
#define SMART_READ_LOG_SECTOR …
#define SMART_WRITE_LOG_SECTOR …
#define SMART_WRITE_THRESHOLDS …
#define SMART_ENABLE …
#define SMART_DISABLE …
#define SMART_STATUS …
#define SMART_AUTO_OFFLINE …
#define SMART_LCYL_PASS …
#define SMART_HCYL_PASS …
#define SETFEATURES_EN_8BIT …
#define SETFEATURES_EN_WCACHE …
#define SETFEATURES_DIS_DEFECT …
#define SETFEATURES_EN_APM …
#define SETFEATURES_EN_SAME_R …
#define SETFEATURES_DIS_MSN …
#define SETFEATURES_DIS_RETRY …
#define SETFEATURES_EN_AAM …
#define SETFEATURES_RW_LONG …
#define SETFEATURES_SET_CACHE …
#define SETFEATURES_DIS_RLA …
#define SETFEATURES_EN_RI …
#define SETFEATURES_EN_SI …
#define SETFEATURES_DIS_RPOD …
#define SETFEATURES_DIS_ECC …
#define SETFEATURES_DIS_8BIT …
#define SETFEATURES_DIS_WCACHE …
#define SETFEATURES_EN_DEFECT …
#define SETFEATURES_DIS_APM …
#define SETFEATURES_EN_ECC …
#define SETFEATURES_EN_MSN …
#define SETFEATURES_EN_RETRY …
#define SETFEATURES_EN_RLA …
#define SETFEATURES_PREFETCH …
#define SETFEATURES_EN_REST …
#define SETFEATURES_4B_RW_LONG …
#define SETFEATURES_DIS_AAM …
#define SETFEATURES_EN_RPOD …
#define SETFEATURES_DIS_RI …
#define SETFEATURES_EN_SAME_M …
#define SETFEATURES_DIS_SI …
#define SECURITY_SET_PASSWORD …
#define SECURITY_UNLOCK …
#define SECURITY_ERASE_PREPARE …
#define SECURITY_ERASE_UNIT …
#define SECURITY_FREEZE_LOCK …
#define SECURITY_DISABLE_PASSWORD …
#endif
struct hd_geometry { … };
#define HDIO_GETGEO …
#define HDIO_GET_UNMASKINTR …
#define HDIO_GET_MULTCOUNT …
#define HDIO_GET_QDMA …
#define HDIO_SET_XFER …
#define HDIO_OBSOLETE_IDENTITY …
#define HDIO_GET_KEEPSETTINGS …
#define HDIO_GET_32BIT …
#define HDIO_GET_NOWERR …
#define HDIO_GET_DMA …
#define HDIO_GET_NICE …
#define HDIO_GET_IDENTITY …
#define HDIO_GET_WCACHE …
#define HDIO_GET_ACOUSTIC …
#define HDIO_GET_ADDRESS …
#define HDIO_GET_BUSSTATE …
#define HDIO_TRISTATE_HWIF …
#define HDIO_DRIVE_RESET …
#define HDIO_DRIVE_TASKFILE …
#define HDIO_DRIVE_TASK …
#define HDIO_DRIVE_CMD …
#define HDIO_DRIVE_CMD_AEB …
#define HDIO_SET_MULTCOUNT …
#define HDIO_SET_UNMASKINTR …
#define HDIO_SET_KEEPSETTINGS …
#define HDIO_SET_32BIT …
#define HDIO_SET_NOWERR …
#define HDIO_SET_DMA …
#define HDIO_SET_PIO_MODE …
#ifndef __KERNEL__
#define HDIO_SCAN_HWIF …
#define HDIO_UNREGISTER_HWIF …
#endif
#define HDIO_SET_NICE …
#define HDIO_SET_WCACHE …
#define HDIO_SET_ACOUSTIC …
#define HDIO_SET_BUSSTATE …
#define HDIO_SET_QDMA …
#define HDIO_SET_ADDRESS …
enum { … };
#define __NEW_HD_DRIVE_ID
#ifndef __KERNEL__
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;
};
#endif
#define IDE_NICE_DSC_OVERLAP …
#define IDE_NICE_ATAPI_OVERLAP …
#define IDE_NICE_1 …
#ifndef __KERNEL__
#define IDE_NICE_0 …
#define IDE_NICE_2 …
#endif
#endif