Configuration of IDE DMA mode |
modules/Idedma.ycp |
Data for configuration of IDE DMA mode, input and output functions. | |
|
Representation of the configuration of IDE DMA mode.
Input and output routines.
Imports
Includes
Global VariablesGlobal Functions
Local VariablesLocal Functions |
List of all IDE devices with descriptions and DMA settings
Full path to hdparm binary
String with DMA on status text (For translators: translation can be long - text is used in the table in column "Required DMA mode" and "Current DMA mode")
String with DMA off status text (For translators: translation can be long - text is used in the table in column "Required DMA mode" and "Current DMA mode")
String with no change of DMA status text (For translators: translation can be long - text is used in the table in column "Required DMA mode" and "Current DMA mode")
Return actual DMA status of IDE device
- Parameters:
-
device Identification of ide device, e.g. "/dev/hdc"
- Return value:
-
true if DMA is on, false if DMA is off or nil on error
Get DMA information status for device
- Parameters:
-
device device name (e.g. "/dev/hdc")
- Return value:
-
DMA information from hdparm ("mdma2 udma0 udma1 *udma2")
Parse DMA info string from hdparm output - return current DMA mode (has mark '*')
- Parameters:
-
dma_info DMA support string (e.g. "mdma2 udma0 udma1 *udma2")
- Return value:
-
current DMA mode or "" if unknown
Parse DMA info string from hdparm output - return list of supported DMA modes
- Parameters:
-
dma_info DMA support string (e.g. "mdma2 udma0 udma1 *udma2")
- Return value:
-
list of supported DMA modes
Read all DMA settings from the SCR
- Return value:
-
true on success
Return information about all IDE devices
- Return value:
-
List of maps with information about all IDE devices
Get list of supported DMA modes for selected device
- Parameters:
-
device device name ("/dev/hda")
- Return value:
-
supported DMA modes (["mdma2", "udma0", "udma1", "udma2"])
Get selected DMA mode, which will be saved and set in Write
- Parameters:
-
device device name ("/dev/hda")
- Return value:
-
selected DMA mode ("on", "off", "nochange", or mode supported by hdparm - "udma5",...)
Set DMA of device
- Parameters:
-
device Identification of IDE device, e.g. "/dev/hda" dma_setting DMA mode (e.g. "mdma2", "udma5", "off",...)
- Return value:
-
true on success
Update the SCR according to DMA settings
- Return value:
-
true on success
Set module data
- Parameters:
-
settings set data from YCP
Get all IDE DMA settings from the first parameter (For use by autoinstallation.)
- Parameters:
-
settings The YCP structure to be imported.
- Return value:
-
True
Dump the IDE DMA settings to a single map (For use by autoinstallation.)
- Return value:
-
Dumped settings (later acceptable by Import ())
Set system configuration without reading values from system - for testing and screenshot mode
Create rich text description of the current configuration
- Parameters:
-
all when true all IDE devices are contained in the summary text (even unconfigured devices with default DMA mode) richtext select rich/plain text output
- Return value:
-
summary text