PCI: initial commit (draft)
RFC 1/5 PCI: initial commit (draft)
used shorten version of linux-2.6.39 pci_ids.h
Signed-off-by Antony Pavlov <[email protected]>
--- drivers/Makefile | 1 + drivers/pci/Kconfig | 12 + drivers/pci/Makefile | 8 + drivers/pci/pci.c | 344 +++++++++++++++++++ include/linux/mod_devicetable.h | 24 ++ include/linux/pci.h | 201 +++++++++++ include/linux/pci_ids.h | 136 ++++++++ include/linux/pci_regs.h | 698 +++++++++++++++++++++++++++++++++++++++ 8 files changed, 1424 insertions(+), 0 deletions(-) create mode 100644 drivers/pci/Kconfig create mode 100644 drivers/pci/Makefile create mode 100644 drivers/pci/pci.c create mode 100644 include/linux/mod_devicetable.h create mode 100644 include/linux/pci.h create mode 100644 include/linux/pci_ids.h create mode 100644 include/linux/pci_regs.h
drivers/Makefile +1 -0
@@ -13,3 +13,4 @@ obj-y += clk/ obj-y += mfd/ obj-$(CONFIG_LED) += led/ obj-y += eeprom/ +obj-$(CONFIG_PCI) += pci/
drivers/pci/Kconfig new file +12 -0
@@ -0,0 +1,12 @@ +# +# PCI configuration +# +config PCI_DEBUG + bool "PCI Debugging" + depends on PCI + help + Say Y here if you want the PCI core to produce a bunch of debug + messages to the system log. Select this if you are having a + problem with PCI support and want to see more of what is going on. + + When in doubt, say N.
drivers/pci/Makefile new file +8 -0
@@ -0,0 +1,8 @@ +# +# Makefile for the PCI bus specific drivers. +# +obj-y += pci.o + +ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG + +CPPFLAGS += $(ccflags-y)
drivers/pci/pci.c new file +344 -0
344 lines not on this page · raw message
include/linux/mod_devicetable.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* Device tables which are exported to userspace via +* scripts/mod/file2alias.c. You must keep that file in sync with this +* header. +*/ + +#ifndef LINUX_MOD_DEVICETABLE_H +#define LINUX_MOD_DEVICETABLE_H + +#ifdef __KERNEL__ +#include <linux/types.h> +typedef unsigned long kernel_ulong_t ; +#endif + +#define PCI_ANY_ID (~0) + +struct pci_device_id { +__u32 vendor, device;/* Vendor and device ID or PCI_ANY_ID*/ +__u32 subvendor, subdevice;/* Subsystem ID's or PCI_ANY_ID */ +__u32 class, class_mask;/* (class,subclass,prog-if) triplet */ +kernel_ulong_t driver_data;/* Data private to the driver */ +}; + +#endif /* LINUX_MOD_DEVICETABLE_H */
include/linux/pci.h new file +201 -0
201 lines not on this page · raw message
include/linux/pci_ids.h new file +136 -0
136 lines not on this page · raw message
include/linux/pci_regs.h new file +698 -0
698 lines not on this page · raw message
Signature · 7 lines
1.7.5.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox