qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: seabios@seabios.org, qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PATCH v2 1/3] move usb mass storage defines to usb.h
Date: Fri, 20 Jul 2012 10:59:23 +0200	[thread overview]
Message-ID: <1342774765-20640-2-git-send-email-kraxel@redhat.com> (raw)
In-Reply-To: <1342774765-20640-1-git-send-email-kraxel@redhat.com>

With the arrival of usb attached scsi support they
will be needed outside usb-msd.c too.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 src/usb-msc.h |   11 -----------
 src/usb.h     |   10 ++++++++++
 2 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/src/usb-msc.h b/src/usb-msc.h
index 31c81b9..3746b77 100644
--- a/src/usb-msc.h
+++ b/src/usb-msc.h
@@ -7,15 +7,4 @@ int usb_cmd_data(struct disk_op_s *op, void *cdbcmd, u16 blocksize);
 struct usbdevice_s;
 int usb_msc_init(struct usbdevice_s *usbdev);
 
-
-/****************************************************************
- * MSC flags
- ****************************************************************/
-
-#define US_SC_ATAPI_8020   0x02
-#define US_SC_ATAPI_8070   0x05
-#define US_SC_SCSI         0x06
-
-#define US_PR_BULK         0x50
-
 #endif // ush-msc.h
diff --git a/src/usb.h b/src/usb.h
index 2c961e6..4747224 100644
--- a/src/usb.h
+++ b/src/usb.h
@@ -206,6 +206,16 @@ struct usb_endpoint_descriptor {
 
 
 /****************************************************************
+ * usb mass storage flags
+ ****************************************************************/
+
+#define US_SC_ATAPI_8020   0x02
+#define US_SC_ATAPI_8070   0x05
+#define US_SC_SCSI         0x06
+
+#define US_PR_BULK         0x50
+
+/****************************************************************
  * function defs
  ****************************************************************/
 
-- 
1.7.1

  reply	other threads:[~2012-07-20  9:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-20  8:59 [Qemu-devel] [PATCH v2 0/3] scsi boot Gerd Hoffmann
2012-07-20  8:59 ` Gerd Hoffmann [this message]
2012-07-20  8:59 ` [Qemu-devel] [PATCH v2 2/3] usb attached scsi boot support Gerd Hoffmann
2012-07-20  8:59 ` [Qemu-devel] [PATCH v2 3/3] lsi53c895a " Gerd Hoffmann
2012-07-21 16:09 ` [Qemu-devel] [SeaBIOS] [PATCH v2 0/3] scsi boot Kevin O'Connor

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=1342774765-20640-2-git-send-email-kraxel@redhat.com \
    --to=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=seabios@seabios.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).