cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
0a122b
From d76e3e1722f8895eaa4f34596169decde859fa86 Mon Sep 17 00:00:00 2001
0a122b
From: Gerd Hoffmann <kraxel@redhat.com>
0a122b
Date: Mon, 3 Feb 2014 16:30:28 +0100
0a122b
Subject: [PATCH 04/28] usb: add vendor request defines
0a122b
0a122b
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
0a122b
Message-id: <1391445032-5540-2-git-send-email-kraxel@redhat.com>
0a122b
Patchwork-id: 57078
0a122b
O-Subject: [RHEL-7 qemu-kvm PATCH 1/5] usb: add vendor request defines
0a122b
Bugzilla: 1039530
0a122b
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
0a122b
RH-Acked-by: Juan Quintela <quintela@redhat.com>
0a122b
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
0a122b
0a122b
Add defines for vendor specific usb control requests.
0a122b
Group defines by Device / Interface / Endpoint while
0a122b
being at it.
0a122b
0a122b
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
0a122b
(cherry picked from commit 2b81ba53887e6f3b5a79ecd2f446f849ed89561f)
0a122b
---
0a122b
 include/hw/usb.h | 17 +++++++++++++----
0a122b
 1 file changed, 13 insertions(+), 4 deletions(-)
0a122b
0a122b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
0a122b
---
0a122b
 include/hw/usb.h |   17 +++++++++++++----
0a122b
 1 files changed, 13 insertions(+), 4 deletions(-)
0a122b
0a122b
diff --git a/include/hw/usb.h b/include/hw/usb.h
0a122b
index 695d853..a910456 100644
0a122b
--- a/include/hw/usb.h
0a122b
+++ b/include/hw/usb.h
0a122b
@@ -102,17 +102,26 @@
0a122b
 
0a122b
 #define DeviceRequest ((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_DEVICE)<<8)
0a122b
 #define DeviceOutRequest ((USB_DIR_OUT|USB_TYPE_STANDARD|USB_RECIP_DEVICE)<<8)
0a122b
-#define InterfaceRequest \
0a122b
+#define VendorDeviceRequest ((USB_DIR_IN|USB_TYPE_VENDOR|USB_RECIP_DEVICE)<<8)
0a122b
+#define VendorDeviceOutRequest \
0a122b
+        ((USB_DIR_OUT|USB_TYPE_VENDOR|USB_RECIP_DEVICE)<<8)
0a122b
+
0a122b
+#define InterfaceRequest                                        \
0a122b
         ((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_INTERFACE)<<8)
0a122b
 #define InterfaceOutRequest \
0a122b
         ((USB_DIR_OUT|USB_TYPE_STANDARD|USB_RECIP_INTERFACE)<<8)
0a122b
-#define EndpointRequest ((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_ENDPOINT)<<8)
0a122b
-#define EndpointOutRequest \
0a122b
-        ((USB_DIR_OUT|USB_TYPE_STANDARD|USB_RECIP_ENDPOINT)<<8)
0a122b
 #define ClassInterfaceRequest \
0a122b
         ((USB_DIR_IN|USB_TYPE_CLASS|USB_RECIP_INTERFACE)<<8)
0a122b
 #define ClassInterfaceOutRequest \
0a122b
         ((USB_DIR_OUT|USB_TYPE_CLASS|USB_RECIP_INTERFACE)<<8)
0a122b
+#define VendorInterfaceRequest \
0a122b
+        ((USB_DIR_IN|USB_TYPE_VENDOR|USB_RECIP_INTERFACE)<<8)
0a122b
+#define VendorInterfaceOutRequest \
0a122b
+        ((USB_DIR_OUT|USB_TYPE_VENDOR|USB_RECIP_INTERFACE)<<8)
0a122b
+
0a122b
+#define EndpointRequest ((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_ENDPOINT)<<8)
0a122b
+#define EndpointOutRequest \
0a122b
+        ((USB_DIR_OUT|USB_TYPE_STANDARD|USB_RECIP_ENDPOINT)<<8)
0a122b
 
0a122b
 #define USB_REQ_GET_STATUS		0x00
0a122b
 #define USB_REQ_CLEAR_FEATURE		0x01
0a122b
-- 
0a122b
1.7.1
0a122b