Re: One driver for two or more card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- Kirill Messel <kirill.messel@mtu-net.ru> wrote:
> Hi all,
> 
> I have write a driver for PCI card. But it works only with one. Is
> it 
> possible to change driver to use it for two card.
> Thanks
> 

Yes it is possible.  You need to keep track of the different cards
via data structures, and be sure to pass the pci_dev (and/or your
data structures) around to different routines.  Look in the kernel
for similar drivers to your own.  Many, if not all, pci-widget
drivers handle multiple cards.

Harmony,

--Christine


__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux