Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/identcpu-v6.c
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
#include <sys/conf.h> | #include <sys/conf.h> | ||||
#include <sys/kernel.h> | #include <sys/kernel.h> | ||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
#include <machine/cpu.h> | #include <machine/cpu.h> | ||||
#include <machine/md_var.h> | #include <machine/md_var.h> | ||||
char machine[] = "arm"; | char machine[] = "arm"; | ||||
SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD, | SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD | CTLFLAG_CAPRD, | ||||
machine, 0, "Machine class"); | machine, 0, "Machine class"); | ||||
static char cpu_model[64]; | static char cpu_model[64]; | ||||
SYSCTL_STRING(_hw, HW_MODEL, model, CTLFLAG_RD, | SYSCTL_STRING(_hw, HW_MODEL, model, CTLFLAG_RD, | ||||
cpu_model, sizeof(cpu_model), "Machine model"); | cpu_model, sizeof(cpu_model), "Machine model"); | ||||
static char hw_buf[81]; | static char hw_buf[81]; | ||||
static int hw_buf_idx; | static int hw_buf_idx; | ||||
▲ Show 20 Lines • Show All 317 Lines • Show Last 20 Lines |