Skip to contentSkip to conversation

usb-gotemp: new Vernier Go!Temp thermometer emulation

PATCH Superseded Scott Tsai 1 participant 1 message Nov 3, 2009 Kbuild

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Scott Tsai

author
#0 lore raw

PATCH 2/3 usb-gotemp: new Vernier Go!Temp thermometer emulation

Emulate the Vernier Go!Temp USB thermometer
(see: http://www.vernier.com/go/gotemp.html)
used in Greg Kroah-Hartman's "Write a Real, Working, Linux Driver" talk.

The emulation is complete enough for gregkh's sample driver and using the vendor supplied SDK through the in-kernel 'ldusb' module under Linux. No testing have yet been done with the vendor's fancier Windows software.

---
 Makefile        |    2 +-
 hw/usb-gotemp.c |  709 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 vl.c            |    3 +
 3 files changed, 713 insertions(+), 1 deletions(-)
 create mode 100644 hw/usb-gotemp.c
Makefile +1 -1
index 41107a5..10395d8 100644
@@ -124,7 +124,7 @@ obj-y += i2c.o smbus.o smbus_eeprom.o
 obj-y += eeprom93xx.o
 obj-y += scsi-disk.o cdrom.o
 obj-y += scsi-generic.o scsi-bus.o
-obj-y += usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o
+obj-y += usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o usb-gotemp.o
 obj-y += usb-serial.o usb-net.o usb-bus.o
 obj-$(CONFIG_SSI) += ssi.o
 obj-$(CONFIG_SSI_SD) += ssi-sd.o
hw/usb-gotemp.c new file +709 -0

709 lines not on this page · raw message

vl.c +3 -0
index 7fa7bdc..6dc43b8 100644
@@ -2543,6 +2543,9 @@ static struct {
     },{
         .name = "wacom-tablet",
         .qdev = "QEMU PenPartner Tablet",
+    },{
+        .name = "thermometer",
+        .qdev = "QEMU USB Thermometer",
     }
 };
 
Signature · 1 line
1.6.5.1