Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cbe_thermal.c File Reference
#include <linux/module.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/cpu.h>
#include <asm/spu.h>
#include <asm/io.h>
#include <asm/prom.h>
#include <asm/cell-regs.h>
#include "spu_priv1_mmio.h"

Go to the source code of this file.

Macros

#define TEMP_MIN   65
 
#define TEMP_MAX   125
 
#define DEVICE_PREFIX_ATTR(_prefix, _name, _mode)
 

Functions

 module_init (thermal_init)
 
 module_exit (thermal_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Christian Krafft <[email protected]>")
 

Macro Definition Documentation

#define DEVICE_PREFIX_ATTR (   _prefix,
  _name,
  _mode 
)
Value:
struct device_attribute attr_ ## _prefix ## _ ## _name = { \
.attr = { .name = __stringify(_name), .mode = _mode }, \
.show = _prefix ## _show_ ## _name, \
.store = _prefix ## _store_ ## _name, \
};

Definition at line 62 of file cbe_thermal.c.

#define TEMP_MAX   125

Definition at line 60 of file cbe_thermal.c.

#define TEMP_MIN   65

Definition at line 59 of file cbe_thermal.c.

Function Documentation

MODULE_AUTHOR ( "Christian Krafft <[email protected]>"  )
module_exit ( thermal_exit  )
module_init ( thermal_init  )
MODULE_LICENSE ( "GPL"  )