92. Idedma

Data for configuration of IDE DMA mode, input and output functions.

92.1. Summary of Module Globals

List of Global Functions

  • Export - Dump the IDE DMA settings to a single map (For use by autoinstallation.)

  • Import - Get all IDE DMA settings from the first parameter (For use by autoinstallation.)

  • Read - Read all DMA settings from the SCR

  • Set - Set module data

  • Summary - Create rich text description of the current configuration

  • Write - Update the SCR according to DMA settings

  • get_device_dma_status - Return actual DMA status of IDE device

  • get_ide_devices - Return information about all IDE devices

  • selected_mode - Get selected DMA mode, which will be saved and set in Write

  • set_dma - Set DMA of device

  • set_test_data - Set system configuration without reading values from system - for testing and screenshot mode

  • supported_dma_modes - Get list of supported DMA modes for selected device

List of Global Variables

  • dma_default_string - 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")

  • dma_off_string - 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")

  • dma_on_string - 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")

92.2. Global Functions

92.2.1. Export

Dump the IDE DMA settings to a single map (For use by autoinstallation.)

Return value

  • list - Dumped settings (later acceptable by Import ())

92.2.2. Import

Get all IDE DMA settings from the first parameter (For use by autoinstallation.)

Function parameters

  • list<map<string,any> > settings

Return value

  • boolean - True

92.2.3. Read

Read all DMA settings from the SCR

Return value

  • boolean - true on success

92.2.4. Set

Set module data

Function parameters

  • list<map<string,any> > settings

Return value

  • void

92.2.5. Summary

Create rich text description of the current configuration

Function parameters

  • boolean all

  • boolean richtext

Return value

  • string - summary text

92.2.6. Write

Update the SCR according to DMA settings

Return value

  • boolean - true on success

92.2.7. get_device_dma_status

Return actual DMA status of IDE device

Function parameters

  • string device

Return value

  • string - true if DMA is on, false if DMA is off or nil on error

92.2.8. get_ide_devices

Return information about all IDE devices

Return value

  • list<map> - List of maps with information about all IDE devices

92.2.9. selected_mode

Get selected DMA mode, which will be saved and set in Write

Function parameters

  • string device

Return value

  • string - selected DMA mode ("on", "off", "nochange", or mode supported by hdparm - "udma5",...)

92.2.10. set_dma

Set DMA of device

Function parameters

  • string device

  • string dma_setting

Return value

  • boolean - true on success

92.2.11. set_test_data

Set system configuration without reading values from system - for testing and screenshot mode

Return value

  • void

92.2.12. supported_dma_modes

Get list of supported DMA modes for selected device

Function parameters

  • string device

Return value

  • list - supported DMA modes (["mdma2", "udma0", "udma1", "udma2"])

92.3. Global Variables

92.3.1. dma_default_string

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")

92.3.2. dma_off_string

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")

92.3.3. dma_on_string

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")

92.4. Module Requirements

92.4.1. Module Imports

  • Report
  • Service

92.4.2. Module Includes

  • hwinfo/classnames.ycp