Patchwork [v7,2/5] PCI: Define the maximum number of PCI function

login
register
mail settings
Submitter Takao Indoh
Date Nov. 27, 2012, 12:42 a.m.
Message ID <20121127004203.3604.75204.sendpatchset@tindoh.g01.fujitsu.local>
Download mbox | patch
Permalink /patch/202052/
State Not Applicable
Headers show

Comments

Takao Indoh - Nov. 27, 2012, 12:42 a.m.
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(-)

Patch

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 */