Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/cpucontrol/cpucontrol.c
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
static SLIST_HEAD(, datadir) datadirs = SLIST_HEAD_INITIALIZER(datadirs); | static SLIST_HEAD(, datadir) datadirs = SLIST_HEAD_INITIALIZER(datadirs); | ||||
static struct ucode_handler { | static struct ucode_handler { | ||||
ucode_probe_t *probe; | ucode_probe_t *probe; | ||||
ucode_update_t *update; | ucode_update_t *update; | ||||
} handlers[] = { | } handlers[] = { | ||||
{ intel_probe, intel_update }, | { intel_probe, intel_update }, | ||||
{ amd10h_probe, amd10h_update }, | |||||
{ amd_probe, amd_update }, | { amd_probe, amd_update }, | ||||
{ via_probe, via_update }, | { via_probe, via_update }, | ||||
}; | }; | ||||
#define NHANDLERS (sizeof(handlers) / sizeof(*handlers)) | #define NHANDLERS (sizeof(handlers) / sizeof(*handlers)) | ||||
static void usage(void); | static void usage(void); | ||||
static int isdir(const char *path); | static int isdir(const char *path); | ||||
static int do_cpuid(const char *cmdarg, const char *dev); | static int do_cpuid(const char *cmdarg, const char *dev); | ||||
▲ Show 20 Lines • Show All 384 Lines • Show Last 20 Lines |