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