Re: Multi unit driver

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

 




> Have anybody experience with multi PCI card driver?
> I have not any idea how can one to rewrite drive for only one card to
> multi?

 Guess you are asking how to support multiple instances of a card with
the same driver. As far as I understand, you don't have to do anything
extra other than ensuring that global data (data shared across driver
instances) is properly protected. 
 When a driver is registered, the PCI subsystem goes through the list 
of devices it found. If the device id of any device matches the device 
id supported by the driver, the driver's probe function is called. So
the driver doesn't have to do anything specifically to support multiple
instances.

Hope this helps
Ravi.

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.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