Doubt with a Linux driver and several devices.....
I have developed a linux driver for our pci card.
Well, driver works fine but now I have a doubt.
Our pci card at the beginig, had one interface of comunication, but now,
this card have two interface of comunication, and I do not know how to handle second device.
I suppose that I need a new device in /dev folder to handle it. First one is "pci_if0" and new one is "pci_if1".
My question is, if a open both device, how driver detect that I try to use "pci_if0" or "pci_f1"??
Can I handle both device with the same linux driver???
Could somebody give a idea??
Thank you very much.