Direct hardware access in user mode (application) on Windows has been forbidden from the beginning (NT kernels obviously). The whole point of the UM KM separation is to address fundamental security, compatibility and reliability issues that are insoluble with direct hardware access.
Try to describe an abstract interface that your driver can implement and your application consume rather than something tied to your specific hardware. For example, don’t create an interface like ‘poke_address_XXX’ but something like read_data
Sent from Surface Pro
From: 陈钢
Sent: Friday, November 21, 2014 1:14 AM
To: Windows System Software Devs Interest List
Thanks for your response.
We want to operate SPI that addressed in a bar space in pci board from application. If so, we needs to write a driver to do that.
Thanks
At 2014-11-21 10:30:27, “Doron Holan” wrote:
No APIs for it. what bigger problem are you trying to solve? The PCI bar address belongs to the device, anyone reading it that is not the device driver has built in race conditions
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of ??
Sent: Thursday, November 20, 2014 6:26 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to acess pci configuration space from application
Hi,
I want to write a win8 application to read pci BAR address from pci configuration space. But I can not find a api for it. Is there any ideas about it?
Thanks
— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
—
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer