static void sdram_map_bcr (ppc4xx_sdram_t *sdram)

{

    int i;



    for (i = 0; i < sdram->nbanks; i++) {

        if (sdram->ram_sizes[i] != 0) {

            sdram_set_bcr(&sdram->bcr[i],

                          sdram_bcr(sdram->ram_bases[i], sdram->ram_sizes[i]),

                          1);

        } else {

            sdram_set_bcr(&sdram->bcr[i], 0x00000000, 0);

        }

    }

}

static void sdram_map_bcr (ppc4xx_sdram_t *sdram)

{

    int i;



    for (i = 0; i < sdram->nbanks; i++) {

        if (sdram->ram_sizes[i] != 0) {

            sdram_set_bcr(&sdram->bcr[i],

                          sdram_bcr(sdram->ram_bases[i], sdram->ram_sizes[i]),

                          1);

        } else {

            sdram_set_bcr(&sdram->bcr[i], 0x00000000, 0);

        }

    }

}

static void FUNC_0 (ppc4xx_sdram_t *VAR_0)

{

    int VAR_1;



    for (VAR_1 = 0; VAR_1 < VAR_0->nbanks; VAR_1++) {

        if (VAR_0->ram_sizes[VAR_1] != 0) {

            sdram_set_bcr(&VAR_0->bcr[VAR_1],

                          sdram_bcr(VAR_0->ram_bases[VAR_1], VAR_0->ram_sizes[VAR_1]),

                          1);

        } else {

            sdram_set_bcr(&VAR_0->bcr[VAR_1], 0x00000000, 0);

        }

    }

}

static void FUNC_0 (ppc4xx_sdram_t *VAR_0)
{ int VAR_1; for (VAR_1 = 0; VAR_1 < VAR_0->nbanks; VAR_1++) { if (VAR_0->ram_sizes[VAR_1] != 0) { sdram_set_bcr(&VAR_0->bcr[VAR_1],
sdram_bcr(VAR_0->ram_bases[VAR_1], VAR_0->ram_sizes[VAR_1]),
1); } else { sdram_set_bcr(&VAR_0->bcr[VAR_1], 0x00000000, 0); } } }