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 | SLOTS_FAN_DEFAULT_PWM 40 |
#define | CPU_INTAKE_SCALE 0x0000f852 |
#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_pm72_init) | |
module_exit (wf_pm72_exit) | |
MODULE_AUTHOR ("Benjamin Herrenschmidt <[email protected]>") | |
MODULE_DESCRIPTION ("Thermal control for AGP PowerMac G5s") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS ("platform:windfarm") | |
#define CPU_INTAKE_SCALE 0x0000f852 |
Definition at line 70 of file windfarm_pm72.c.
#define CPU_TEMP_HIST_SIZE 180 |
Definition at line 64 of file windfarm_pm72.c.
#define DBG | ( | args... | ) | do { } while(0) |
Definition at line 30 of file windfarm_pm72.c.
#define DBG_LOTS | ( | args... | ) | do { } while(0) |
Definition at line 36 of file windfarm_pm72.c.
#define FAILURE_FAN 2 |
Definition at line 92 of file windfarm_pm72.c.
#define FAILURE_HIGH_OVERTEMP 16 |
Definition at line 95 of file windfarm_pm72.c.
#define FAILURE_LOW_OVERTEMP 8 |
Definition at line 94 of file windfarm_pm72.c.
#define FAILURE_PERM 4 |
Definition at line 93 of file windfarm_pm72.c.
#define FAILURE_SENSOR 1 |
Definition at line 91 of file windfarm_pm72.c.
#define HIGH_OVER_AVERAGE (10 << 16) |
Definition at line 102 of file windfarm_pm72.c.
#define HIGH_OVER_IMMEDIATE (14 << 16) |
Definition at line 103 of file windfarm_pm72.c.
#define HIGH_OVER_IMMEDIATE (14 << 16) |
Definition at line 103 of file windfarm_pm72.c.
#define LOW_OVER_AVERAGE 0 |
Definition at line 98 of file windfarm_pm72.c.
#define LOW_OVER_CLEAR ((-10) << 16) |
Definition at line 100 of file windfarm_pm72.c.
#define LOW_OVER_IMMEDIATE (10 << 16) |
Definition at line 99 of file windfarm_pm72.c.
#define NR_CHIPS 2 |
Definition at line 45 of file windfarm_pm72.c.
#define NR_CPU_FANS 3 * NR_CHIPS |
Definition at line 46 of file windfarm_pm72.c.
#define SLOTS_FAN_DEFAULT_PWM 40 |
Definition at line 67 of file windfarm_pm72.c.
#define VERSION "1.0" |
Definition at line 22 of file windfarm_pm72.c.
MODULE_ALIAS | ( | "platform:windfarm" | ) |
MODULE_AUTHOR | ( | "Benjamin Herrenschmidt <[email protected]>" | ) |
module_exit | ( | wf_pm72_exit | ) |
module_init | ( | wf_pm72_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |