This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Peripheral Access on ARMv8 in Windows 10

I'm on a project that was originally made for the x86_64 platform, with Windows, in C/C++ languages. This project is now being ported to ARM, still on Windows OS.

This project accesses devices, such as keyboard, mouse, sound, and so on, and these devices are accessed through drivers. So we want to port some drivers used in x86_64 to ARM. However, in x86_64 device access is very different than ARM, as we all know:

  • In x86_64 is through I/O ports mapped in memory, outside the address space.

  • In ARM through the peripheral controller registers, mapped in a memory space within the address space.

The question is: how do we port the driver from x86_64 to ARM, in the Windows kernel? That is, how do we access devices on ARM, on Windows, such as a simple GPIO, a sound device, a keyboard, etc? Can we access device registers in user mode, on Windows?

Thank you very much, in advance.

(Originally posted in Stack Overflow)