mtu3.h (f5db340f19f14a8df9dfd22d71fba1513e9f1f7e) mtu3.h (fe7c994a5ed8e3bd50888ef4391da9bb28934bd7)
1/*
2 * mtu3.h - MediaTek USB3 DRD header
3 *
4 * Copyright (C) 2016 MediaTek Inc.
5 *
6 * Author: Chunfeng Yun <chunfeng.yun@mediatek.com>
7 *
8 * This software is licensed under the terms of the GNU General Public

--- 274 unchanged lines hidden (view full) ---

283}
284
285/**
286 * struct mtu3 - device driver instance data.
287 * @slot: MTU3_U2_IP_SLOT_DEFAULT for U2 IP only,
288 * MTU3_U3_IP_SLOT_DEFAULT for U3 IP
289 * @may_wakeup: means device's remote wakeup is enabled
290 * @is_self_powered: is reported in device status and the config descriptor
1/*
2 * mtu3.h - MediaTek USB3 DRD header
3 *
4 * Copyright (C) 2016 MediaTek Inc.
5 *
6 * Author: Chunfeng Yun <chunfeng.yun@mediatek.com>
7 *
8 * This software is licensed under the terms of the GNU General Public

--- 274 unchanged lines hidden (view full) ---

283}
284
285/**
286 * struct mtu3 - device driver instance data.
287 * @slot: MTU3_U2_IP_SLOT_DEFAULT for U2 IP only,
288 * MTU3_U3_IP_SLOT_DEFAULT for U3 IP
289 * @may_wakeup: means device's remote wakeup is enabled
290 * @is_self_powered: is reported in device status and the config descriptor
291 * @delayed_status: true when function drivers ask for delayed status
291 * @ep0_req: dummy request used while handling standard USB requests
292 * for GET_STATUS and SET_SEL
293 * @setup_buf: ep0 response buffer for GET_STATUS and SET_SEL requests
294 */
295struct mtu3 {
296 spinlock_t lock;
297 struct ssusb_mtk *ssusb;
298 struct device *dev;

--- 23 unchanged lines hidden (view full) ---

322 unsigned is_active:1;
323 unsigned may_wakeup:1;
324 unsigned is_self_powered:1;
325 unsigned test_mode:1;
326 unsigned softconnect:1;
327 unsigned u1_enable:1;
328 unsigned u2_enable:1;
329 unsigned is_u3_ip:1;
292 * @ep0_req: dummy request used while handling standard USB requests
293 * for GET_STATUS and SET_SEL
294 * @setup_buf: ep0 response buffer for GET_STATUS and SET_SEL requests
295 */
296struct mtu3 {
297 spinlock_t lock;
298 struct ssusb_mtk *ssusb;
299 struct device *dev;

--- 23 unchanged lines hidden (view full) ---

323 unsigned is_active:1;
324 unsigned may_wakeup:1;
325 unsigned is_self_powered:1;
326 unsigned test_mode:1;
327 unsigned softconnect:1;
328 unsigned u1_enable:1;
329 unsigned u2_enable:1;
330 unsigned is_u3_ip:1;
331 unsigned delayed_status:1;
330
331 u8 address;
332 u8 test_mode_nr;
333 u32 hw_version;
334};
335
336static inline struct mtu3 *gadget_to_mtu3(struct usb_gadget *g)
337{

--- 77 unchanged lines hidden ---
332
333 u8 address;
334 u8 test_mode_nr;
335 u32 hw_version;
336};
337
338static inline struct mtu3 *gadget_to_mtu3(struct usb_gadget *g)
339{

--- 77 unchanged lines hidden ---