From fb4da167114e96d7f20ef97474f976f8ffa604e7 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 22 Nov 2016 23:14:24 +0100 Subject: Split miscutils/Config.src items into miscutils/*.c files Signed-off-by: Denys Vlasenko --- miscutils/hdparm.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) (limited to 'miscutils/hdparm.c') 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]" -- cgit v1.2.3