aboutsummaryrefslogtreecommitdiff
path: root/miscutils/hdparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/hdparm.c')
-rw-r--r--miscutils/hdparm.c58
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 @@
* hdparm.c - Command line interface to get/set hard disk parameters
* - by Mark Lord (C) 1994-2002 -- freely distributable
*/
+//config:config HDPARM
+//config: bool "hdparm"
+//config: default y
+//config: select PLATFORM_LINUX
+//config: help
+//config: Get/Set hard drive parameters. Primarily intended for ATA
+//config: drives. Adds about 13k (or around 30k if you enable the
+//config: FEATURE_HDPARM_GET_IDENTITY option)....
+//config:
+//config:config FEATURE_HDPARM_GET_IDENTITY
+//config: bool "Support obtaining detailed information directly from drives"
+//config: default y
+//config: depends on HDPARM
+//config: help
+//config: Enables the -I and -i options to obtain detailed information
+//config: directly from drives about their capabilities and supported ATA
+//config: feature set. If no device name is specified, hdparm will read
+//config: identify data from stdin. Enabling this option will add about 16k...
+//config:
+//config:config FEATURE_HDPARM_HDIO_SCAN_HWIF
+//config: bool "Register an IDE interface (DANGEROUS)"
+//config: default y
+//config: depends on HDPARM
+//config: help
+//config: Enables the 'hdparm -R' option to register an IDE interface.
+//config: This is dangerous stuff, so you should probably say N.
+//config:
+//config:config FEATURE_HDPARM_HDIO_UNREGISTER_HWIF
+//config: bool "Un-register an IDE interface (DANGEROUS)"
+//config: default y
+//config: depends on HDPARM
+//config: help
+//config: Enables the 'hdparm -U' option to un-register an IDE interface.
+//config: This is dangerous stuff, so you should probably say N.
+//config:
+//config:config FEATURE_HDPARM_HDIO_DRIVE_RESET
+//config: bool "Perform device reset (DANGEROUS)"
+//config: default y
+//config: depends on HDPARM
+//config: help
+//config: Enables the 'hdparm -w' option to perform a device reset.
+//config: This is dangerous stuff, so you should probably say N.
+//config:
+//config:config FEATURE_HDPARM_HDIO_TRISTATE_HWIF
+//config: bool "Tristate device for hotswap (DANGEROUS)"
+//config: default y
+//config: depends on HDPARM
+//config: help
+//config: Enables the 'hdparm -x' option to tristate device for hotswap,
+//config: and the '-b' option to get/set bus state. This is dangerous
+//config: stuff, so you should probably say N.
+//config:
+//config:config FEATURE_HDPARM_HDIO_GETSET_DMA
+//config: bool "Get/set using_dma flag"
+//config: default y
+//config: depends on HDPARM
+//config: help
+//config: Enables the 'hdparm -d' option to get/set using_dma flag.
//usage:#define hdparm_trivial_usage
//usage: "[OPTIONS] [DEVICE]"