qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH V3 0/3] usb-gotemp: USB thermometer emulation
@ 2009-11-11  0:24 Scott Tsai
  2009-11-11  0:24 ` [Qemu-devel] [PATCH V3 1/3] usb: move HID request defines to hw/usb.h Scott Tsai
  2009-11-11  4:25 ` [Qemu-devel] [PATCH V3 0/3] usb-gotemp: USB thermometer emulation Paul Brook
  0 siblings, 2 replies; 5+ messages in thread
From: Scott Tsai @ 2009-11-11  0:24 UTC (permalink / raw)
  To: qemu-devel

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 'qemu_add_therm_temp_handler'
to register themselves.

I went with separate 'therm_set DEVICE_INDEX' and 'therm_temp TEMPERATURE' commands
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 ~ 40C.
(previously the temperature would increment until int16_t overflows)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-11  4:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-11  0:24 [Qemu-devel] [PATCH V3 0/3] usb-gotemp: USB thermometer emulation Scott Tsai
2009-11-11  0:24 ` [Qemu-devel] [PATCH V3 1/3] usb: move HID request defines to hw/usb.h Scott Tsai
2009-11-11  0:24   ` [Qemu-devel] [PATCH V3 2/3] usb-gotemp: new module emulating a USB thermometer Scott Tsai
2009-11-11  0:24     ` [Qemu-devel] [PATCH V3 3/3] Documentation: -usbdevice thermometer option Scott Tsai
2009-11-11  4:25 ` [Qemu-devel] [PATCH V3 0/3] usb-gotemp: USB thermometer emulation Paul Brook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).