aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include/sys
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-02-16 13:11:42 +0100
committerH. Peter Anvin <hpa@zytor.com>2009-02-25 20:58:41 -0800
commit0f106fd324fd22e42fbc6ded1b088ec982d4933f (patch)
tree747021672fa3b1ba49ee1d10ec674d46ed85eaea /com32/include/sys
parent5209894429f09bba73a6545d1d495fc9279a7147 (diff)
downloadsyslinux-0f106fd324fd22e42fbc6ded1b088ec982d4933f.tar.gz
syslinux-0f106fd324fd22e42fbc6ded1b088ec982d4933f.tar.xz
syslinux-0f106fd324fd22e42fbc6ded1b088ec982d4933f.zip
hdt: Adding more defined values for pci components Enabling mulitple kernel modules per pci device Updating pcitest
Diffstat (limited to 'com32/include/sys')
-rw-r--r--com32/include/sys/pci.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/com32/include/sys/pci.h b/com32/include/sys/pci.h
index ff450477..feab9e82 100644
--- a/com32/include/sys/pci.h
+++ b/com32/include/sys/pci.h
@@ -4,9 +4,14 @@
#include <inttypes.h>
#include <sys/io.h>
-#define MAX_PCI_FUNC 8
-#define MAX_PCI_DEVICES 32
-#define MAX_PCI_BUSES 256
+#define MAX_PCI_FUNC 8
+#define MAX_PCI_DEVICES 32
+#define MAX_PCI_BUSES 256
+#define LINUX_KERNEL_MODULE_SIZE 64
+#define PCI_VENDOR_NAME_SIZE 256
+#define PCI_PRODUCT_NAME_SIZE 256
+#define PCI_CLASS_NAME_SIZE 256
+#define MAX_KERNEL_MODULES_PER_PCI_DEVICE 10
typedef uint32_t pciaddr_t;
@@ -18,10 +23,11 @@ enum {
/* a structure for extended pci information */
/* XXX: use pointers for these? */
struct pci_dev_info {
- char vendor_name[256];
- char product_name[256];
- char linux_kernel_module[64];
- char class_name[256];
+ char vendor_name[PCI_VENDOR_NAME_SIZE];
+ char product_name[PCI_PRODUCT_NAME_SIZE];
+ char linux_kernel_module[LINUX_KERNEL_MODULE_SIZE][MAX_KERNEL_MODULES_PER_PCI_DEVICE];
+ int linux_kernel_module_count;
+ char class_name[PCI_CLASS_NAME_SIZE];
};
/* PCI device (really, function) */