How to get PCI bus number and Func ID

Discussion in 'Windows Vista Drivers' started by sulabh, Jul 18, 2007.

  1. sulabh

    sulabh Guest

    hi all,

    how i can get the PCI bus number and Function ID. i have one board
    which has the 5 function for this i have to write five different .inf
    file or one .inf file is enough. if the .inf file is different then
    the PNP manager read that inf file and get the resources from the PCI
    bus driver and pass the our custom driver.

    In the Driver driver level the we have get the bus number and function
    number basis of the value driver manager the IO and Memory space for
    each function.

    i am writing the single driver for the each function that reason i
    have mentioning the I/O space and memory space according the
    function . that reason i have get the function ID and bus number how i
    will get this.

    regards
    sulabh
     
    sulabh, Jul 18, 2007
    #1
    1. Advertisements

  2. sulabh

    Mark Roddy Guest

    If your pci card has five different functions that are properly
    implemented as individual PCI functions then you have five different
    function drivers with five different inf files. On the other hand if all
    five functions provide the same service (5 nics for example) then a
    single inf and a single driver will suffice. If your card has 3
    functions of one type and 2 functions of another type, you write two
    drivers, one for each type.

    Why? If you have separate drivers for separate functions they do not
    care about their address. The OS PnP Mgr will connect the correct driver
    to the correct PCI function and its properly allocated resources.
    See above, generally you do not need this information.

    --

    =====================
    Mark Roddy DDK MVP
    Windows Vista/2003/XP Consulting
    Hollis Technology Solutions 603-321-1032
    www.hollistech.com
     
    Mark Roddy, Jul 20, 2007
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.