diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2008-03-27 14:51:40 -0400 |
---|---|---|
committer | Nicolas Pitre <nico@marvell.com> | 2008-03-27 14:51:40 -0400 |
commit | abc0197d7a74e51a1581ce9971d7c2c0f2adadaf (patch) | |
tree | 45d8acf4a401fd3eac32413161da657328b5ea94 /include/asm-arm/plat-orion | |
parent | 01eb569823792ab83b2810fcb31fa38560b08951 (diff) |
plat-orion: share PCIe handling code
Split off Orion PCIe handling code into plat-orion/.
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Reviewed-by: Tzachi Perelstein <tzachi@marvell.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Diffstat (limited to 'include/asm-arm/plat-orion')
-rw-r--r-- | include/asm-arm/plat-orion/pcie.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/asm-arm/plat-orion/pcie.h b/include/asm-arm/plat-orion/pcie.h new file mode 100644 index 000000000000..6434ac685d21 --- /dev/null +++ b/include/asm-arm/plat-orion/pcie.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /* | ||
2 | * include/asm-arm/plat-orion/pcie.h | ||
3 | * | ||
4 | * Marvell Orion SoC PCIe handling. | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public | ||
7 | * License version 2. This program is licensed "as is" without any | ||
8 | * warranty of any kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #ifndef __ASM_PLAT_ORION_PCIE_H | ||
12 | #define __ASM_PLAT_ORION_PCIE_H | ||
13 | |||
14 | u32 orion_pcie_dev_id(void __iomem *base); | ||
15 | u32 orion_pcie_rev(void __iomem *base); | ||
16 | int orion_pcie_link_up(void __iomem *base); | ||
17 | int orion_pcie_get_local_bus_nr(void __iomem *base); | ||
18 | void orion_pcie_set_local_bus_nr(void __iomem *base, int nr); | ||
19 | void orion_pcie_setup(void __iomem *base, | ||
20 | struct mbus_dram_target_info *dram); | ||
21 | int orion_pcie_rd_conf(void __iomem *base, struct pci_bus *bus, | ||
22 | u32 devfn, int where, int size, u32 *val); | ||
23 | int orion_pcie_rd_conf_tlp(void __iomem *base, struct pci_bus *bus, | ||
24 | u32 devfn, int where, int size, u32 *val); | ||
25 | int orion_pcie_rd_conf_wa(void __iomem *wa_base, struct pci_bus *bus, | ||
26 | u32 devfn, int where, int size, u32 *val); | ||
27 | int orion_pcie_wr_conf(void __iomem *base, struct pci_bus *bus, | ||
28 | u32 devfn, int where, int size, u32 val); | ||
29 | |||
30 | |||
31 | #endif | ||