Re: toaster driver question by Doron
Doron
Tue Jun 22 09:54:48 CDT 2004
you handle the query id differently. in the toaster case, the hw IDs are
sent from user mode, so toaster makes a copy of them and then reports them
at the appropriate time. if your bus is enumerating devices on its own
w/out help from user mode, you store off the relevant information in the
PDO's extension and then use that extension data to create the HW IDs at
runtime. For instance, USB hub takes the devices VID, PID, rev, class, etc
and create a bunch of HW ID variants based on that info whenever it receives
a query ID.
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"shadab" <shadab@discussions.microsoft.com> wrote in message
news:A247465F-6233-401F-89CC-6E63D77A83BA@microsoft.com...
> sorry may be I was not clear in my question...
> Yes I noticed the LIST_ENTRY of PDOs but what I wanted to ask how to give
different HardwareIds and Compatible-ids for each PDO.There is only one PDO
function for returning Ids which is the same for all PDOs .how to let the
system know that for this PDO which I enumerated return this HardwareID and
for other PDO return a different ID
>
>
> "Doron Holan [MS]" wrote:
>
> > it keeps a synchronized linked list of the PDOs and walks that list
> > everytime it is told to enumerate PDO or report it missing.
> >
> > d
> >
> > --
> > Please do not send e-mail directly to this alias. this alias is for
> > newsgroup purposes only.
> > This posting is provided "AS IS" with no warranties, and confers no
rights.
> >
> >
> > "shadab" <shadab@discussions.microsoft.com> wrote in message
> > news:2EFE0D00-AA06-4DEB-BF67-07FEC267CBCE@microsoft.com...
> > > In the DDK toaster example how does it keep track of the HardwareIds
of
> > the different devices attached on the toaster bus.I saw that
PDO_DEVICE_DATA
> > has PWCHAR HardwareIDs but how do we keep track of each PDO we
attach
> > on the bus .
> >
> >
> >