diff options
| author | Adrian Bunk <bunk@kernel.org> | 2008-04-26 11:36:37 -0400 |
|---|---|---|
| committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-26 11:36:37 -0400 |
| commit | b3a37f1284e05c35687522248e66dfda62924066 (patch) | |
| tree | 02a3a782ff8583a1cfeda9ddbcc31dca9eeb4ba5 | |
| parent | 968c49641338f4fb71d35352d49b1d25a68c5e93 (diff) | |
remove include/linux/hdsmart.h
include/linux/hdsmart.h is not used by the kernel and should therefore
be removed.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Cc: "Robert P. J. Day" <rpjday@crashcourse.ca>,
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
| -rw-r--r-- | include/linux/Kbuild | 1 | ||||
| -rw-r--r-- | include/linux/hdsmart.h | 126 |
2 files changed, 0 insertions, 127 deletions
diff --git a/include/linux/Kbuild b/include/linux/Kbuild index cbb5ccb27de3..bda6f04791d4 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild | |||
| @@ -210,7 +210,6 @@ unifdef-y += hayesesp.h | |||
| 210 | unifdef-y += hdlcdrv.h | 210 | unifdef-y += hdlcdrv.h |
| 211 | unifdef-y += hdlc.h | 211 | unifdef-y += hdlc.h |
| 212 | unifdef-y += hdreg.h | 212 | unifdef-y += hdreg.h |
| 213 | unifdef-y += hdsmart.h | ||
| 214 | unifdef-y += hid.h | 213 | unifdef-y += hid.h |
| 215 | unifdef-y += hiddev.h | 214 | unifdef-y += hiddev.h |
| 216 | unifdef-y += hidraw.h | 215 | unifdef-y += hidraw.h |
diff --git a/include/linux/hdsmart.h b/include/linux/hdsmart.h deleted file mode 100644 index 4f4faf9d4238..000000000000 --- a/include/linux/hdsmart.h +++ /dev/null | |||
| @@ -1,126 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * linux/include/linux/hdsmart.h | ||
| 3 | * | ||
| 4 | * Copyright (C) 1999-2000 Michael Cornwell <cornwell@acm.org> | ||
| 5 | * Copyright (C) 2000 Andre Hedrick <andre@linux-ide.org> | ||
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License as published by | ||
| 9 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 10 | * any later version. | ||
| 11 | * | ||
| 12 | * You should have received a copy of the GNU General Public License | ||
| 13 | * (for example /usr/src/linux/COPYING); if not, write to the Free | ||
| 14 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #ifndef _LINUX_HDSMART_H | ||
| 18 | #define _LINUX_HDSMART_H | ||
| 19 | |||
| 20 | #ifndef __KERNEL__ | ||
| 21 | #define OFFLINE_FULL_SCAN 0 | ||
| 22 | #define SHORT_SELF_TEST 1 | ||
| 23 | #define EXTEND_SELF_TEST 2 | ||
| 24 | #define SHORT_CAPTIVE_SELF_TEST 129 | ||
| 25 | #define EXTEND_CAPTIVE_SELF_TEST 130 | ||
| 26 | |||
| 27 | /* smart_attribute is the vendor specific in SFF-8035 spec */ | ||
| 28 | typedef struct ata_smart_attribute_s { | ||
| 29 | unsigned char id; | ||
| 30 | unsigned short status_flag; | ||
| 31 | unsigned char normalized; | ||
| 32 | unsigned char worse_normal; | ||
| 33 | unsigned char raw[6]; | ||
| 34 | unsigned char reserv; | ||
| 35 | } __attribute__ ((packed)) ata_smart_attribute_t; | ||
| 36 | |||
| 37 | /* smart_values is format of the read drive Atrribute command */ | ||
| 38 | typedef struct ata_smart_values_s { | ||
| 39 | unsigned short revnumber; | ||
| 40 | ata_smart_attribute_t vendor_attributes [30]; | ||
| 41 | unsigned char offline_data_collection_status; | ||
| 42 | unsigned char self_test_exec_status; | ||
| 43 | unsigned short total_time_to_complete_off_line; | ||
| 44 | unsigned char vendor_specific_366; | ||
| 45 | unsigned char offline_data_collection_capability; | ||
| 46 | unsigned short smart_capability; | ||
| 47 | unsigned char errorlog_capability; | ||
| 48 | unsigned char vendor_specific_371; | ||
| 49 | unsigned char short_test_completion_time; | ||
| 50 | unsigned char extend_test_completion_time; | ||
| 51 | unsigned char reserved_374_385 [12]; | ||
| 52 | unsigned char vendor_specific_386_509 [125]; | ||
| 53 | unsigned char chksum; | ||
| 54 | } __attribute__ ((packed)) ata_smart_values_t; | ||
| 55 | |||
| 56 | /* Smart Threshold data structures */ | ||
| 57 | /* Vendor attribute of SMART Threshold */ | ||
| 58 | typedef struct ata_smart_threshold_entry_s { | ||
| 59 | unsigned char id; | ||
| 60 | unsigned char normalized_threshold; | ||
| 61 | unsigned char reserved[10]; | ||
| 62 | } __attribute__ ((packed)) ata_smart_threshold_entry_t; | ||
| 63 | |||
| 64 | /* Format of Read SMART THreshold Command */ | ||
| 65 | typedef struct ata_smart_thresholds_s { | ||
| 66 | unsigned short revnumber; | ||
| 67 | ata_smart_threshold_entry_t thres_entries[30]; | ||
| 68 | unsigned char reserved[149]; | ||
| 69 | unsigned char chksum; | ||
| 70 | } __attribute__ ((packed)) ata_smart_thresholds_t; | ||
| 71 | |||
| 72 | typedef struct ata_smart_errorlog_command_struct_s { | ||
| 73 | unsigned char devicecontrolreg; | ||
| 74 | unsigned char featuresreg; | ||
| 75 | unsigned char sector_count; | ||
| 76 | unsigned char sector_number; | ||
| 77 | unsigned char cylinder_low; | ||
| 78 | unsigned char cylinder_high; | ||
| 79 | unsigned char drive_head; | ||
| 80 | unsigned char commandreg; | ||
| 81 | unsigned int timestamp; | ||
| 82 | } __attribute__ ((packed)) ata_smart_errorlog_command_struct_t; | ||
| 83 | |||
| 84 | typedef struct ata_smart_errorlog_error_struct_s { | ||
| 85 | unsigned char error_condition; | ||
| 86 | unsigned char extended_error[14]; | ||
| 87 | unsigned char state; | ||
| 88 | unsigned short timestamp; | ||
| 89 | } __attribute__ ((packed)) ata_smart_errorlog_error_struct_t; | ||
| 90 | |||
| 91 | typedef struct ata_smart_errorlog_struct_s { | ||
| 92 | ata_smart_errorlog_command_struct_t commands[6]; | ||
| 93 | ata_smart_errorlog_error_struct_t error_struct; | ||
| 94 | } __attribute__ ((packed)) ata_smart_errorlog_struct_t; | ||
| 95 | |||
| 96 | typedef struct ata_smart_errorlog_s { | ||
| 97 | unsigned char revnumber; | ||
| 98 | unsigned char error_log_pointer; | ||
| 99 | ata_smart_errorlog_struct_t errorlog_struct[5]; | ||
| 100 | unsigned short ata_error_count; | ||
| 101 | unsigned short non_fatal_count; | ||
| 102 | unsigned short drive_timeout_count; | ||
| 103 | unsigned char reserved[53]; | ||
| 104 | unsigned char chksum; | ||
| 105 | } __attribute__ ((packed)) ata_smart_errorlog_t; | ||
| 106 | |||
| 107 | typedef struct ata_smart_selftestlog_struct_s { | ||
| 108 | unsigned char selftestnumber; | ||
| 109 | unsigned char selfteststatus; | ||
| 110 | unsigned short timestamp; | ||
| 111 | unsigned char selftestfailurecheckpoint; | ||
| 112 | unsigned int lbafirstfailure; | ||
| 113 | unsigned char vendorspecific[15]; | ||
| 114 | } __attribute__ ((packed)) ata_smart_selftestlog_struct_t; | ||
| 115 | |||
| 116 | typedef struct ata_smart_selftestlog_s { | ||
| 117 | unsigned short revnumber; | ||
| 118 | ata_smart_selftestlog_struct_t selftest_struct[21]; | ||
| 119 | unsigned char vendorspecific[2]; | ||
| 120 | unsigned char mostrecenttest; | ||
| 121 | unsigned char resevered[2]; | ||
| 122 | unsigned char chksum; | ||
| 123 | } __attribute__ ((packed)) ata_smart_selftestlog_t; | ||
| 124 | #endif /* __KERNEL__ */ | ||
| 125 | |||
| 126 | #endif /* _LINUX_HDSMART_H */ | ||
