Skip to content
Snippets Groups Projects
Commit a3a70725 authored by Linus Walleij's avatar Linus Walleij Committed by Wolfgang Denk
Browse files

pci: declare pciauto functions in header


The FSL PCI driver uses local prototypes for
pciauto_[pre|post]scan_setup_bridge(), this does not seem right,
so move them to the <pci.h> file.

Fixed a small extern declaration too, this is harmless but distracts
the view since all other prototypes are explicitly external.

Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8d96e1b0
No related branches found
No related tags found
No related merge requests found
...@@ -47,11 +47,6 @@ DECLARE_GLOBAL_DATA_PTR; ...@@ -47,11 +47,6 @@ DECLARE_GLOBAL_DATA_PTR;
#define FSL_PCIE_CFG_RDY 0x4b0 #define FSL_PCIE_CFG_RDY 0x4b0
#define FSL_PROG_IF_AGENT 0x1 #define FSL_PROG_IF_AGENT 0x1
void pciauto_prescan_setup_bridge(struct pci_controller *hose,
pci_dev_t dev, int sub_bus);
void pciauto_postscan_setup_bridge(struct pci_controller *hose,
pci_dev_t dev, int sub_bus);
#ifndef CONFIG_SYS_PCI_MEMORY_BUS #ifndef CONFIG_SYS_PCI_MEMORY_BUS
#define CONFIG_SYS_PCI_MEMORY_BUS 0 #define CONFIG_SYS_PCI_MEMORY_BUS 0
#endif #endif
......
...@@ -527,8 +527,12 @@ extern void pciauto_setup_device(struct pci_controller *hose, ...@@ -527,8 +527,12 @@ extern void pciauto_setup_device(struct pci_controller *hose,
struct pci_region *mem, struct pci_region *mem,
struct pci_region *prefetch, struct pci_region *prefetch,
struct pci_region *io); struct pci_region *io);
extern void pciauto_prescan_setup_bridge(struct pci_controller *hose,
pci_dev_t dev, int sub_bus);
extern void pciauto_postscan_setup_bridge(struct pci_controller *hose,
pci_dev_t dev, int sub_bus);
extern void pciauto_config_init(struct pci_controller *hose); extern void pciauto_config_init(struct pci_controller *hose);
int pciauto_config_device(struct pci_controller *hose, pci_dev_t dev); extern int pciauto_config_device(struct pci_controller *hose, pci_dev_t dev);
extern pci_dev_t pci_find_device (unsigned int vendor, unsigned int device, int index); extern pci_dev_t pci_find_device (unsigned int vendor, unsigned int device, int index);
extern pci_dev_t pci_find_devices (struct pci_device_id *ids, int index); extern pci_dev_t pci_find_devices (struct pci_device_id *ids, int index);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment