Linux Kernel
3.7.1
|
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/reboot.h>
#include <asm/prom.h>
#include <asm/smu.h>
#include "windfarm.h"
#include "windfarm_pid.h"
#include "windfarm_mpu.h"
Go to the source code of this file.
Macros | |
#define | VERSION "1.0" |
#define | DBG(args...) do { } while(0) |
#define | DBG_LOTS(args...) do { } while(0) |
#define | NR_CHIPS 2 |
#define | NR_CPU_FANS 3 * NR_CHIPS |
#define | CPU_TEMP_HIST_SIZE 180 |
#define | FAILURE_SENSOR 1 |
#define | FAILURE_FAN 2 |
#define | FAILURE_PERM 4 |
#define | FAILURE_LOW_OVERTEMP 8 |
#define | FAILURE_HIGH_OVERTEMP 16 |
#define | LOW_OVER_AVERAGE 0 |
#define | LOW_OVER_IMMEDIATE (10 << 16) |
#define | LOW_OVER_CLEAR ((-10) << 16) |
#define | HIGH_OVER_IMMEDIATE (14 << 16) |
#define | HIGH_OVER_AVERAGE (10 << 16) |
#define | HIGH_OVER_IMMEDIATE (14 << 16) |
Functions | |
module_init (wf_rm31_init) | |
module_exit (wf_rm31_exit) | |
MODULE_AUTHOR ("Benjamin Herrenschmidt <[email protected]>") | |
MODULE_DESCRIPTION ("Thermal control for Xserve G5") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS ("platform:windfarm") | |
#define CPU_TEMP_HIST_SIZE 180 |
Definition at line 62 of file windfarm_rm31.c.
#define DBG | ( | args... | ) | do { } while(0) |
Definition at line 30 of file windfarm_rm31.c.
#define DBG_LOTS | ( | args... | ) | do { } while(0) |
Definition at line 36 of file windfarm_rm31.c.
#define FAILURE_FAN 2 |
Definition at line 86 of file windfarm_rm31.c.
#define FAILURE_HIGH_OVERTEMP 16 |
Definition at line 89 of file windfarm_rm31.c.
#define FAILURE_LOW_OVERTEMP 8 |
Definition at line 88 of file windfarm_rm31.c.
#define FAILURE_PERM 4 |
Definition at line 87 of file windfarm_rm31.c.
#define FAILURE_SENSOR 1 |
Definition at line 85 of file windfarm_rm31.c.
#define HIGH_OVER_AVERAGE (10 << 16) |
Definition at line 96 of file windfarm_rm31.c.
#define HIGH_OVER_IMMEDIATE (14 << 16) |
Definition at line 97 of file windfarm_rm31.c.
#define HIGH_OVER_IMMEDIATE (14 << 16) |
Definition at line 97 of file windfarm_rm31.c.
#define LOW_OVER_AVERAGE 0 |
Definition at line 92 of file windfarm_rm31.c.
#define LOW_OVER_CLEAR ((-10) << 16) |
Definition at line 94 of file windfarm_rm31.c.
#define LOW_OVER_IMMEDIATE (10 << 16) |
Definition at line 93 of file windfarm_rm31.c.
#define NR_CHIPS 2 |
Definition at line 45 of file windfarm_rm31.c.
#define NR_CPU_FANS 3 * NR_CHIPS |
Definition at line 46 of file windfarm_rm31.c.
#define VERSION "1.0" |
Definition at line 22 of file windfarm_rm31.c.
MODULE_ALIAS | ( | "platform:windfarm" | ) |
MODULE_AUTHOR | ( | "Benjamin Herrenschmidt <[email protected]>" | ) |
module_exit | ( | wf_rm31_exit | ) |
module_init | ( | wf_rm31_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |