qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Scott Tsai <scottt.tw@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH V3 0/3] usb-gotemp: USB thermometer emulation
Date: Wed, 11 Nov 2009 08:24:00 +0800	[thread overview]
Message-ID: <1257899043-28415-1-git-send-email-scottt.tw@gmail.com> (raw)

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)

             reply	other threads:[~2009-11-11  0:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-11  0:24 Scott Tsai [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1257899043-28415-1-git-send-email-scottt.tw@gmail.com \
    --to=scottt.tw@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).