Lines Matching +full:cfg +full:- +full:space
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
30 * This file contains facilities for runtime determination of address space
32 * arm64 SoC because the 32-bit SoC used the same mappings.
52 * The SDRAM address space is consistently mapped starting at 0 and extends to
55 * Peripherals are mapped further up at spots that vary per-SOC.
113 * map the first 1GB into the "legacy master view" (vcbus) address space. Thus,
115 * we also capture the main-peripheral busdma restriction below.
141 .soc_compat = "raspberrypi,model-b",
187 /* We'll cache it once we decide, because it won't change per-boot. */ in bcm283x_get_current_memcfg()
199 booted_soc_memcfg->soc_compat); in bcm283x_get_current_memcfg()
201 booted_soc_memcfg->soc_compat)) in bcm283x_get_current_memcfg()
214 ((ent)->armc_start == 0 && (ent)->armc_size == 0 && \
215 (ent)->vcbus_start == 0)
220 struct bcm283x_memory_soc_cfg *cfg; in bcm283x_armc_to_vcbus() local
224 cfg = bcm283x_get_current_memcfg(); in bcm283x_armc_to_vcbus()
225 map = cfg->memmap; in bcm283x_armc_to_vcbus()
227 if (pa >= ment->armc_start && in bcm283x_armc_to_vcbus()
228 pa < ment->armc_start + ment->armc_size) { in bcm283x_armc_to_vcbus()
229 return (pa - ment->armc_start) + ment->vcbus_start; in bcm283x_armc_to_vcbus()
238 printf("bcm283x_vcbus: No armc -> vcbus mapping found: %jx\n", in bcm283x_armc_to_vcbus()
246 struct bcm283x_memory_soc_cfg *cfg; in bcm283x_vcbus_to_armc() local
250 cfg = bcm283x_get_current_memcfg(); in bcm283x_vcbus_to_armc()
251 map = cfg->memmap; in bcm283x_vcbus_to_armc()
253 if (vca >= ment->vcbus_start && in bcm283x_vcbus_to_armc()
254 vca < ment->vcbus_start + ment->armc_size) { in bcm283x_vcbus_to_armc()
255 return (vca - ment->vcbus_start) + ment->armc_start; in bcm283x_vcbus_to_armc()
264 printf("bcm283x_vcbus: No vcbus -> armc mapping found: %jx\n", in bcm283x_vcbus_to_armc()
272 struct bcm283x_memory_soc_cfg *cfg; in bcm283x_dmabus_peripheral_lowaddr() local
274 cfg = bcm283x_get_current_memcfg(); in bcm283x_dmabus_peripheral_lowaddr()
275 return (cfg->busdma_lowaddr); in bcm283x_dmabus_peripheral_lowaddr()