[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH V3 0/3] usb-gotemp: USB thermometer emulation

From: Scott Tsai
Subject: [Qemu-devel] [PATCH V3 0/3] usb-gotemp: USB thermometer emulation
Date: Wed, 11 Nov 2009 08:24:00 +0800

I reworked the second patch in this series to add generic monitor commands
to change the temperature reported from thermometers. 
Thermometer devices can now include "sensor.h" and call 
to register themselves.

I went with separate 'therm_set DEVICE_INDEX' and 'therm_temp TEMPERATURE' 
since a 'therm_temp' command that only requires one argument seems easier
to use on the monitor command line and doesn't require searching the
list of thermometers repeatedly.

To cater to my original "driver tutorial" use case,
by default the temperature would still automatically increment unless
the 'controlled_by_monitor' qdev property is set.
Even when auto incrementing the temperature is now always bounded between 25C ~ 
(previously the temperature would increment until int16_t overflows)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]