Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
ltc2978.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include "pmbus.h"

Go to the source code of this file.

Data Structures

struct  ltc2978_data
 

Macros

#define LTC2978_MFR_VOUT_PEAK   0xdd
 
#define LTC2978_MFR_VIN_PEAK   0xde
 
#define LTC2978_MFR_TEMPERATURE_PEAK   0xdf
 
#define LTC2978_MFR_SPECIAL_ID   0xe7
 
#define LTC2978_MFR_VOUT_MIN   0xfb
 
#define LTC2978_MFR_VIN_MIN   0xfc
 
#define LTC2978_MFR_TEMPERATURE_MIN   0xfd
 
#define LTC3880_MFR_IOUT_PEAK   0xd7
 
#define LTC3880_MFR_CLEAR_PEAKS   0xe3
 
#define LTC3880_MFR_TEMPERATURE2_PEAK   0xf4
 
#define LTC2978_ID_REV1   0x0121
 
#define LTC2978_ID_REV2   0x0122
 
#define LTC3880_ID   0x4000
 
#define LTC3880_ID_MASK   0xff00
 
#define to_ltc2978_data(x)   container_of(x, struct ltc2978_data, info)
 

Enumerations

enum  chips {
  ad7416, ad7417, ad7418, adm1021,
  adm1023, max1617, max1617a, thmc10,
  lm84, gl523sm, mc1066, adm1025,
  ne1619, adm1030, adm1031, adm9240,
  ds1780, lm81, adt7473, adt7475,
  adt7476, adt7490, amc6821, dme1737,
  sch5027, sch311x, sch5127, f71808e,
  f71808a, f71858fg, f71862fg, f71869,
  f71869a, f71882fg, f71889fg, f71889ed,
  f71889a, f8000, f81865f, f75373,
  f75375, f75387, fscpos, fscher,
  fscscy, fschrc, fschmd, fschds,
  fscsyl, gl518sm_r00, gl518sm_r80, it87,
  it8712, it8716, it8718, it8720,
  it8721, it8728, it8782, it8783,
  lm63, lm64, lm96163, lm78,
  lm79, lm83, lm82, any_chip,
  lm85b, lm85c, adm1027, adt7463,
  adt7468, emc6d100, emc6d102, emc6d103,
  emc6d103s, lm87, adm1024, lm90,
  adm1032, lm99, lm86, max6657,
  max6659, adt7461, max6680, max6646,
  w83l771, max6696, sa56004, g781,
  max1110, max1111, max1112, max1113,
  max16065, max16066, max16067, max16068,
  max16070, max16071, max1668, max1805,
  max1989, mcp3021, mcp3221, adm1075,
  adm1275, adm1276, lm25066, lm5064,
  lm5066, ltc2978, ltc3880, max34440,
  max34441, max34446, ucd9000, ucd90120,
  ucd90124, ucd9090, ucd90910, ucd9200,
  ucd9220, ucd9222, ucd9224, ucd9240,
  ucd9244, ucd9246, ucd9248, zl2004,
  zl2005, zl2006, zl2008, zl2105,
  zl2106, zl6100, zl6105, zl9101,
  zl9117, smm465, smm665, smm665c,
  smm764, smm766, smsc47m1, smsc47m2,
  thmc50, adm1022, tmp401, tmp411,
  tmp421, tmp422, tmp423, w83627hf,
  w83627thf, w83697hf, w83637hf, w83687thf,
  w83781d, w83782d, w83783s, as99127f,
  DC21040 = 0, DC21041 = 1, DC21140 = 2, DC21142 = 3,
  DC21143 = 3, LC82C168, MX98713, MX98715,
  MX98725, AX88140, PNIC2, COMET,
  COMPEX9881, I21145, DM910X, CONEXANT,
  TPS62360, TPS62361, TPS62362, TPS62363,
  sc18is602, sc18is602b, sc18is603, f71808fg,
  f71858fg, f71862fg, f71869, f71882fg,
  f71889fg
}
 

Functions

 MODULE_DEVICE_TABLE (i2c, ltc2978_id)
 
 module_i2c_driver (ltc2978_driver)
 
 MODULE_AUTHOR ("Guenter Roeck")
 
 MODULE_DESCRIPTION ("PMBus driver for LTC2978 and LTC3880")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define LTC2978_ID_REV1   0x0121

Definition at line 47 of file ltc2978.c.

#define LTC2978_ID_REV2   0x0122

Definition at line 48 of file ltc2978.c.

#define LTC2978_MFR_SPECIAL_ID   0xe7

Definition at line 35 of file ltc2978.c.

#define LTC2978_MFR_TEMPERATURE_MIN   0xfd

Definition at line 40 of file ltc2978.c.

