xref: /linux/drivers/usb/gadget/udc/bdc/bdc_cmd.h (revision d0034a7a4ac7fae708146ac0059b9c47a1543f0d)
13aaefb76SChunfeng Yun /* SPDX-License-Identifier: GPL-2.0+ */
2efed421aSAshwini Pahuja /*
3efed421aSAshwini Pahuja  * bdc_cmd.h - header for the BDC debug functions
4efed421aSAshwini Pahuja  *
5efed421aSAshwini Pahuja  * Copyright (C) 2014 Broadcom Corporation
6efed421aSAshwini Pahuja  *
7efed421aSAshwini Pahuja  * Author: Ashwini Pahuja
8efed421aSAshwini Pahuja  */
9efed421aSAshwini Pahuja #ifndef __LINUX_BDC_CMD_H__
10efed421aSAshwini Pahuja #define __LINUX_BDC_CMD_H__
11efed421aSAshwini Pahuja 
12efed421aSAshwini Pahuja /* Command operations */
13*5ae5f76aSChunfeng Yun int bdc_address_device(struct bdc *bdc, u32 add);
14*5ae5f76aSChunfeng Yun int bdc_config_ep(struct bdc *bdc, struct bdc_ep *ep);
15*5ae5f76aSChunfeng Yun int bdc_dconfig_ep(struct bdc *bdc, struct bdc_ep *ep);
16*5ae5f76aSChunfeng Yun int bdc_stop_ep(struct bdc *bdc, int epnum);
17*5ae5f76aSChunfeng Yun int bdc_ep_set_stall(struct bdc *bdc, int epnum);
18*5ae5f76aSChunfeng Yun int bdc_ep_clear_stall(struct bdc *bdc, int epnum);
19*5ae5f76aSChunfeng Yun int bdc_ep_bla(struct bdc *bdc, struct bdc_ep *ep, dma_addr_t dma_addr);
20*5ae5f76aSChunfeng Yun int bdc_function_wake(struct bdc *bdc, u8 intf);
21*5ae5f76aSChunfeng Yun int bdc_function_wake_fh(struct bdc *bdc, u8 intf);
22efed421aSAshwini Pahuja 
23efed421aSAshwini Pahuja #endif /* __LINUX_BDC_CMD_H__ */
24