My new assignment is to maintain / port a validation (not a production)
driver that currently works on 2K / XP
to 64 bit compliant driver.
This driver is not enumerated by PCI.sys but this driver directly accesses
PCI Configuration space using
inline assembly and CF8 / CFC registers.
Since PCI.SYS is not enumerating this driver i cannot use IRP_MN_READ_CONFIG
and IRP_MN_QUERY_INTERFACE
methods.
So how to implement this pci config space access if my device object stack
doesnt include PCI.sys?
Do i need to write a filter driver?
Thanks,
Vijay
Use the deprecated HalGetBusData routines in the DDK. Otherwise you have to
write a pci bus filter driver, and even then you will be way off into
undocumented territory. By the way directly using cf8 is a bad idea,
production driver or not, but I suspect you know that.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Vijay Anand
Sent: Monday, June 21, 2004 7:08 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Accessing PCI Configuration Space from a
software only driver
My new assignment is to maintain / port a validation (not a
production) driver that currently works on 2K / XP to 64 bit
compliant driver.
This driver is not enumerated by PCI.sys but this driver
directly accesses PCI Configuration space using inline
assembly and CF8 / CFC registers.
Since PCI.SYS is not enumerating this driver i cannot use
IRP_MN_READ_CONFIG and IRP_MN_QUERY_INTERFACE methods.
So how to implement this pci config space access if my device
object stack doesnt include PCI.sys?
Do i need to write a filter driver?
Thanks,
Vijay
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as:
xxxxx@hollistech.com To unsubscribe send a blank email to
xxxxx@lists.osr.com
Thanks Mark! Yes i know using CF8 / CFC is bad. Thats why i am trying to
rewrite portions of this
legacy driver to make it 64 bit / OS compliant…
I know HalGetBusData / HalSetBusData are obsolete and will not be supported
in future… Any idea
will these calls be supported in Windows XP-64 bit / Longhorn?
Thank you very much!
-Vijay
----- Original Message -----
From: “Mark Roddy”
To: “Windows System Software Devs Interest List”
Sent: Monday, June 21, 2004 4:19 PM
Subject: RE: [ntdev] Accessing PCI Configuration Space from a software only
driver
> Use the deprecated HalGetBusData routines in the DDK. Otherwise you have
to
> write a pci bus filter driver, and even then you will be way off into
> undocumented territory. By the way directly using cf8 is a bad idea,
> production driver or not, but I suspect you know that.
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Vijay Anand
> > Sent: Monday, June 21, 2004 7:08 PM
> > To: Windows System Software Devs Interest List
> > Subject: [ntdev] Accessing PCI Configuration Space from a
> > software only driver
> >
> > My new assignment is to maintain / port a validation (not a
> > production) driver that currently works on 2K / XP to 64 bit
> > compliant driver.
> >
> > This driver is not enumerated by PCI.sys but this driver
> > directly accesses PCI Configuration space using inline
> > assembly and CF8 / CFC registers.
> >
> > Since PCI.SYS is not enumerating this driver i cannot use
> > IRP_MN_READ_CONFIG and IRP_MN_QUERY_INTERFACE methods.
> >
> > So how to implement this pci config space access if my device
> > object stack doesnt include PCI.sys?
> >
> > Do i need to write a filter driver?
> >
> > Thanks,
> > Vijay
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as:
> > xxxxx@hollistech.com To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> >
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@hotmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Use HalGetBusData… and HalSetBusData routines
-Bill
From: “Vijay Anand”
>Reply-To: “Windows System Software Devs Interest List”
>
>To: “Windows System Software Devs Interest List”
>Subject: [ntdev] Accessing PCI Configuration Space from a software only
>driver
>Date: Mon, 21 Jun 2004 16:08:03 -0700
>
>My new assignment is to maintain / port a validation (not a production)
>driver that currently works on 2K / XP
>to 64 bit compliant driver.
>
>This driver is not enumerated by PCI.sys but this driver directly accesses
>PCI Configuration space using
>inline assembly and CF8 / CFC registers.
>
>Since PCI.SYS is not enumerating this driver i cannot use
>IRP_MN_READ_CONFIG
>and IRP_MN_QUERY_INTERFACE
>methods.
>
>So how to implement this pci config space access if my device object stack
>doesnt include PCI.sys?
>
>Do i need to write a filter driver?
>
>Thanks,
>Vijay
>
>—
>Questions? First check the Kernel Driver FAQ at
>http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com
_________________________________________________________________
MSN Movies - Trailers, showtimes, DVD’s, and the latest news from Hollywood!
http://movies.msn.click-url.com/go/onm00200509ave/direct/01/
Vijay,
Ask me about the longhorn work-around in a year or two, ok 
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Vijay Anand
Sent: Monday, June 21, 2004 7:44 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Accessing PCI Configuration Space from a
software only driver
Thanks Mark! Yes i know using CF8 / CFC is bad. Thats why i
am trying to rewrite portions of this legacy driver to make
it 64 bit / OS compliant…
I know HalGetBusData / HalSetBusData are obsolete and will
not be supported in future… Any idea will these calls be
supported in Windows XP-64 bit / Longhorn?
Thank you very much!
-Vijay
----- Original Message -----
From: “Mark Roddy”
> To: “Windows System Software Devs Interest List”
> Sent: Monday, June 21, 2004 4:19 PM
> Subject: RE: [ntdev] Accessing PCI Configuration Space from a
> software only driver
>
>
> > Use the deprecated HalGetBusData routines in the DDK.
> Otherwise you have
> to
> > write a pci bus filter driver, and even then you will be
> way off into
> > undocumented territory. By the way directly using cf8 is a bad idea,
> > production driver or not, but I suspect you know that.
> >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of Vijay Anand
> > > Sent: Monday, June 21, 2004 7:08 PM
> > > To: Windows System Software Devs Interest List
> > > Subject: [ntdev] Accessing PCI Configuration Space from a
> > > software only driver
> > >
> > > My new assignment is to maintain / port a validation (not a
> > > production) driver that currently works on 2K / XP to 64 bit
> > > compliant driver.
> > >
> > > This driver is not enumerated by PCI.sys but this driver
> > > directly accesses PCI Configuration space using inline
> > > assembly and CF8 / CFC registers.
> > >
> > > Since PCI.SYS is not enumerating this driver i cannot use
> > > IRP_MN_READ_CONFIG and IRP_MN_QUERY_INTERFACE methods.
> > >
> > > So how to implement this pci config space access if my device
> > > object stack doesnt include PCI.sys?
> > >
> > > Do i need to write a filter driver?
> > >
> > > Thanks,
> > > Vijay
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as:
> > > xxxxx@hollistech.com To unsubscribe send a blank email to
> > > xxxxx@lists.osr.com
> > >
> >
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as:
> xxxxx@hotmail.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@hollistech.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
You can write a PCI bus driver filter. I have done this and it works very
reliably. This is the only PnP friendly way of doing it. The
aforementioned HAL functions don’t work correctly everywhere anymore. I
have seen this approach fail to find devices behind a bridge on at least one
laptop.
–
Bill McKenzie
Software Engineer - Prism 802.11 Wireless Solutions
Conexant Systems, Inc.
“Vijay Anand” wrote in message
news:xxxxx@ntdev…
> My new assignment is to maintain / port a validation (not a production)
> driver that currently works on 2K / XP
> to 64 bit compliant driver.
>
> This driver is not enumerated by PCI.sys but this driver directly accesses
> PCI Configuration space using
> inline assembly and CF8 / CFC registers.
>
> Since PCI.SYS is not enumerating this driver i cannot use
IRP_MN_READ_CONFIG
> and IRP_MN_QUERY_INTERFACE
> methods.
>
> So how to implement this pci config space access if my device object stack
> doesnt include PCI.sys?
>
> Do i need to write a filter driver?
>
> Thanks,
> Vijay
>