Skip to content
Snippets Groups Projects
Commit fa5cec03 authored by Paul Burton's avatar Paul Burton Committed by Daniel Schwierzeck
Browse files

pci.h: allow inclusion in assembly source


This patch simply #ifdef's out the C-specific parts of pci.h when it is
included by an assembly file. This will allow the macros it contains to
be used from assembly source as will be done in a followup commit adding
support for more modern MIPS Malta boards.

Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
parent 62715a2c
No related branches found
No related tags found
No related merge requests found
......@@ -417,6 +417,8 @@
#include <pci_ids.h>
#ifndef __ASSEMBLY__
#ifdef CONFIG_SYS_PCI_64BIT
typedef u64 pci_addr_t;
typedef u64 pci_size_t;
......@@ -667,4 +669,6 @@ extern void pci_mpc824x_init (struct pci_controller *hose);
#ifdef CONFIG_MPC85xx
extern void pci_mpc85xx_init (struct pci_controller *hose);
#endif
#endif /* _PCI_H */
#endif /* __ASSEMBLY__ */
#endif /* _PCI_H */
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