Problem with identifying PCI device.

Hi,

I am developing a device driver for an PCI Ethernet adapter on WinNT using
NDIS4.0.I am facing some problem in the driver initialization routine.

I am trying to read the PCI configuration space using
NdisReadPciSlotInformation() routine to know the PCI slot, identify the
device and configure it. But, I am getting the device and vendor ID for
all other devices PCI except the target device. When I use the PCI tree
utility, I can see my device which is located on the BUS 1 where as all
other devices are on BUS 0. So, please let me know, how can I get to know
on which slot my device is located? Why I couldn’t find the target device
when I could find all other devices on PCI? Should I use any other
routines?

Thanks in advance,
Kanth

My guess is that you are passing in garbage for the NdisAdapterHandle
parameter. Try the checked version of ndis.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kantharaj
Sent: Tuesday, May 28, 2002 10:59 PM
To: NT Developers Interest List
Subject: [ntdev] Problem with identifying PCI device.

Hi,

I am developing a device driver for an PCI Ethernet adapter
on WinNT using NDIS4.0.I am facing some problem in the driver
initialization routine.

I am trying to read the PCI configuration space using
NdisReadPciSlotInformation() routine to know the PCI slot,
identify the device and configure it. But, I am getting the
device and vendor ID for all other devices PCI except the
target device. When I use the PCI tree utility, I can see my
device which is located on the BUS 1 where as all other
devices are on BUS 0. So, please let me know, how can I get
to know on which slot my device is located? Why I couldn’t
find the target device when I could find all other devices on
PCI? Should I use any other routines?

Thanks in advance,
Kanth


You are currently subscribed to ntdev as:
xxxxx@hollistech.com To unsubscribe send a blank email to
%%email.unsub%%