Received: from eggs.gnu.org ([2001:4830:134:3::10]:41011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWhFT-0006MS-MJ for qemu-devel@nongnu.org; Tue, 01 Sep 2015 04:49:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWhFR-0007gx-3U for qemu-devel@nongnu.org; Tue, 01 Sep 2015 04:48:59 -0400 Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:35954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWhFQ-0007gl-T2 for qemu-devel@nongnu.org; Tue, 01 Sep 2015 04:48:57 -0400 Received: by lbvd4 with SMTP id d4so38487822lbv.3 for ; Tue, 01 Sep 2015 01:48:56 -0700 (PDT) From: Alexander Bezzubikov Date: Tue, 1 Sep 2015 11:48:29 +0300 Message-Id: <1441097312-18375-3-git-send-email-abezzubikov@ispras.ru> In-Reply-To: <1441097312-18375-1-git-send-email-abezzubikov@ispras.ru> References: <1441097312-18375-1-git-send-email-abezzubikov@ispras.ru> Subject: [Qemu-devel] [PATCH v5 2/5] scsi: SCSIDiskReq declaration moved to header List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: jsnow@redhat.com, hare@suse.de, abezzubikov@ispras.ru Signed-off-by: Alexander Bezzubikov --- hw/scsi/scsi-disk.c | 12 ------------ include/hw/scsi/scsi.h | 13 +++++++++++++ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c index bada9a7..68ff09a 100644 --- a/hw/scsi/scsi-disk.c +++ b/hw/scsi/scsi-disk.c @@ -53,18 +53,6 @@ do { printf("scsi-disk: " fmt , ## __VA_ARGS__); } while (0) typedef struct SCSIDiskState SCSIDiskState; -typedef struct SCSIDiskReq { - SCSIRequest req; - /* Both sector and sector_count are in terms of qemu 512 byte blocks. */ - uint64_t sector; - uint32_t sector_count; - uint32_t buflen; - bool started; - struct iovec iov; - QEMUIOVector qiov; - BlockAcctCookie acct; -} SCSIDiskReq; - #define SCSI_DISK_F_REMOVABLE 0 #define SCSI_DISK_F_DPOFUA 1 #define SCSI_DISK_F_NO_REMOVABLE_DEVOPS 2 diff --git a/include/hw/scsi/scsi.h b/include/hw/scsi/scsi.h index cdaf0f8..e25fd70 100644 --- a/include/hw/scsi/scsi.h +++ b/include/hw/scsi/scsi.h @@ -6,6 +6,7 @@ #include "hw/block/block.h" #include "sysemu/sysemu.h" #include "qemu/notify.h" +#include "block/accounting.h" #define MAX_SCSI_DEVS 255 @@ -120,6 +121,18 @@ extern const VMStateDescription vmstate_scsi_device; .offset = vmstate_offset_value(_state, _field, SCSIDevice), \ } +typedef struct SCSIDiskReq { + SCSIRequest req; + /* Both sector and sector_count are in terms of qemu 512 byte blocks. */ + uint64_t sector; + uint32_t sector_count; + uint32_t buflen; + bool started; + struct iovec iov; + QEMUIOVector qiov; + BlockAcctCookie acct; +} SCSIDiskReq; + /* cdrom.c */ int cdrom_read_toc(int nb_sectors, uint8_t *buf, int msf, int start_track); int cdrom_read_toc_raw(int nb_sectors, uint8_t *buf, int msf, int session_num); -- 2.1.4