PCI: brcmstb: Add Broadcom STB PCIe host controller driver
[platform/kernel/linux-rpi.git] / include / soc / brcmstb / memory_api.h
1 #ifndef __MEMORY_API_H
2 #define __MEMORY_API_H
3
4 /*
5  * Bus Interface Unit control register setup, must happen early during boot,
6  * before SMP is brought up, called by machine entry point.
7  */
8 void brcmstb_biuctrl_init(void);
9
10 #ifdef CONFIG_SOC_BRCMSTB
11 int brcmstb_memory_phys_addr_to_memc(phys_addr_t pa);
12 u64 brcmstb_memory_memc_size(int memc);
13 #else
14 static inline int brcmstb_memory_phys_addr_to_memc(phys_addr_t pa)
15 {
16         return -EINVAL;
17 }
18
19 static inline u64 brcmstb_memory_memc_size(int memc)
20 {
21         return -1;
22 }
23 #endif
24
25 #endif /* __MEMORY_API_H */