Hello,
I have created a driver for a PCI card. Currently, it works for the one
card, but I need to provide support for more than one card OF THE SAME
TYPE. Can anyone tell me how I can manage it ? I had posted this
question earlier but it was with other questions that I ran into issues
with. Please do reply.
Regards,
Sunil Jigyasu.
What do you mean by “manage it”? If a second instance of the card appears
in the system, the PCI bus driver should create a PDO for it and your driver
code will be called to enter, add, start, etc. the second device. Your
driver code does not need to not care about whether it is working with the
first, second, or nth occurrence of the device in the system, it simply
works with the stack objects provided to the callback routines.
However, if you need to perform specialized processing for a device that is
dependent upon what it’s ordinal position in the enumeration is, then you
have some design decisions to make upon how and what you want to store about
each device, which is an implementation detail.
wrote in message news:xxxxx@ntdev…
>
> Hello,
> I have created a driver for a PCI card. Currently, it works for the one
> card, but I need to provide support for more than one card OF THE SAME
> TYPE. Can anyone tell me how I can manage it ? I had posted this
> question earlier but it was with other questions that I ran into issues
> with. Please do reply.
> Regards,
> Sunil Jigyasu.
>
>