Handling two devices with one driver
Hello Everyone,
Currently I am developing character driver for PCI devices. I want to support more than one devices in my driver, So I wanted to know few things:
Is only one instance of driver is enough or I need as many instances as devices ?
If only one is enough then how can I scan which device is connected to my host machine at driver load time ? Is there any kernel function/macro available for this purpose ?
Experts opinions/ideas or some useful links will be highly appreciated!!
Thanks,
|