#define __USB_GADGET_H__
#include <stdint.h>
+#include <vconf-internal-usb-keys.h>
/*The default USB configuration */
#define DEFAULT_VID 0x04e8
unsigned int function_mask;
};
-enum usb_mode_idx {
- USB_FUNCTION_IDX_MTP = 0,
- USB_FUNCTION_IDX_ACM = 1,
- USB_FUNCTION_IDX_SDB = 2,
- USB_FUNCTION_IDX_RNDIS = 3,
- USB_FUNCTION_IDX_DIAG = 4,
- USB_FUNCTION_IDX_CONN_GADGET = 5,
- USB_FUNCTION_IDX_DM = 6,
- USB_FUNCTION_IDX_RMNET = 7,
- USB_FUNCTION_IDX_MAX = 8
-};
-
-enum usb_mode {
- USB_FUNCTION_NONE = 0,
- USB_FUNCTION_MTP = 1,
- USB_FUNCTION_ACM = 2,
- USB_FUNCTION_SDB = 4,
- USB_FUNCTION_RNDIS = 8,
- USB_FUNCTION_DIAG = 16,
- USB_FUNCTION_CONN_GADGET = 32,
- USB_FUNCTION_DM = 64,
- USB_FUNCTION_RMNET = 128
-};
-
-enum usb_mode_deprecated {
- SET_USB_NONE = 0,
- SET_USB_DEFAULT = 1,
- SET_USB_SDB = 2,
- SET_USB_SDB_DIAG = 3,
- SET_USB_RNDIS_TETHERING = 4,
- SET_USB_RNDIS = 5,
- SET_USB_RNDIS_SDB = 6,
- SET_USB_DIAG_SDB = 7,
- SET_USB_RNDIS_DIAG = 8,
- SET_USB_ACCESSORY = 9,
- SET_USB_DIAG_RMNET = 11,
- SET_USB_ACM_SDB_DM = 12,
- SET_USB_RNDIS_SDB_ACM = 13
-};
-
struct usb_function *find_usb_function_by_name(const char *name);
struct usb_function *find_usb_function_by_name_instance(const char *name, const char *instance);