Home | History | Annotate | Download | only in sbmips

Lines Matching defs:cpu

1 /* $NetBSD: cpu.c,v 1.24 2023/12/05 19:19:26 andvar Exp $ */
36 __KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.24 2023/12/05 19:19:26 andvar Exp $");
41 #include <sys/cpu.h>
62 CFATTACH_DECL_NEW(cpu, sizeof(struct cpu_softc),
88 struct cpu_softc * const cpu = device_private(self);
95 /* XXX this code must run on the target CPU */
100 /* Determine CPU frequency */
102 /* XXX: We should determine the CPU frequency from a time source
103 * not coupled with the CPU crystal, like the RTC. Unfortunately
129 cpu->sb1cpu_dev = self;
130 cpu->sb1cpu_ci = ci;
131 ci->ci_softc = cpu;
133 sb1250_cpu_init(cpu);
140 cpu->sb1cpu_dev = self;
141 cpu->sb1cpu_ci = ci;
142 ci->ci_softc = cpu;
144 sb1250_cpu_init(cpu);