Re: How to distinguish two identical device in driver and application?

Re: How to distinguish two identical device in driver and application?


[ Follow Ups ] [ Post Followups ] [ FAQ ]
[ Back to Messages ]

Posted by Sparky on November 20, 2001 at 02:04:57:

In Reply to: How to distinguish two identical device in driver and application? posted by uma on August 06, 2001 at 10:16:23:

: As we all know, we can plug two or even more identical (with same vendor and product ID) device in the system. If we do read/write on a particular device, we some how need to distinguish them. How can we do that on the driver level and the application level?
:
The BIOS assigns each card an ID during its PnP init; the card ID is based on the slot # it's plugged into, among other things. What you've got to do is somehow query all the cards and get them all to tell you what they are, and check against a list to see which ones are yours. Remember the card IDs and there you go...

This is all well and good in theory; I've never written a driver so I can't really help you beyond that. I just enjoy reading kernel corner in LJ.... :)




Follow Ups:


Post a Followup

Please note:
  • Messages must be on the topic of this forum!
  • No posting of requests for cracks, codes, serials, or warez!
  • No posting of illegal software or links to such sites!
  • No use of profanity or inappropriate or offensive language!
  • Spamming is not allowed!
  • We track the IP addresses of forum abusers!
  • Abuse of this forum will be reported to your ISP!
Name:
E-Mail (optional):
please note: your e-mail address will be visible in your message.

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL: