How to switch from PIO to DMA mode on a SATA controller in code?

I am running Windows 7. I need to create an auto / automated test to use some SATA drives. One of the test requirements is to use the disk with DMA in both states (enabled and disabled).

To manually change this setting, you must:

   1) Open Device Manager.
   2) Expand "IDE ATA / ATAPI controllers".
   3) Pick one of the ATA Channels listed; right-click properties; Advanced tab.
   4) Toggle "Enable DMA".


As I said, I need to do this unattended. Any ideas on how this can be done? I searched for Windows Dev Center high and low including device instance and settings in driver development kit. I cannot find anything suitable there. I also searched for registry keys that might do the job, but didn't find anything there.

+3
c windows device-driver sata


source to share


No one has answered this question yet

Check out similar questions:

719
How do I get the exit code of an application from the Windows command line?
372
How to check if a file exists inside a batch file
3
Any way to allocate physical memory above 4GB on Vista x64?
3
How do I configure an ATA hard drive to trigger interrupt generation?
3
How do you get the version of the Windows driver (s)?
2
Direct access to memory devices under Windows / Linux
1
Cannot Write to SATA Drives on AHCI Controller in Kernel Mode Program
1
Configuring 7-Series GTXE2 Serial-ATA (Gen1 / 2/3) Transceiver
1
Bypass I / O scheduling and page buffering in Linux kernel
0
How many physical links does the SATA controller have?



All Articles
Loading...
X
Show
Funny
Dev
Pics