lkml.org 
[lkml]   [2012]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v7 2/5] PCI: Define the maximum number of PCI function
    Date
    Define the maximum number of PCI function so that PCI functions can be
    enumerated without using "8".

    Signed-off-by: Takao Indoh <indou.takao@jp.fujitsu.com>
    ---
    include/linux/pci.h | 2 ++
    1 files changed, 2 insertions(+), 0 deletions(-)

    diff --git a/include/linux/pci.h b/include/linux/pci.h
    index ee21795..eca3231 100644
    --- a/include/linux/pci.h
    +++ b/include/linux/pci.h
    @@ -35,6 +35,8 @@
    /* Include the ID list */
    #include <linux/pci_ids.h>

    +#define PCI_MAX_FUNCTIONS 8
    +
    /* pci_slot represents a physical slot */
    struct pci_slot {
    struct pci_bus *bus; /* The bus this slot is on */
    --
    1.7.1



    \
     
     \ /
      Last update: 2012-11-27 02:21    [W:4.090 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site