diff options
author | Vivek Gautam <gautam.vivek@samsung.com> | 2013-09-14 14:02:44 +0530 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-10-20 23:42:38 +0200 |
commit | e3d7440c2212497b33f0b12f5112f1a99e3f201c (patch) | |
tree | 58cafac899ef7811a37958bdfa2597db6b8cadc8 /drivers/usb/host/ehci.h | |
parent | 183acb700378a8cfc5d50a01a65de93fb2c24586 (diff) | |
download | u-boot-imx-e3d7440c2212497b33f0b12f5112f1a99e3f201c.zip u-boot-imx-e3d7440c2212497b33f0b12f5112f1a99e3f201c.tar.gz u-boot-imx-e3d7440c2212497b33f0b12f5112f1a99e3f201c.tar.bz2 |
usb: Move 'bmRequestType' USB device request macros from EHCI header
Macros defining bmRequestType field of USB device request,
given in table 9.2 USB 2.0 spec, are rather generic macros
which can be further used by other Host controller stacks.
So moving them to usb_defs header.
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Cc: Julius Werner <jwerner@chromium.org>
Cc: Simon Glass <sjg@chromium.org>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Dan Murphy <dmurphy@ti.com>
Cc: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r-- | drivers/usb/host/ehci.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index bd52afe..3e1c312 100644 --- a/drivers/usb/host/ehci.h +++ b/drivers/usb/host/ehci.h @@ -28,22 +28,6 @@ #define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 2 #endif -/* (shifted) direction/type/recipient from the USB 2.0 spec, table 9.2 */ -#define DeviceRequest \ - ((USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_DEVICE) << 8) - -#define DeviceOutRequest \ - ((USB_DIR_OUT | USB_TYPE_STANDARD | USB_RECIP_DEVICE) << 8) - -#define InterfaceRequest \ - ((USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_INTERFACE) << 8) - -#define EndpointRequest \ - ((USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_INTERFACE) << 8) - -#define EndpointOutRequest \ - ((USB_DIR_OUT | USB_TYPE_STANDARD | USB_RECIP_INTERFACE) << 8) - /* * Register Space. */ |