On 09.08.2009 02:11, Stefan Reinauer wrote:
Carl-Daniel Hailfinger wrote:
- Test if the Windows kernel driver still works on Windows 7 (or
anything post XP). 8. Make pcilib usable without including it.
Darmawan's code works as is, I tried it today on an i945 box running Windows XP. But the code is based on a very old version of flashrom.
The two main issues are
- memory access
- IO access (including PCI access)
PCI access is nicely implemented by libpci/pci utils, which is available for Windows since 2.1.99. libpci needs WinIo, which is an abstraction layer for memory and IO accesses, similar to DirectIO on OSX: http://www.internals.com/utilities_main.htm
It would likely make sense to base a new port on WinIo and libpci.
Since the forward port of most of the patch is pretty easy, it might make sense to do that first, test the result, then tackle a rewrite where needed. The benefit of this approach is an up-to-date baseline for comparison.
Regards, Carl-Daniel