Lines Matching refs:sgimc
24 struct sgimc_regs *sgimc; variable
26 EXPORT_SYMBOL(sgimc);
30 …return (memconfig & SGIMC_MCONFIG_BASEADDR) << ((sgimc->systemid & SGIMC_SYSID_MASKREV) >= 5 ? 24 … in get_bank_addr()
35 …return ((memconfig & SGIMC_MCONFIG_RMASK) + 0x0100) << ((sgimc->systemid & SGIMC_SYSID_MASKREV) >=… in get_bank_size()
40 unsigned int res = bank > 1 ? sgimc->mconfig1 : sgimc->mconfig0; in get_bank_config()
80 sgimc = (struct sgimc_regs *) in sgimc_init()
84 (int) sgimc->systemid & SGIMC_SYSID_MASKREV); in sgimc_init()
94 tmp = sgimc->cpuctrl0; in sgimc_init()
96 sgimc->cpuctrl0 = tmp; in sgimc_init()
103 sgimc->cstat = sgimc->gstat = 0; in sgimc_init()
109 tmp = sgimc->cpuctrl0; in sgimc_init()
114 sgimc->cpuctrl0 = tmp; in sgimc_init()
119 tmp = sgimc->cpuctrl1; in sgimc_init()
122 sgimc->cpuctrl1 = tmp; in sgimc_init()
138 sgimc->divider = 0x101; in sgimc_init()
148 tmp = sgimc->giopar & SGIMC_GIOPAR_GFX64; /* keep gfx 64bit settings */ in sgimc_init()
170 sgimc->giopar = tmp; /* poof */ in sgimc_init()
188 mconfig1 = sgimc->mconfig1; in prom_cleanup()
190 sgimc->mconfig1 = (mconfig1 & 0xffff0000) | 0x2060; in prom_cleanup()
196 sgimc->cmacc = (sgimc->cmacc & ~0xf) | 4; in prom_cleanup()
199 sgimc->mconfig1 = mconfig1; in prom_cleanup()