最終更新:2014-06-04 (水) 05:47:50 (3586d)
usb_gadget
Top / usb_gadget
represents a usb slave device
struct usb_gadget { struct work_struct work; /* readonly to gadget driver */ const struct usb_gadget_ops *ops; struct usb_ep *ep0; struct list_head ep_list; /* of usb_ep */ enum usb_device_speed speed; enum usb_device_speed max_speed; enum usb_device_state state; const char *name; struct device dev; unsigned out_epnum; unsigned in_epnum; unsigned sg_supported:1; unsigned is_otg:1; unsigned is_a_peripheral:1; unsigned b_hnp_enable:1; unsigned a_hnp_support:1; unsigned a_alt_hnp_support:1; unsigned quirk_ep_out_aligned_size:1; };
メンバ
使われ所
- Linux/USBコントローラドライバ(型:platform_driver)のメンバとして使われる。
- Linux/USBガジェットドライバとのバインド時