Lines Matching defs:cpu
1 /* $NetBSD: cpu.c,v 1.4 2023/12/05 19:16:48 andvar Exp $ */
36 __KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.4 2023/12/05 19:16:48 andvar Exp $");
41 #include <sys/cpu.h>
63 CFATTACH_DECL_NEW(cpu, sizeof(struct cpu_softc),
89 struct cpu_softc * const cpu = device_private(self);
96 /* XXX this code must run on the target CPU */
101 /* Determine CPU frequency */
103 /* XXX: We should determine the CPU frequency from a time source
104 * not coupled with the CPU crystal, like the RTC. Unfortunately
130 cpu->sb1cpu_dev = self;
131 cpu->sb1cpu_ci = ci;
132 ci->ci_softc = cpu;
134 sb1250_cpu_init(cpu);
141 cpu->sb1cpu_dev = self;
142 cpu->sb1cpu_ci = ci;
143 ci->ci_softc = cpu;
145 sb1250_cpu_init(cpu);