Statistics
| Branch: | Revision:

root / hw / tmp105.c @ 82ca8912

History | View | Annotate | Download (6.7 kB)

# Date Author Comment
83c9f4ca 03/01/2013 04:01 pm Paolo Bonzini

hw: include hw header files with full paths

Done with this script:

cd hw
for i in `find . -name '*.h' | sed 's/^..//'`; do
echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,'
done | sed -i -f - `find . -type f`

This is so that paths remain valid as files are moved....

cb5ef3fa 01/16/2013 08:14 pm Andreas Färber

tmp105: Fix I2C protocol bug

An early length postincrement in the TMP105's I2C TX path led to
transfers of more than one byte to place the second byte in the third
byte's place within the buffer and the third byte to get discarded.

Fix this by explictly incrementing the length after the checks but...

2aad80ee 01/16/2013 08:14 pm Andreas Färber

tmp105: QOM'ify

Introduce TYPE_ constant and cast macro.
Move the state struct to the new header to allow for future embedding.

Signed-off-by: Andreas Färber <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Anthony Liguori <>

eb60d1c5 01/16/2013 08:14 pm Andreas Färber

tmp105: Add temperature QOM property

This obsoletes tmp105_set() and allows for better error handling.

Signed-off-by: Andreas Färber <>
Signed-off-by: Anthony Liguori <>

8c43a6f0 01/10/2013 11:11 pm Andreas Färber

Make all static TypeInfos const

Since 39bffca2030950ef6efe57c2fac8327a45ae1015 (qdev: register all
types natively through QEMU Object Model), TypeInfo as used in
the common, non-iterative pattern is no longer amended with information
and should therefore be const....

2915efbf 12/23/2012 10:37 pm Alex Horn

tmp105: Create API for TMP105 temperature sensor.

  • Define enum for TMP105 registers
  • Move tmp105_set() from I2C to TMP105 header
  • Document units and range of temperature as preconditions

Reviewed-by: Andreas Färber <>
Signed-off-by: Alex Horn <>...

83f7d43a 02/15/2012 05:39 pm Andreas Färber

qom: Unify type registration

Replace device_init() with generalized type_init().

While at it, unify naming convention: type_init([$prefix_]register_types)
Also, type_init() is a function, so add preceding blank line where
necessary and don't put a semicolon after the closing brace....

39bffca2 02/03/2012 06:41 pm Anthony Liguori

qdev: register all types natively through QEMU Object Model

This was done in a mostly automated fashion. I did it in three steps and then
rebased it into a single step which avoids repeatedly touching every file in
the tree.

The first step was a sed-based addition of the parent type to the subclass...

9e07bdf8 01/27/2012 06:50 pm Anthony Liguori

i2c: rename i2c_slave -> I2CSlave

Signed-off-by: Anthony Liguori <>

b5ea9327 01/27/2012 06:50 pm Anthony Liguori

i2c: smbus: convert to QEMU Object Model

This converts two types because smbus is implemented as a subclass of i2c. It's
extremely difficult to convert these two independently.

Signed-off-by: Anthony Liguori <>

e5d3b98d 05/15/2010 03:31 pm Andrzej Zaborowski

tmp105: update the register in post_load where it needs updating.

This was the only user of .post_save as noticed by Jan Kiszka and
seems to have been added there wrongly during conversion to
VMStateDescription.

Signed-off-by: Andrzej Zaborowski <>

be73cfe2 12/03/2009 06:05 pm Juan Quintela

savevm: Port to qdev.vmsd all devices that have qdev

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

6f3a7798 10/05/2009 05:32 pm Juan Quintela

tmp105: change len and alorm to uint8_t

They were using only with very small integers, and they are sent/read as
bytes. They can't become negative as far as I can see

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

371a4468 10/05/2009 05:32 pm Juan Quintela

vmstate: port tmp105 device

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

81a322d4 08/28/2009 04:43 am Gerd Hoffmann

qdev: add return value to init() callbacks.

Sorry folks, but it has to be. One more of these invasive qdev patches.

We have a serious design bug in the qdev interface: device init
callbacks can't signal failure because the init() callback has no
return value. This patch fixes it....

8167ee88 07/16/2009 11:47 pm Blue Swirl

Update to a hopefully more future proof FSF address

Signed-off-by: Blue Swirl <>

074f2fff 06/11/2009 03:47 pm Gerd Hoffmann

qdev: move name+size into DeviceInfo (v2)

Rationale: move device information from code to data structures.

v2: Adapt the drivers missed in the first version.

Signed-off-by: Gerd Hoffmann <>

697454eb 05/15/2009 12:35 am Paul Brook

TMP105 qdev conversion

Signed-off-by: Paul Brook <>

bc24a225 05/10/2009 03:44 am Paul Brook

Follow coding conventions

Remove explicit struct qualifiers and rename structure types.

Signed-off-by: Paul Brook <>

fad6cb1a 01/05/2009 12:05 am aurel32

Update FSF address in GPL/LGPL boilerplate

The attached patch updates the FSF address in the GPL/LGPL boilerplate
in most GPL/LGPLed files, and also in COPYING.LIB.

Signed-off-by: Stuart Brady <>
Signed-off-by: Aurelien Jarno <>...

b6c4f71f 10/02/2008 10:14 pm blueswir1

Resurrect the safe part of r5274

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5401 c046a42c-6fe2-441c-8c8c-71466251a162

2ca83a8d 09/25/2008 11:24 pm blueswir1

Revert r5274 which breaks savevm/loadvm

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5321 c046a42c-6fe2-441c-8c8c-71466251a162

67d8cec3 09/20/2008 11:04 am blueswir1

Add signed versions of save/load functions

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5274 c046a42c-6fe2-441c-8c8c-71466251a162

18be5187 07/02/2008 12:31 am pbrook

Remove duplicate device index calculations.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4818 c046a42c-6fe2-441c-8c8c-71466251a162

a050e24d 04/22/2008 05:56 am balrog

Hush pointer target signedness warnings from gcc 4.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4231 c046a42c-6fe2-441c-8c8c-71466251a162

7e7c5e4c 04/15/2008 12:57 am balrog

Nokia N800 machine support (ARM).

Also add various peripherals: two miscellaneous Nokia CBUS chips,
EPSON S1D13745 LCD/TV remote-framebuffer controller,
TWL92230 - standard OMAP2 power management companion chip on i2c.
Generic OneNAND flash memory,
TMP105 temperature sensor on i2c....