changeset 27763:eea0247a150b

MAX_PCI_DEVICES 64 is not enough on my system (even though lspci only shows 25 devices), upped to 256
author ranma
date Sat, 18 Oct 2008 16:07:18 +0000
parents 7efce8fe3a04
children 7de310806281
files vidix/dha.h vidix/pci.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/dha.h	Fri Oct 17 10:01:44 2008 +0000
+++ b/vidix/dha.h	Sat Oct 18 16:07:18 2008 +0000
@@ -42,7 +42,7 @@
 
 #define MAX_DEV_PER_VENDOR_CFG1 64
 #define MAX_PCI_DEVICES_PER_BUS 32
-#define MAX_PCI_DEVICES         64
+#define MAX_PCI_DEVICES         256
 #define PCI_MULTIFUNC_DEV	0x80
 #define PCI_COMMAND_IO          0x1     /* Enable response to I/O space */
 
--- a/vidix/pci.c	Fri Oct 17 10:01:44 2008 +0000
+++ b/vidix/pci.c	Sat Oct 18 16:07:18 2008 +0000
@@ -441,7 +441,7 @@
 
 #define MAX_DEV_PER_VENDOR_CFG1 64
 #define MAX_PCI_DEVICES_PER_BUS 32
-#define MAX_PCI_DEVICES         64
+#define MAX_PCI_DEVICES         256
 #define NF ((void (*)())NULL), { 0.0, 0, 0, NULL }
 #define PCI_MULTIFUNC_DEV	0x80
 #define PCI_ID_REG              0x00