Driver Problems? Questions? Issues?
Put OSR's experience to work for you! Contact us for assistance with:
  • Creating the right design for your requirements
  • Reviewing your existing driver code
  • Analyzing driver reliability/performance issues
  • Custom training mixed with consulting and focused directly on your specific areas of interest/concern.
Check us out. OSR, the Windows driver experts.

Upcoming OSR Seminars:

Writing WDF Drivers I: Core Concepts, Nashua, NH 15-19 May, 2017
Writing WDF Drivers II: Advanced Implementation Tech., Nashua, NH 23-26 May, 2017
Kernel Debugging and Crash Analysis, Dulles, VA 26-30 June, 2017
Windows Internals & Software Driver Development, Nashua, NH 24-28 July, 2017


Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 5  
05 Jan 17 07:14
Sriram M
xxxxxx@lnttechservices.com
Join Date: 05 Jan 2017
Posts To This List: 2
Access GPIO base(0x0500) of PCi

Hi, We are trying to read the status of GPIO's at the address(base addr: 0x0500) of the PCI card. Should we need to develop a a filter driver to PCI in order to access to gpio's ? Can anyone please suggest a simple way to access this? Regards, Sriram
  Message 2 of 5  
05 Jan 17 12:30
Tim Roberts
xxxxxx@probo.com
Join Date: 28 Jan 2005
Posts To This List: 11487
Access GPIO base(0x0500) of PCi

xxxxx@lnttechservices.com wrote: > We are trying to read the status of GPIO's at the address(base addr: 0x0500) of the PCI card. Should we need to develop a a filter driver to PCI in order to access to gpio's ? > Can anyone please suggest a simple way to access this? What kind of PCI card? Does it already have a driver? From where are you trying to read the registers? If the device already has a driver, then that driver should be offering the GPIO services. -- Tim Roberts, xxxxx@probo.com Providenza & Boekelheide, Inc.
  Message 3 of 5  
05 Jan 17 23:29
Sriram M
xxxxxx@lnttechservices.com
Join Date: 05 Jan 2017
Posts To This List: 2
Access GPIO base(0x0500) of PCi

Hi Tim, The PCI card has a driver , but it is not in our control. We would like to read the config space of the pci. Currently we are working on windows 10. We are planning to write a pci bus filter to read the config space (only read), is it the right way to proceed? Thanks, Sriram
  Message 4 of 5  
06 Jan 17 00:25
Doron Holan
xxxxxx@microsoft.com
Join Date: 08 Sep 2005
Posts To This List: 10031
Access GPIO base(0x0500) of PCi

Why not write a device lower filter, not a bus filter, and read the register in EvtDevicePrepareHw. This will be before the function driver can access the register Bent from my phone ________________________________ From: xxxxx@lists.osr.com <xxxxx@lists.osr.com> on behalf of xxxxx@lnttechservices.com <xxxxx@lnttechservices.com> Sent: Thursday, January 5, 2017 8:27:39 PM To: Windows System Software Devs Interest List Subject: RE:[ntdev] Access GPIO base(0x0500) of PCi Hi Tim, The PCI card has a driver , but it is not in our control. We would like to read the config space of the pci. Currently we are working on windows 10. We are planning to write a pci bus filter to read the config space (only read), is it the right way to proceed? Thanks, Sriram --- NTDEV is sponsored by OSR Visit the list online at: <http://www.osronline.com/showlists.cfm?list=ntdev> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers! Details at <http://www.osr.com/seminars> To unsubscribe, visit the List Server section of OSR Online at <http://www.osronline.com/page.cfm?name=ListServer> --
  Message 5 of 5  
06 Jan 17 13:22
Tim Roberts
xxxxxx@probo.com
Join Date: 28 Jan 2005
Posts To This List: 11487
Access GPIO base(0x0500) of PCi

xxxxx@lnttechservices.com wrote: > The PCI card has a driver , but it is not in our control. We would like to read the config space of the pci. Currently we are working on windows 10. We are planning to write a pci bus filter to read the config space (only read), is it the right way to proceed? Your first message said you needed to read a BAR register. Is it a BAR register, or is it config space? The mechanism is quite different. In either case, a device lower filter can certainly do this, as long as you're aware that the main driver won't know what you're doing. If you are just reading, it's probably fine, but if you write something, there's a risk. https://msdn.microsoft.com/en-us/windows/hardware/drivers/pci/accessing-pci-devic e-configuration-space -- Tim Roberts, xxxxx@probo.com Providenza & Boekelheide, Inc.
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntdev list to be able to post.

All times are GMT -5. The time now is 01:21.


Copyright ©2015, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license