#define LTC2978_MFR_TEMPERATURE_PEAK   0xdf

Definition at line 34 of file ltc2978.c.

#define LTC2978_MFR_VIN_MIN   0xfc

Definition at line 39 of file ltc2978.c.

#define LTC2978_MFR_VIN_PEAK   0xde

Definition at line 33 of file ltc2978.c.

#define LTC2978_MFR_VOUT_MIN   0xfb

Definition at line 38 of file ltc2978.c.

#define LTC2978_MFR_VOUT_PEAK   0xdd

Definition at line 32 of file ltc2978.c.

#define LTC3880_ID   0x4000

Definition at line 49 of file ltc2978.c.

#define LTC3880_ID_MASK   0xff00

Definition at line 50 of file ltc2978.c.

#define LTC3880_MFR_CLEAR_PEAKS   0xe3

Definition at line 44 of file ltc2978.c.

#define LTC3880_MFR_IOUT_PEAK   0xd7

Definition at line 43 of file ltc2978.c.

#define LTC3880_MFR_TEMPERATURE2_PEAK   0xf4

Definition at line 45 of file ltc2978.c.

#define to_ltc2978_data (   x)    container_of(x, struct ltc2978_data, info)

Definition at line 69 of file ltc2978.c.

Enumeration Type Documentation

enum chips
Enumerator:
ad7416 
ad7417 
ad7418 
adm1021 
adm1023 
max1617 
max1617a 
thmc10 
lm84 
gl523sm 
mc1066 
adm1025 
ne1619 
adm1030 
adm1031 
adm9240 
ds1780 
lm81 
adt7473 
adt7475 
adt7476 
adt7490 
amc6821 
dme1737 
sch5027 
sch311x 
sch5127 
f71808e 
f71808a 
f71858fg 
f71862fg 
f71869 
f71869a 
f71882fg 
f71889fg 
f71889ed 
f71889a 
f8000 
f81865f 
f75373 
f75375 
f75387 
fscpos 
fscher 
fscscy 
fschrc 
fschmd 
fschds 
fscsyl 
gl518sm_r00 
gl518sm_r80 
it87 
it8712 
it8716 
it8718 
it8720 
it8721 
it8728 
it8782 
it8783 
lm63 
lm64 
lm96163 
lm78 
lm79 
lm83 
lm82 
any_chip 
lm85b 
lm85c 
adm1027 
adt7463 
adt7468 
emc6d100 
emc6d102 
emc6d103 
emc6d103s 
lm87 
adm1024 
lm90 
adm1032 
lm99 
lm86 
max6657 
max6659 
adt7461 
max6680 
max6646 
w83l771 
max6696 
sa56004 
g781 
max1110 
max1111 
max1112 
max1113 
max16065 
max16066 
max16067 
max16068 
max16070 
max16071 
max1668 
max1805 
max1989 
mcp3021 
mcp3221 
adm1075 
adm1275 
adm1276 
lm25066 
lm5064 
lm5066 
ltc2978 
ltc3880 
max34440 
max34441 
max34446 
ucd9000 
ucd90120 
ucd90124 
ucd9090 
ucd90910 
ucd9200 
ucd9220 
ucd9222 
ucd9224 
ucd9240 
ucd9244 
ucd9246 
ucd9248 
zl2004 
zl2005 
zl2006 
zl2008 
zl2105 
zl2106 
zl6100 
zl6105 
zl9101 
zl9117 
smm465 
smm665 
smm665c 
smm764 
smm766 
smsc47m1 
smsc47m2 
thmc50 
adm1022 
tmp401 
tmp411 
tmp421 
tmp422 
tmp423 
w83627hf 
w83627thf 
w83697hf 
w83637hf 
w83687thf 
w83781d 
w83782d 
w83783s 
as99127f 
DC21040 
DC21041 
DC21140 
DC21142 
DC21143 
LC82C168 
MX98713 
MX98715 
MX98725 
AX88140 
PNIC2 
COMET 
COMPEX9881 
I21145 
DM910X 
CONEXANT 
TPS62360 
TPS62361 
TPS62362 
TPS62363 
sc18is602 
sc18is602b 
sc18is603 
f71808fg 
f71858fg 
f71862fg 
f71869 
f71882fg 
f71889fg 

Definition at line 29 of file ltc2978.c.

Function Documentation

MODULE_AUTHOR ( "Guenter Roeck"  )
MODULE_DESCRIPTION ( "PMBus driver for LTC2978 and LTC3880"  )
MODULE_DEVICE_TABLE ( i2c  ,
ltc2978_id   
)
module_i2c_driver ( ltc2978_driver  )
MODULE_LICENSE ( "GPL"  )