| .. | .. |
|---|
| 1 | | -// SPDX-License-Identifier: GPL-2.0+ |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0+ */ |
|---|
| 2 | 2 | /* Copyright (C) 2007,2008 Freescale Semiconductor, Inc. */ |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | #include <linux/usb/otg-fsm.h> |
|---|
| .. | .. |
|---|
| 371 | 371 | u8 otg_port; |
|---|
| 372 | 372 | }; |
|---|
| 373 | 373 | |
|---|
| 374 | | -/* For SRP and HNP handle */ |
|---|
| 375 | | -#define FSL_OTG_MAJOR 240 |
|---|
| 376 | 374 | #define FSL_OTG_NAME "fsl-usb2-otg" |
|---|
| 377 | | -/* Command to OTG driver ioctl */ |
|---|
| 378 | | -#define OTG_IOCTL_MAGIC FSL_OTG_MAJOR |
|---|
| 379 | | -/* if otg work as host, it should return 1, otherwise return 0 */ |
|---|
| 380 | | -#define GET_OTG_STATUS _IOR(OTG_IOCTL_MAGIC, 1, int) |
|---|
| 381 | | -#define SET_A_SUSPEND_REQ _IOW(OTG_IOCTL_MAGIC, 2, int) |
|---|
| 382 | | -#define SET_A_BUS_DROP _IOW(OTG_IOCTL_MAGIC, 3, int) |
|---|
| 383 | | -#define SET_A_BUS_REQ _IOW(OTG_IOCTL_MAGIC, 4, int) |
|---|
| 384 | | -#define SET_B_BUS_REQ _IOW(OTG_IOCTL_MAGIC, 5, int) |
|---|
| 385 | | -#define GET_A_SUSPEND_REQ _IOR(OTG_IOCTL_MAGIC, 6, int) |
|---|
| 386 | | -#define GET_A_BUS_DROP _IOR(OTG_IOCTL_MAGIC, 7, int) |
|---|
| 387 | | -#define GET_A_BUS_REQ _IOR(OTG_IOCTL_MAGIC, 8, int) |
|---|
| 388 | | -#define GET_B_BUS_REQ _IOR(OTG_IOCTL_MAGIC, 9, int) |
|---|
| 389 | 375 | |
|---|
| 390 | 376 | void fsl_otg_add_timer(struct otg_fsm *fsm, void *timer); |
|---|
| 391 | 377 | void fsl_otg_del_timer(struct otg_fsm *fsm, void *timer); |
|---|