Tech Support > Microsoft Windows > Drivers > Resources problem
Resources problem
Posted by Robert Zimbra on December 8th, 2003


Hi!

I'm arookie in WDM and I have one question that I haven't
been able to answer...

I have a chip connected to a PCI bus in a Single Board
Computer, for which I'm developing a WDM (Windows 2000)
with the W2K DDK. Also I have been studying Walter Oney's
book, and actually I used his wizard to produce a skeleton
for my driver.

Now the problem is that when I install this driver (or any
other) to this chip windows says to me that I have a
resorces problem with my I/O area, supposedly overlaped
with the area of another chip (thing that is not true).
So my driver is marked in the device manager as not
working properly (yellow exclamation sign).

So rigth now I can not open a handle to my device, and I'm
not sure if it is because of this resorces reason or
because of my handle routine. My objective in a short term
is to be able to read and write to this device with the
minimum driver requirements. Can you help me?

Posted by Don Burn on December 8th, 2003


Your problem is because of resources you are never going to have your driver
called to start the device. Check the device manager, if the system thinks
you have a resource conflict you probably do.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

"Robert Zimbra" <rozigs00@fht-esslingen.de> wrote in message
news:052601c3bd6c$e9bf6ca0$a501280a@phx.gbl...


Posted by Pavel A. on December 8th, 2003


"Robert Zimbra" <rozigs00@fht-esslingen.de> wrote in message news:052601c3bd6c$e9bf6ca0$a501280a@phx.gbl...

Do you have resource overrides in your INF?



Posted by on December 8th, 2003


Hi Pavel

No, I do not have resources override in my INF.
Any suggestion?

Thanx!

Posted by on December 8th, 2003


Hi Don,

Thanks to answer. I don't really understand what you mean
with "Your problem is because of resources you are never
going to have your driver called to start the device", can
you explain a little more?

I checked the device manager, even if I choose not to
install a driver for my chip, windows assigns an I/O area,
a memory area, and a IRQ line. I checked and the
resources are not overlaping except the IRQ. But windows
says is the I/O area, and the confilct is not even with
the same device of the IRQ line.

Also, I'm trying to install my driver to an non-existent
hardware. But windows can not start the device and
deactivates it. The same happens when I install it to my
HW.

Any ideas?

Thanx

Posted by Don Burn on December 8th, 2003


Are you sure your I/O area does not conflict with any device? Go into the
device manager and view resources by type and check the I/O areas of other
devices.

As long as the system believes there is a conflict, it will not assign you a
complete set of resources. Without a complete set of resources, the driver
will not go through all phases of initialization. Until you go through all
the initialization, you cannot open the device.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

<anonymous@discussions.microsoft.com> wrote in message
news:090401c3bd9b$6451d150$a101280a@phx.gbl...


Posted by Pavel A. on December 8th, 2003


Probably your device has wrong resource descriptors in PCI header.
Don't know whether it's possible to fix them using overrides in the INF file,
but if you don't have better ideas meanwhile, try this.

- PA

<anonymous@discussions.microsoft.com> wrote in message news:f22601c3bd99$a0aa30e0$a601280a@phx.gbl...


Posted by on December 8th, 2003


Hi!!!

I checked and it seems ok. So I will tell you what
happens in my debugging: I created a simple driver(withot
any I/O, memory or IRQ), which I can install to a non-
existent hardware. The run goes like:

PCIETH - Version 1.00.000 Dec 8 2003 15:17:25
PCIETH - Entering AddDevice: DriverObject 85DEDA70, pdo
857EA690
PCIETH - PNP Request (IRP_MN_FILTER_RESOURCE_REQUIREMENTS)
PCIETH - PNP Request (IRP_MN_START_DEVICE)
PCIETH - To WORKING from STOPPED
PCIETH - PNP Request (IRP_MN_QUERY_CAPABILITIES)
PCIETH - PNP Request (IRP_MN_QUERY_PNP_DEVICE_STATE)
PCIETH - PNP Request (IRP_MN_QUERY_DEVICE_RELATIONS)

And the it's ok, I can communicate with this driver, but
when I install the same one to my chip it stops after the
PNP minor function resource requirements (supposedly
managed by the PCI bus):

PCIETH - Version 1.00.000 Dec 8 2003 15:17:25
PCIETH - Entering AddDevice: DriverObject 85DEDA70, pdo
857EA690
PCIETH - PNP Request (IRP_MN_FILTER_RESOURCE_REQUIREMENTS)
PCIETH - PNP Request (IRP_MN_QUERY_STOP_DEVICE)
PCIETH - PNP Request (IRP_MN_QUERY_STOP_DEVICE)
PCIETH - PNP Request (IRP_MN_CANCEL_STOP_DEVICE)

So obviosly as you say it will never work...

So I re-start the computer as asked by windows and the it
marks this resource overlaping in the I/O area with an
intel pentium ii xeon processor to agp controller, but the
device manager gives me this info:

Intel I/O area: 03B0-03BB and 03CO-03DF
My chip: F000-FFFF

Now, do you now how can I fix this?

Thanx


Posted by on December 8th, 2003


Is there a way to change this assignment of resources
manually?? Or why is windows saying that there is a
conflict?? Isn't it supposed that windows manages this
automatically??

Thanx!



Similar Posts