diff options
Diffstat (limited to 'miscutils/hdparm.c')
-rw-r--r-- | miscutils/hdparm.c | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index b4c5876d4..06311ccf7 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c | |||
@@ -11,6 +11,64 @@ | |||
11 | * hdparm.c - Command line interface to get/set hard disk parameters | 11 | * hdparm.c - Command line interface to get/set hard disk parameters |
12 | * - by Mark Lord (C) 1994-2002 -- freely distributable | 12 | * - by Mark Lord (C) 1994-2002 -- freely distributable |
13 | */ | 13 | */ |
14 | //config:config HDPARM | ||
15 | //config: bool "hdparm" | ||
16 | //config: default y | ||
17 | //config: select PLATFORM_LINUX | ||
18 | //config: help | ||
19 | //config: Get/Set hard drive parameters. Primarily intended for ATA | ||
20 | //config: drives. Adds about 13k (or around 30k if you enable the | ||
21 | //config: FEATURE_HDPARM_GET_IDENTITY option).... | ||
22 | //config: | ||
23 | //config:config FEATURE_HDPARM_GET_IDENTITY | ||
24 | //config: bool "Support obtaining detailed information directly from drives" | ||
25 | //config: default y | ||
26 | //config: depends on HDPARM | ||
27 | //config: help | ||
28 | //config: Enables the -I and -i options to obtain detailed information | ||
29 | //config: directly from drives about their capabilities and supported ATA | ||
30 | //config: feature set. If no device name is specified, hdparm will read | ||
31 | //config: identify data from stdin. Enabling this option will add about 16k... | ||
32 | //config: | ||
33 | //config:config FEATURE_HDPARM_HDIO_SCAN_HWIF | ||
34 | //config: bool "Register an IDE interface (DANGEROUS)" | ||
35 | //config: default y | ||
36 | //config: depends on HDPARM | ||
37 | //config: help | ||
38 | //config: Enables the 'hdparm -R' option to register an IDE interface. | ||
39 | //config: This is dangerous stuff, so you should probably say N. | ||
40 | //config: | ||
41 | //config:config FEATURE_HDPARM_HDIO_UNREGISTER_HWIF | ||
42 | //config: bool "Un-register an IDE interface (DANGEROUS)" | ||
43 | //config: default y | ||
44 | //config: depends on HDPARM | ||
45 | //config: help | ||
46 | //config: Enables the 'hdparm -U' option to un-register an IDE interface. | ||
47 | //config: This is dangerous stuff, so you should probably say N. | ||
48 | //config: | ||
49 | //config:config FEATURE_HDPARM_HDIO_DRIVE_RESET | ||
50 | //config: bool "Perform device reset (DANGEROUS)" | ||
51 | //config: default y | ||
52 | //config: depends on HDPARM | ||
53 | //config: help | ||
54 | //config: Enables the 'hdparm -w' option to perform a device reset. | ||
55 | //config: This is dangerous stuff, so you should probably say N. | ||
56 | //config: | ||
57 | //config:config FEATURE_HDPARM_HDIO_TRISTATE_HWIF | ||
58 | //config: bool "Tristate device for hotswap (DANGEROUS)" | ||
59 | //config: default y | ||
60 | //config: depends on HDPARM | ||
61 | //config: help | ||
62 | //config: Enables the 'hdparm -x' option to tristate device for hotswap, | ||
63 | //config: and the '-b' option to get/set bus state. This is dangerous | ||
64 | //config: stuff, so you should probably say N. | ||
65 | //config: | ||
66 | //config:config FEATURE_HDPARM_HDIO_GETSET_DMA | ||
67 | //config: bool "Get/set using_dma flag" | ||
68 | //config: default y | ||
69 | //config: depends on HDPARM | ||
70 | //config: help | ||
71 | //config: Enables the 'hdparm -d' option to get/set using_dma flag. | ||
14 | 72 | ||
15 | //usage:#define hdparm_trivial_usage | 73 | //usage:#define hdparm_trivial_usage |
16 | //usage: "[OPTIONS] [DEVICE]" | 74 | //usage: "[OPTIONS] [DEVICE]" |