6 #include <linux/kernel.h>
7 #include <linux/sched.h>
14 #include <asm/pgtable.h>
15 #include <asm/mmu_context.h>
22 #define SC_PAGE (128*SC_LINE)
24 static inline void blast_r5000_scache(
void)
35 static void r5k_dma_cache_inv_sc(
unsigned long addr,
unsigned long size)
52 end = (addr + size - 1) & ~(
SC_PAGE - 1);
59 static void r5k_sc_enable(
void)
69 static void r5k_sc_disable(
void)
79 static inline int __init r5k_sc_probe(
void)
88 printk(
"R5000 SCACHE size %ldkB, linesize 32 bytes.\n",
95 .bc_enable = r5k_sc_enable,
96 .bc_disable = r5k_sc_disable,
97 .bc_wback_inv = r5k_dma_cache_inv_sc,
98 .bc_inv = r5k_dma_cache_inv_sc
103 if (r5k_sc_probe()) {