Regarding multifunction device.

Dear All,

If card (PCI) support more then one function, then how many time my AddDevice routine will be called.

Suppose I have card, which has two functions say F1 and F2.
In which part of my driver code, I would be able to identify that, PNP has called my driver for F1 or F2.

Please guide me.

Regards,

Suman

  1. Two device functions result in two device objects.
  2. Given (1), your driver should not care at all which function is being
    accessed.

If for some reason your separate device functions are similar and are
managed by a single driver, you will get called once at
AddDevice/StartDevice for each function. The separate device objects ought
to be managed independently. If the functions are dissimilar then your
design ought to be one driver for each function, rather than a single driver
that manages both types of functions.

If your really want to know get the slot address information see
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q253232

=====================
Mark Roddy

-----Original Message-----
From: Suman Kumar [mailto:xxxxx@zensar.com]
Sent: Friday, January 16, 2004 10:34 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Regarding multifunction device.

Dear All,

If card (PCI) support more then one function, then how many
time my AddDevice routine will be called.

Suppose I have card, which has two functions say F1 and F2.
In which part of my driver code, I would be able to identify
that, PNP has called my driver for F1 or F2.

Please guide me.

Regards,

Suman


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as:
xxxxx@stratus.com To unsubscribe send a blank email to
xxxxx@lists.osr.com