Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/cpucontrol/cpucontrol.c
Show All 32 Lines | |||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include <assert.h> | #include <assert.h> | ||||
#include <err.h> | #include <err.h> | ||||
#include <errno.h> | #include <errno.h> | ||||
#include <dirent.h> | #include <dirent.h> | ||||
#include <fcntl.h> | #include <fcntl.h> | ||||
#include <paths.h> | |||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <unistd.h> | #include <unistd.h> | ||||
#include <sysexits.h> | #include <sysexits.h> | ||||
#include <sys/queue.h> | #include <sys/queue.h> | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/mman.h> | #include <sys/mman.h> | ||||
#include <sys/stat.h> | #include <sys/stat.h> | ||||
#include <sys/ioctl.h> | #include <sys/ioctl.h> | ||||
#include <sys/cpuctl.h> | #include <sys/cpuctl.h> | ||||
#include "cpucontrol.h" | #include "cpucontrol.h" | ||||
#include "amd.h" | #include "amd.h" | ||||
#include "intel.h" | #include "intel.h" | ||||
#include "via.h" | #include "via.h" | ||||
int verbosity_level = 0; | int verbosity_level = 0; | ||||
#define DEFAULT_DATADIR "/usr/local/share/cpucontrol" | #define DEFAULT_DATADIR _PATH_LOCALBASE "/share/cpucontrol" | ||||
#define FLAG_I 0x01 | #define FLAG_I 0x01 | ||||
#define FLAG_M 0x02 | #define FLAG_M 0x02 | ||||
#define FLAG_U 0x04 | #define FLAG_U 0x04 | ||||
#define FLAG_N 0x08 | #define FLAG_N 0x08 | ||||
#define FLAG_E 0x10 | #define FLAG_E 0x10 | ||||
#define OP_INVAL 0x00 | #define OP_INVAL 0x00 | ||||
▲ Show 20 Lines • Show All 505 Lines • Show Last 20 Lines |