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"
Go to the source code of this file.
Macros | |
#define | VERSION "0.2" |
#define | DEBUG |
#define | DBG(args...) printk(args) |
#define | DBG_LOTS(args...) do { } while(0) |
#define | NR_CHIPS 2 |
#define | NR_CORES 4 |
#define | NR_CPU_FANS 3 * NR_CHIPS |
#define | CPU_FANS_REQD (NR_CPU_FANS - 2) |
#define | FIRST_PUMP 4 |
#define | LAST_PUMP 5 |
#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_pm112_init) | |
module_exit (wf_pm112_exit) | |
MODULE_AUTHOR ("Paul Mackerras <[email protected]>") | |
MODULE_DESCRIPTION ("Thermal control for PowerMac11,2") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS ("platform:windfarm") | |
#define CPU_FANS_REQD (NR_CPU_FANS - 2) |
Definition at line 68 of file windfarm_pm112.c.
#define CPU_TEMP_HIST_SIZE 180 |
Definition at line 73 of file windfarm_pm112.c.
Definition at line 28 of file windfarm_pm112.c.
#define DBG_LOTS | ( | args... | ) | do { } while(0) |
Definition at line 36 of file windfarm_pm112.c.
#define DEBUG |
Definition at line 24 of file windfarm_pm112.c.
#define FAILURE_FAN 2 |
Definition at line 110 of file windfarm_pm112.c.
#define FAILURE_HIGH_OVERTEMP 16 |
Definition at line 113 of file windfarm_pm112.c.
#define FAILURE_LOW_OVERTEMP 8 |
Definition at line 112 of file windfarm_pm112.c.
#define FAILURE_PERM 4 |
Definition at line 111 of file windfarm_pm112.c.
#define FAILURE_SENSOR 1 |
Definition at line 109 of file windfarm_pm112.c.
#define FIRST_PUMP 4 |
Definition at line 69 of file windfarm_pm112.c.
#define HIGH_OVER_AVERAGE (10 << 16) |
Definition at line 120 of file windfarm_pm112.c.
#define HIGH_OVER_IMMEDIATE (14 << 16) |
Definition at line 121 of file windfarm_pm112.c.
#define HIGH_OVER_IMMEDIATE (14 << 16) |
Definition at line 121 of file windfarm_pm112.c.
#define LAST_PUMP 5 |
Definition at line 70 of file windfarm_pm112.c.
#define LOW_OVER_AVERAGE 0 |
Definition at line 116 of file windfarm_pm112.c.
#define LOW_OVER_CLEAR ((-10) << 16) |
Definition at line 118 of file windfarm_pm112.c.
#define LOW_OVER_IMMEDIATE (10 << 16) |
Definition at line 117 of file windfarm_pm112.c.
#define NR_CHIPS 2 |
Definition at line 45 of file windfarm_pm112.c.
#define NR_CORES 4 |
Definition at line 46 of file windfarm_pm112.c.
#define NR_CPU_FANS 3 * NR_CHIPS |
Definition at line 47 of file windfarm_pm112.c.
#define VERSION "0.2" |
Definition at line 22 of file windfarm_pm112.c.
MODULE_ALIAS | ( | "platform:windfarm" | ) |
MODULE_AUTHOR | ( | "Paul Mackerras <[email protected]>" | ) |
module_exit | ( | wf_pm112_exit | ) |
module_init | ( | wf_pm112_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |