Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Single driver for Multiple cards with same signature

0 views
Skip to first unread message

mahi

unread,
Nov 26, 2009, 2:32:06 AM11/26/09
to
Hi all,
I have developed a windows-xp based PCI card driver.Now I am using
single
card, with single card my application is working fine.Now I have
inserted the second card with the same signature(same VendorId and
DeviceId),

So how can i access that second card using the same driver.

Which function is used for this problem, Can anyone help me regarding
this issue, it will be great
pleasure.

Thanking you.

Maxim S. Shatskih

unread,
Nov 26, 2009, 2:15:35 PM11/26/09
to
> So how can i access that second card using the same driver.

SetupDiGetClassDevs/SetupDiGetDeviceInterfaceDetail in user mode

IoRegisterDeviceInterface/IoSetDeviceInterfaceState in kernel mode.

--
Maxim S. Shatskih
Windows DDK MVP
ma...@storagecraft.com
http://www.storagecraft.com

Tim Roberts

unread,
Nov 26, 2009, 11:23:31 PM11/26/09
to

It's not exactly clear what you are asking. Assuming you haven't done
anything silly (like use global variables), your existing driver should
handle both instances of your device without any extra coding.

Are you asking how to access both devices from user mode? How are you
accessing the single device right now? If you have created your own named
symbolic link name, then that's a problem for multiple instances. In that
case, Maxim's suggestion is exactly right -- use a device interface.
--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.

0 new messages