memory: tegra: Add API for retrieving carveout bounds
[sfrench/cifs-2.6.git] / include / soc / tegra / mc.h
index 47ce6d4344273231057c9bf192027bdbd7ef625c..51a2263e1bc59d2b2fd5cc42b2279800b09fbb0d 100644 (file)
@@ -193,6 +193,8 @@ struct tegra_mc_soc {
        unsigned int num_address_bits;
        unsigned int atom_size;
 
+       unsigned int num_carveouts;
+
        u16 client_id_mask;
        u8 num_channels;
 
@@ -244,6 +246,8 @@ unsigned int tegra_mc_get_emem_device_count(struct tegra_mc *mc);
 #ifdef CONFIG_TEGRA_MC
 struct tegra_mc *devm_tegra_memory_controller_get(struct device *dev);
 int tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev);
+int tegra_mc_get_carveout_info(struct tegra_mc *mc, unsigned int id,
+                               phys_addr_t *base, u64 *size);
 #else
 static inline struct tegra_mc *
 devm_tegra_memory_controller_get(struct device *dev)
@@ -256,6 +260,13 @@ tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev)
 {
        return -ENODEV;
 }
+
+static inline int
+tegra_mc_get_carveout_info(struct tegra_mc *mc, unsigned int id,
+                           phys_addr_t *base, u64 *size)
+{
+       return -ENODEV;
+}
 #endif
 
 #endif /* __SOC_TEGRA_MC_H__ */