scsi: add request parsing helpers to common code.
commit2ec749cb8222c37400ef95b751bfee945dae0dbf
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 26 Nov 2009 14:33:55 +0000 (26 15:33 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 15:41:36 +0000 (3 09:41 -0600)
tree2f73e0749a96b06e8ffa2e4eaa68bf6f8e42de68
parent913766563fbd6faa17635fd802e83383e0224289
scsi: add request parsing helpers to common code.

Add helper functions for scsi request parsing to common code.  Getting
command length, transfer size, and linear block address is handled.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/scsi-bus.c
hw/scsi-generic.c
hw/scsi.h