Alon Levy 367071447e usb-ccid: add CCID bus
A CCID device is a smart card reader. It is a USB device, defined at [1].
This patch introduces the usb-ccid device that is a ccid bus. Next patches will
introduce two card types to use it, a passthru card and an emulated card.

 [1] http://www.usb.org/developers/devclass_docs/DWG_Smart-Card_CCID_Rev110.

Signed-off-by: Alon Levy <alevy@redhat.com>

---

changes from v20->v21: (Jes Sorenson review)
 * cosmetic changes - fix multi line comments.
 * reorder fields in USBCCIDState
 * add reference to COPYING
 * add --enable-smartcard and --disable-smartcard here (moved
 from last patch)

changes from v19->v20:
 * checkpatch.pl

changes from v18->v19:
 * merged: ccid.h: add copyright, fix define and remove non C89 comments
 * add qdev.desc

changes from v15->v16:

Behavioral changes:
 * fix abort on client answer after card remove
 * enable migration
 * remove side affect code from asserts
 * return consistent self-powered state
 * mask out reserved bits in ccid_set_parameters
 * add missing abRFU in SetParameters (no affect on linux guest)

whitefixes / comments / consts defines:
 * remove stale comment
 * remove ccid_print_pending_answers if no DEBUG_CCID
 * replace printf's with DPRINTF, remove DEBUG_CCID, add verbosity defines
 * use error_report
 * update copyright (most of the code is not original)
 * reword known bug comment
 * add missing closing quote in comment
 * add missing whitespace on one line
 * s/CCID_SetParameter/CCID_SetParameters/
 * add comments
 * use define for max packet size

Comment for "return consistent self-powered state":

the Configuration Descriptor bmAttributes claims we are self powered,
but we were returning not self powered to USB_REQ_GET_STATUS control message.

In practice, this message is not sent by a linux 2.6.35.10-74.fc14.x86_64
guest (not tested on other guests), unless you issue lsusb -v as root (for
example).
2011-04-01 19:07:48 -05:00
2011-03-16 09:56:18 +01:00
2011-04-01 19:07:48 -05:00
2011-03-07 15:34:17 +00:00
2011-03-07 13:42:37 +01:00
2011-02-24 11:25:38 -06:00
2011-03-07 13:42:36 +01:00
2011-03-07 13:42:36 +01:00
2011-02-07 12:51:19 +01:00
2011-02-07 12:51:19 +01:00
2011-01-10 10:55:10 +01:00
2011-02-20 18:45:09 +01:00
2011-01-20 20:58:56 +00:00
2011-02-25 20:16:26 +00:00
2011-04-01 19:07:48 -05:00
2011-03-22 08:39:12 -05:00
2011-03-15 01:19:06 -03:00
2011-03-15 01:19:06 -03:00
2011-03-16 17:11:07 -03:00
2011-03-07 13:42:36 +01:00
2011-02-10 18:17:43 +01:00
2011-03-16 17:11:07 -03:00
2011-03-07 13:42:36 +01:00
2011-01-20 20:54:21 +00:00
2011-03-06 21:01:32 +01:00
2011-04-01 19:07:48 -05:00
2011-03-16 17:11:07 -03:00
2011-02-09 10:33:54 +02:00
2011-03-07 13:42:36 +01:00
2011-01-24 15:41:40 +01:00
2011-01-31 10:03:00 +01:00
2011-01-09 20:59:53 +00:00
2011-03-13 14:44:22 +00:00
2011-03-21 09:23:23 +01:00
2011-03-21 09:23:23 +01:00
2011-03-22 08:39:12 -05:00
2011-01-20 20:54:21 +00:00
2011-03-21 17:41:52 -05:00
2011-01-24 15:41:40 +01:00
2011-01-09 14:43:33 +00:00
2011-02-02 08:39:28 +01:00
2011-03-29 08:14:01 -05:00

Read the documentation in qemu-doc.html.

Fabrice Bellard.
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%