2001-04-18 15:07:26 +04:00
|
|
|
/* $NetBSD: bcu_vrip.c,v 1.7 2001/04/18 11:07:26 sato Exp $ */
|
1999-09-16 16:23:18 +04:00
|
|
|
|
|
|
|
/*-
|
2001-04-18 15:07:26 +04:00
|
|
|
* Copyright (c) 1999-2001 SATO Kazumi. All rights reserved.
|
1999-09-16 16:23:18 +04:00
|
|
|
* Copyright (c) 1999 PocketBSD Project. All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
|
|
* must display the following acknowledgement:
|
|
|
|
* This product includes software developed by the PocketBSD project
|
|
|
|
* and its contributors.
|
|
|
|
* 4. Neither the name of the project nor the names of its contributors
|
|
|
|
* may be used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/systm.h>
|
|
|
|
#include <sys/device.h>
|
|
|
|
#include <sys/reboot.h>
|
|
|
|
|
|
|
|
#include <machine/bus.h>
|
|
|
|
|
|
|
|
#include <mips/cpuregs.h>
|
|
|
|
|
2001-04-18 15:07:26 +04:00
|
|
|
#include "opt_vr41xx.h"
|
1999-09-16 16:23:18 +04:00
|
|
|
#include <hpcmips/vr/vr.h>
|
2001-04-18 15:07:26 +04:00
|
|
|
#include <hpcmips/vr/vrcpudef.h>
|
1999-09-16 16:23:18 +04:00
|
|
|
#include <hpcmips/vr/vripvar.h>
|
|
|
|
#include <hpcmips/vr/vripreg.h>
|
|
|
|
#include <hpcmips/vr/bcureg.h>
|
|
|
|
#include <hpcmips/vr/bcuvar.h>
|
|
|
|
|
1999-12-16 12:36:19 +03:00
|
|
|
static int vrbcu_match __P((struct device *, struct cfdata *, void *));
|
|
|
|
static void vrbcu_attach __P((struct device *, struct device *, void *));
|
1999-09-16 16:23:18 +04:00
|
|
|
|
1999-12-16 12:36:19 +03:00
|
|
|
static void vrbcu_write __P((struct vrbcu_softc *, int, unsigned short));
|
|
|
|
static unsigned short vrbcu_read __P((struct vrbcu_softc *, int));
|
1999-12-09 05:14:00 +03:00
|
|
|
|
2000-01-27 09:25:54 +03:00
|
|
|
static void vrbcu_dump_regs __P((void));
|
|
|
|
|
1999-12-09 05:14:00 +03:00
|
|
|
char *vr_cpuname=NULL;
|
|
|
|
int vr_major=-1;
|
|
|
|
int vr_minor=-1;
|
|
|
|
int vr_cpuid=-1;
|
1999-09-16 16:23:18 +04:00
|
|
|
|
|
|
|
struct cfattach vrbcu_ca = {
|
1999-12-16 12:36:19 +03:00
|
|
|
sizeof(struct vrbcu_softc), vrbcu_match, vrbcu_attach
|
1999-09-16 16:23:18 +04:00
|
|
|
};
|
|
|
|
|
1999-12-16 12:36:19 +03:00
|
|
|
struct vrbcu_softc *the_bcu_sc = NULL;
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
vrbcu_write(sc, port, val)
|
|
|
|
struct vrbcu_softc *sc;
|
|
|
|
int port;
|
|
|
|
unsigned short val;
|
|
|
|
{
|
|
|
|
bus_space_write_2(sc->sc_iot, sc->sc_ioh, port, val);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline unsigned short
|
|
|
|
vrbcu_read(sc, port)
|
|
|
|
struct vrbcu_softc *sc;
|
|
|
|
int port;
|
|
|
|
{
|
|
|
|
return bus_space_read_2(sc->sc_iot, sc->sc_ioh, port);
|
|
|
|
}
|
|
|
|
|
1999-09-16 16:23:18 +04:00
|
|
|
static int
|
1999-12-16 12:36:19 +03:00
|
|
|
vrbcu_match(parent, cf, aux)
|
1999-09-16 16:23:18 +04:00
|
|
|
struct device *parent;
|
|
|
|
struct cfdata *cf;
|
|
|
|
void *aux;
|
|
|
|
{
|
1999-12-09 05:14:00 +03:00
|
|
|
return 2;
|
1999-09-16 16:23:18 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
1999-12-16 12:36:19 +03:00
|
|
|
vrbcu_attach(parent, self, aux)
|
1999-09-16 16:23:18 +04:00
|
|
|
struct device *parent;
|
|
|
|
struct device *self;
|
|
|
|
void *aux;
|
|
|
|
{
|
|
|
|
struct vrip_attach_args *va = aux;
|
1999-12-16 12:36:19 +03:00
|
|
|
struct vrbcu_softc *sc = (struct vrbcu_softc *)self;
|
1999-09-16 16:23:18 +04:00
|
|
|
|
1999-12-16 12:36:19 +03:00
|
|
|
sc->sc_iot = va->va_iot;
|
|
|
|
bus_space_map(sc->sc_iot, va->va_addr, va->va_size,
|
1999-09-16 16:23:18 +04:00
|
|
|
0, /* no flags */
|
1999-12-16 12:36:19 +03:00
|
|
|
&sc->sc_ioh);
|
1999-09-16 16:23:18 +04:00
|
|
|
|
|
|
|
printf("\n");
|
1999-12-16 12:36:19 +03:00
|
|
|
the_bcu_sc = sc;
|
2000-01-27 09:25:54 +03:00
|
|
|
vrbcu_dump_regs();
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
vrbcu_dump_regs()
|
|
|
|
{
|
|
|
|
struct vrbcu_softc *sc = the_bcu_sc;
|
2001-04-18 15:07:26 +04:00
|
|
|
int cpuclock = 0, tclock = 0, vtclock = 0, cpuid;
|
|
|
|
#if !defined(ONLY_VR4181) && !defined(ONLY_VR4102) && defined VRGROUP_4111_4122
|
|
|
|
int spdreg;
|
|
|
|
#endif
|
|
|
|
#ifdef VRBCUDEBUG
|
2000-01-27 09:25:54 +03:00
|
|
|
int reg;
|
2001-04-18 15:07:26 +04:00
|
|
|
#endif /* VRBCUDEBUG */
|
2000-01-27 09:25:54 +03:00
|
|
|
|
2001-04-18 15:07:26 +04:00
|
|
|
cpuid = vrbcu_vrip_getcpuid();
|
|
|
|
#if !defined(ONLY_VR4181) && !defined(ONLY_VR4102) && defined VRGROUP_4111_4122
|
|
|
|
if (cpuid != BCUREVID_FIXRID_4181
|
|
|
|
&& cpuid <= BCUREVID_RID_4122
|
|
|
|
&& cpuid >= BCUREVID_RID_4111) {
|
|
|
|
spdreg = vrbcu_read(sc, BCUCLKSPEED_REG_W);
|
2000-01-27 09:25:54 +03:00
|
|
|
#ifdef VRBCUDEBUG
|
2001-04-18 15:07:26 +04:00
|
|
|
printf("vrbcu: CLKSPEED %x: \n", spdreg);
|
|
|
|
#endif /* VRBCUDEBUG */
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2000-01-27 09:25:54 +03:00
|
|
|
cpuclock = vrbcu_vrip_getcpuclock();
|
|
|
|
|
|
|
|
switch (cpuid) {
|
2001-04-18 15:07:26 +04:00
|
|
|
case BCUREVID_FIXRID_4181:
|
2000-01-27 09:25:54 +03:00
|
|
|
case BCUREVID_RID_4101:
|
|
|
|
case BCUREVID_RID_4102:
|
|
|
|
vtclock = tclock = cpuclock/2;
|
|
|
|
break;
|
2001-04-18 15:07:26 +04:00
|
|
|
#if defined VR4111
|
2000-01-27 09:25:54 +03:00
|
|
|
case BCUREVID_RID_4111:
|
2001-04-18 15:07:26 +04:00
|
|
|
if ((spdreg&BCUCLKSPEED_DIVT2B) == 0)
|
2000-01-27 09:25:54 +03:00
|
|
|
vtclock = tclock = cpuclock/2;
|
2001-04-18 15:07:26 +04:00
|
|
|
else if ((spdreg&BCUCLKSPEED_DIVT3B) == 0)
|
2000-01-27 09:25:54 +03:00
|
|
|
vtclock = tclock = cpuclock/3;
|
2001-04-18 15:07:26 +04:00
|
|
|
else if ((spdreg&BCUCLKSPEED_DIVT4B) == 0)
|
2000-01-27 09:25:54 +03:00
|
|
|
vtclock = tclock = cpuclock/4;
|
|
|
|
else
|
|
|
|
vtclock = tclock = 0; /* XXX */
|
|
|
|
break;
|
2001-04-18 15:07:26 +04:00
|
|
|
#endif /* VR4111 */
|
|
|
|
#if defined VR4121
|
2000-01-27 09:25:54 +03:00
|
|
|
case BCUREVID_RID_4121:
|
2001-04-18 15:07:26 +04:00
|
|
|
{
|
|
|
|
int vt;
|
|
|
|
tclock = cpuclock / ((spdreg&BCUCLKSPEED_DIVTMASK)>>BCUCLKSPEED_DIVTSHFT);
|
|
|
|
vt = ((spdreg&BCUCLKSPEED_DIVVTMASK)>>BCUCLKSPEED_DIVVTSHFT);
|
2000-01-27 09:25:54 +03:00
|
|
|
if (vt == 0)
|
|
|
|
vtclock = 0; /* XXX */
|
|
|
|
else if (vt < 0x9)
|
|
|
|
vtclock = cpuclock / vt;
|
|
|
|
else
|
|
|
|
vtclock = cpuclock / ((vt - 8)*2+1) * 2;
|
2001-04-18 15:07:26 +04:00
|
|
|
}
|
2000-01-27 09:25:54 +03:00
|
|
|
break;
|
2001-04-18 15:07:26 +04:00
|
|
|
#endif /* VR4121 */
|
2000-01-27 09:25:54 +03:00
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2001-04-18 15:07:26 +04:00
|
|
|
if (tclock)
|
|
|
|
printf("%s: cpu %d.%03dMHz, bus %d.%03dMHz, ram %d.%03dMHz\n",
|
|
|
|
sc->sc_dev.dv_xname,
|
|
|
|
cpuclock/1000000, (cpuclock%1000000)/1000,
|
|
|
|
tclock/1000000, (tclock%1000000)/1000,
|
|
|
|
vtclock/1000000, (vtclock%1000000)/1000);
|
|
|
|
else {
|
|
|
|
printf("%s: cpu %d.%03dMHz\n",
|
|
|
|
sc->sc_dev.dv_xname,
|
|
|
|
cpuclock/1000000, (cpuclock%1000000)/1000);
|
|
|
|
printf("%s: UNKNOWN BUS CLOCK SPEED: CPU is UNKNOWN or NOT CONFIGURED\n",
|
|
|
|
sc->sc_dev.dv_xname);
|
|
|
|
}
|
2000-01-27 09:25:54 +03:00
|
|
|
#ifdef VRBCUDEBUG
|
2001-04-18 15:07:26 +04:00
|
|
|
reg = vrbcu_read(sc, BCUCNT1_REG_W);
|
|
|
|
printf("vrbcu: CNT1 %x: ", reg);
|
|
|
|
bitdisp16(reg);
|
|
|
|
#if !defined(ONLY_VR4181)
|
|
|
|
if (cpuid != BCUREVID_FIXRID_4181
|
|
|
|
&& cpuid <= BCUREVID_RID_4121
|
|
|
|
&& cpuid >= BCUREVID_RID_4102) {
|
|
|
|
reg = vrbcu_read(sc, BCUCNT2_REG_W);
|
|
|
|
printf("vrbcu: CNT2 %x: ", reg);
|
|
|
|
bitdisp16(reg);
|
|
|
|
}
|
|
|
|
#endif /* !defined ONLY_VR4181 */
|
|
|
|
#if !defined(ONLY_VR4181) || !defined(ONLY_VR4122)
|
|
|
|
if (cpuid != BCUREVID_FIXRID_4181
|
|
|
|
&& cpuid <= BCUREVID_RID_4121
|
|
|
|
&& cpuid >= BCUREVID_RID_4102) {
|
|
|
|
reg = vrbcu_read(sc, BCUSPEED_REG_W);
|
|
|
|
printf("vrbcu: SPEED %x: ", reg);
|
|
|
|
bitdisp16(reg);
|
|
|
|
reg = vrbcu_read(sc, BCUERRST_REG_W);
|
|
|
|
printf("vrbcu: ERRST %x: ", reg);
|
|
|
|
bitdisp16(reg);
|
|
|
|
reg = vrbcu_read(sc, BCURFCNT_REG_W);
|
|
|
|
printf("vrbcu: RFCNT %x\n", reg);
|
|
|
|
reg = vrbcu_read(sc, BCUREFCOUNT_REG_W);
|
|
|
|
printf("vrbcu: RFCOUNT %x\n", reg);
|
|
|
|
}
|
|
|
|
#endif /* !defined(ONLY_VR4181) || !defined(ONLY_VR4122) */
|
|
|
|
#if !defined(ONLY_VR4181)
|
|
|
|
if (cpuid != BCUREVID_FIXRID_4181
|
|
|
|
&& cpuid <= BCUREVID_RID_4122
|
|
|
|
&& cpuid >= BCUREVID_RID_4111)
|
|
|
|
{
|
2000-01-27 09:25:54 +03:00
|
|
|
reg = vrbcu_read(sc, BCUCNT3_REG_W);
|
|
|
|
printf("vrbcu: CNT3 %x: ", reg);
|
|
|
|
bitdisp16(reg);
|
|
|
|
}
|
2001-04-18 15:07:26 +04:00
|
|
|
#endif /* !defined ONLY_VR4181 */
|
2000-01-27 09:25:54 +03:00
|
|
|
#endif /* VRBCUDEBUG */
|
|
|
|
|
1999-09-16 16:23:18 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
static char *cpuname[] = {
|
2001-04-18 15:07:26 +04:00
|
|
|
"VR4101", /* 0 */
|
|
|
|
"VR4102", /* 1 */
|
|
|
|
"VR4111", /* 2 */
|
|
|
|
"VR4121", /* 3 */
|
|
|
|
"VR4122", /* 4 */
|
|
|
|
"UNKNOWN",
|
|
|
|
"UNKNOWN",
|
|
|
|
"UNKNOWN",
|
|
|
|
"UNKNOWN",
|
1999-09-16 16:23:18 +04:00
|
|
|
"UNKNOWN",
|
|
|
|
"UNKNOWN",
|
|
|
|
"UNKNOWN",
|
2001-04-18 15:07:26 +04:00
|
|
|
"UNKNOWN",
|
|
|
|
"UNKNOWN",
|
|
|
|
"UNKNOWN",
|
|
|
|
"UNKNOWN",
|
|
|
|
"VR4181", /* 0x10 + 0 */
|
|
|
|
};
|
1999-09-16 16:23:18 +04:00
|
|
|
|
1999-12-09 05:14:00 +03:00
|
|
|
int
|
|
|
|
vrbcu_vrip_getcpuid(void)
|
|
|
|
{
|
|
|
|
volatile u_int16_t *revreg;
|
|
|
|
|
|
|
|
if (vr_cpuid != -1)
|
|
|
|
return vr_cpuid;
|
|
|
|
|
|
|
|
if (vr_cpuid == -1) {
|
|
|
|
revreg = (u_int16_t *)MIPS_PHYS_TO_KSEG1((VRIP_BCU_ADDR+BCUREVID_REG_W));
|
|
|
|
|
|
|
|
vr_cpuid = *revreg;
|
|
|
|
vr_cpuid = (vr_cpuid&BCUREVID_RIDMASK)>>BCUREVID_RIDSHFT;
|
2001-04-18 15:07:26 +04:00
|
|
|
#if !defined(VR4101) && defined(VR4181)
|
|
|
|
if (vr_cpuid == BCUREVID_RID_4181) /* conflict vr4101 */
|
|
|
|
vr_cpuid = BCUREVID_FIXRID_4181;
|
|
|
|
#endif /* !defined(VR4101) && defined(VR4181) */
|
1999-12-09 05:14:00 +03:00
|
|
|
}
|
|
|
|
return vr_cpuid;
|
|
|
|
}
|
|
|
|
|
1999-09-16 16:23:18 +04:00
|
|
|
char *
|
|
|
|
vrbcu_vrip_getcpuname(void)
|
|
|
|
{
|
1999-12-09 05:14:00 +03:00
|
|
|
int cpuid;
|
1999-09-16 16:23:18 +04:00
|
|
|
|
1999-12-09 05:14:00 +03:00
|
|
|
if (vr_cpuname != NULL)
|
|
|
|
return vr_cpuname;
|
1999-09-16 16:23:18 +04:00
|
|
|
|
1999-12-09 05:14:00 +03:00
|
|
|
cpuid = vrbcu_vrip_getcpuid();
|
|
|
|
vr_cpuname = cpuname[cpuid];
|
|
|
|
return vr_cpuname;
|
1999-09-16 16:23:18 +04:00
|
|
|
}
|
|
|
|
|
1999-12-09 05:14:00 +03:00
|
|
|
|
1999-09-16 16:23:18 +04:00
|
|
|
int
|
|
|
|
vrbcu_vrip_getcpumajor(void)
|
|
|
|
{
|
|
|
|
volatile u_int16_t *revreg;
|
1999-12-09 05:14:00 +03:00
|
|
|
|
|
|
|
if (vr_major != -1)
|
|
|
|
return vr_major;
|
1999-09-16 16:23:18 +04:00
|
|
|
|
|
|
|
revreg = (u_int16_t *)MIPS_PHYS_TO_KSEG1((VRIP_BCU_ADDR+BCUREVID_REG_W));
|
|
|
|
|
1999-12-09 05:14:00 +03:00
|
|
|
vr_major = *revreg;
|
|
|
|
vr_major = (vr_major&BCUREVID_MJREVMASK)>>BCUREVID_MJREVSHFT;
|
|
|
|
return vr_major;
|
1999-09-16 16:23:18 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
vrbcu_vrip_getcpuminor(void)
|
|
|
|
{
|
|
|
|
volatile u_int16_t *revreg;
|
1999-12-09 05:14:00 +03:00
|
|
|
|
|
|
|
if (vr_minor != -1)
|
|
|
|
return vr_minor;
|
1999-09-16 16:23:18 +04:00
|
|
|
|
|
|
|
revreg = (u_int16_t *)MIPS_PHYS_TO_KSEG1((VRIP_BCU_ADDR+BCUREVID_REG_W));
|
|
|
|
|
1999-12-09 05:14:00 +03:00
|
|
|
vr_minor = *revreg;
|
|
|
|
vr_minor = (vr_minor&BCUREVID_MNREVMASK)>>BCUREVID_MNREVSHFT;
|
|
|
|
return vr_minor;
|
1999-09-16 16:23:18 +04:00
|
|
|
}
|
1999-12-16 15:10:02 +03:00
|
|
|
|
|
|
|
#define CLKX 18432000 /* CLKX1,CLKX2: 18.432MHz */
|
|
|
|
#define MHZ 1000000
|
|
|
|
|
|
|
|
int
|
|
|
|
vrbcu_vrip_getcpuclock(void)
|
|
|
|
{
|
|
|
|
u_int16_t clksp;
|
|
|
|
int cpuid, cpuclock;
|
|
|
|
|
|
|
|
cpuid = vrbcu_vrip_getcpuid();
|
2001-04-18 15:07:26 +04:00
|
|
|
if (cpuid != BCUREVID_FIXRID_4181 && cpuid >= BCUREVID_RID_4111) {
|
|
|
|
clksp = *(u_int16_t *)MIPS_PHYS_TO_KSEG1((VRIP_BCU_ADDR+BCUCLKSPEED_REG_W)) & BCUCLKSPEED_CLKSPMASK;
|
|
|
|
}
|
1999-12-16 15:10:02 +03:00
|
|
|
|
|
|
|
switch (cpuid) {
|
2001-04-18 15:07:26 +04:00
|
|
|
case BCUREVID_FIXRID_4181:
|
|
|
|
/* assume 66MHz */
|
|
|
|
cpuclock = 66000000;
|
|
|
|
/* branch delay is 1 clock; 2 clock/loop */
|
|
|
|
cpuspeed = (cpuclock / 2 + MHZ / 2) / MHZ;
|
|
|
|
break;
|
1999-12-16 15:10:02 +03:00
|
|
|
case BCUREVID_RID_4101:
|
|
|
|
/* assume 33MHz */
|
|
|
|
cpuclock = 33000000;
|
|
|
|
/* branch delay is 1 clock; 2 clock/loop */
|
|
|
|
cpuspeed = (cpuclock / 2 + MHZ / 2) / MHZ;
|
|
|
|
break;
|
|
|
|
case BCUREVID_RID_4102:
|
|
|
|
cpuclock = CLKX / clksp * 32;
|
|
|
|
/* branch delay is 1 clock; 2 clock/loop */
|
|
|
|
cpuspeed = (cpuclock / 2 + MHZ / 2) / MHZ;
|
|
|
|
break;
|
|
|
|
case BCUREVID_RID_4111:
|
|
|
|
cpuclock = CLKX / clksp * 64;
|
|
|
|
/* branch delay is 1 clock; 2 clock/loop */
|
|
|
|
cpuspeed = (cpuclock / 2 + MHZ / 2) / MHZ;
|
|
|
|
break;
|
|
|
|
case BCUREVID_RID_4121:
|
|
|
|
cpuclock = CLKX / clksp * 64;
|
|
|
|
/* branch delay is 2 clock; 3 clock/loop */
|
|
|
|
cpuspeed = (cpuclock / 3 + MHZ / 2) / MHZ;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
panic("unknown CPU type %d\n", cpuid);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return cpuclock;
|
|
|
|
}
|