mips-mt.c (41c177cf354126a22443b5c80cec9fdd313e67e1) mips-mt.c (e5d9592c8652ee95e2251778eb34522f7826360f)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * General MIPS MT support routines, usable in AP/SP and SMVP.
4 * Copyright (C) 2005 Mips Technologies, Inc
5 */
6
7#include <linux/device.h>
8#include <linux/kernel.h>

--- 215 unchanged lines hidden (view full) ---

224 cache_op(Index_Store_Tag_D, INDEX_0);
225 write_c0_ecc(ectlval);
226 ehb();
227 printk("Mapped %ld ITC cells starting at 0x%08x\n",
228 ((itcblkgrn & 0x7fe00000) >> 20), itc_base);
229 }
230}
231
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * General MIPS MT support routines, usable in AP/SP and SMVP.
4 * Copyright (C) 2005 Mips Technologies, Inc
5 */
6
7#include <linux/device.h>
8#include <linux/kernel.h>

--- 215 unchanged lines hidden (view full) ---

224 cache_op(Index_Store_Tag_D, INDEX_0);
225 write_c0_ecc(ectlval);
226 ehb();
227 printk("Mapped %ld ITC cells starting at 0x%08x\n",
228 ((itcblkgrn & 0x7fe00000) >> 20), itc_base);
229 }
230}
231
232struct class *mt_class;
232const struct class mt_class = {
233 .name = "mt",
234};
233
234static int __init mips_mt_init(void)
235{
235
236static int __init mips_mt_init(void)
237{
236 struct class *mtc;
237
238 mtc = class_create("mt");
239 if (IS_ERR(mtc))
240 return PTR_ERR(mtc);
241
242 mt_class = mtc;
243
244 return 0;
238 return class_register(&mt_class);
245}
246
247subsys_initcall(mips_mt_init);
239}
240
241subsys_initcall(mips_mt_init);