···11-/*22- * arch/mips/sni/pcimt_scache.c33- *44- * This file is subject to the terms and conditions of the GNU General Public55- * License. See the file "COPYING" in the main directory of this archive66- * for more details.77- *88- * Copyright (c) 1997, 1998 by Ralf Baechle99- */1010-#include <linux/init.h>1111-#include <linux/kernel.h>1212-#include <asm/bcache.h>1313-#include <asm/sni.h>1414-1515-#define cacheconf (*(volatile unsigned int *)PCIMT_CACHECONF)1616-#define invspace (*(volatile unsigned int *)PCIMT_INVSPACE)1717-1818-void __init sni_pcimt_sc_init(void)1919-{2020- unsigned int scsiz, sc_size;2121-2222- scsiz = cacheconf & 7;2323- if (scsiz == 0) {2424- printk("Second level cache is deactived.\n");2525- return;2626- }2727- if (scsiz >= 6) {2828- printk("Invalid second level cache size configured, "2929- "deactivating second level cache.\n");3030- cacheconf = 0;3131- return;3232- }3333-3434- sc_size = 128 << scsiz;3535- printk("%dkb second level cache detected, deactivating.\n", sc_size);3636- cacheconf = 0;3737-}