Lennert Buytenhek | abc0197 | 2008-03-27 14:51:40 -0400 | [diff] [blame] | 1 | /* |
Lennert Buytenhek | 6f088f1 | 2008-08-09 13:44:58 +0200 | [diff] [blame] | 2 | * arch/arm/plat-orion/include/plat/pcie.h |
Lennert Buytenhek | abc0197 | 2008-03-27 14:51:40 -0400 | [diff] [blame] | 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 | |
Lennert Buytenhek | 6f088f1 | 2008-08-09 13:44:58 +0200 | [diff] [blame] | 11 | #ifndef __PLAT_PCIE_H |
| 12 | #define __PLAT_PCIE_H |
Lennert Buytenhek | abc0197 | 2008-03-27 14:51:40 -0400 | [diff] [blame] | 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); |
Lennert Buytenhek | a9311cf | 2008-06-22 22:45:09 +0200 | [diff] [blame] | 17 | int orion_pcie_x4_mode(void __iomem *base); |
Lennert Buytenhek | abc0197 | 2008-03-27 14:51:40 -0400 | [diff] [blame] | 18 | int orion_pcie_get_local_bus_nr(void __iomem *base); |
| 19 | void orion_pcie_set_local_bus_nr(void __iomem *base, int nr); |
| 20 | void orion_pcie_setup(void __iomem *base, |
| 21 | struct mbus_dram_target_info *dram); |
| 22 | int orion_pcie_rd_conf(void __iomem *base, struct pci_bus *bus, |
| 23 | u32 devfn, int where, int size, u32 *val); |
| 24 | int orion_pcie_rd_conf_tlp(void __iomem *base, struct pci_bus *bus, |
| 25 | u32 devfn, int where, int size, u32 *val); |
| 26 | int orion_pcie_rd_conf_wa(void __iomem *wa_base, struct pci_bus *bus, |
| 27 | u32 devfn, int where, int size, u32 *val); |
| 28 | int orion_pcie_wr_conf(void __iomem *base, struct pci_bus *bus, |
| 29 | u32 devfn, int where, int size, u32 val); |
| 30 | |
| 31 | |
| 32 | #endif |