Commit ff9a3e39 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Greg Kroah-Hartman

staging: octeon-usb: cvmx_usb_isochronous_flags_t -> enum cvmx_usb_isochronous_flags

Replace cvmx_usb_isochronous_flags_t with enum cvmx_usb_isochronous_flags.
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3f937c51
...@@ -2291,7 +2291,7 @@ int cvmx_usb_submit_control(cvmx_usb_state_t *state, int pipe_handle, ...@@ -2291,7 +2291,7 @@ int cvmx_usb_submit_control(cvmx_usb_state_t *state, int pipe_handle,
* Number of frames into the future to schedule * Number of frames into the future to schedule
* this transaction. * this transaction.
* @flags: Flags to control the transfer. See * @flags: Flags to control the transfer. See
* cvmx_usb_isochronous_flags_t for the flag * enum cvmx_usb_isochronous_flags for the flag
* definitions. * definitions.
* @number_packets: * @number_packets:
* Number of sequential packets to transfer. * Number of sequential packets to transfer.
......
...@@ -488,13 +488,19 @@ extern int cvmx_usb_submit_control(cvmx_usb_state_t *state, int pipe_handle, ...@@ -488,13 +488,19 @@ extern int cvmx_usb_submit_control(cvmx_usb_state_t *state, int pipe_handle,
void *user_data); void *user_data);
/** /**
* Flags to pass the cvmx_usb_submit_isochronous() function. * enum cvmx_usb_isochronous_flags - flags to pass the
* cvmx_usb_submit_isochronous() function.
*
* @CVMX_USB_ISOCHRONOUS_FLAGS_ALLOW_SHORT: Do not return an error if a transfer
* is less than the maximum packet size
* of the device.
* @CVMX_USB_ISOCHRONOUS_FLAGS_ASAP: Schedule the transaction as soon as
* possible.
*/ */
typedef enum enum cvmx_usb_isochronous_flags {
{ CVMX_USB_ISOCHRONOUS_FLAGS_ALLOW_SHORT = 1 << 0,
CVMX_USB_ISOCHRONOUS_FLAGS_ALLOW_SHORT = 1<<0, /**< Do not return an error if a transfer is less than the maximum packet size of the device */ CVMX_USB_ISOCHRONOUS_FLAGS_ASAP = 1 << 1,
CVMX_USB_ISOCHRONOUS_FLAGS_ASAP = 1<<1, /**< Schedule the transaction as soon as possible */ };
} cvmx_usb_isochronous_flags_t;
extern int cvmx_usb_submit_isochronous(cvmx_usb_state_t *state, int pipe_handle, extern int cvmx_usb_submit_isochronous(cvmx_usb_state_t *state, int pipe_handle,
int start_frame, int flags, int start_frame, int flags,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment