xref: /linux/drivers/usb/gadget/udc/bdc/bdc_cmd.h (revision 3aaefb76c50f71b83cc82dccadf86c432a1316ec)
1*3aaefb76SChunfeng 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 */
13efed421aSAshwini Pahuja int bdc_address_device(struct bdc *, u32);
14efed421aSAshwini Pahuja int bdc_config_ep(struct bdc *, struct bdc_ep *);
15efed421aSAshwini Pahuja int bdc_dconfig_ep(struct bdc *, struct bdc_ep *);
16efed421aSAshwini Pahuja int bdc_stop_ep(struct bdc *, int);
17efed421aSAshwini Pahuja int bdc_ep_set_stall(struct bdc *, int);
18efed421aSAshwini Pahuja int bdc_ep_clear_stall(struct bdc *, int);
19efed421aSAshwini Pahuja int bdc_ep_set_halt(struct bdc_ep *, u32 , int);
20efed421aSAshwini Pahuja int bdc_ep_bla(struct bdc *, struct bdc_ep *, dma_addr_t);
21efed421aSAshwini Pahuja int bdc_function_wake(struct bdc*, u8);
22efed421aSAshwini Pahuja int bdc_function_wake_fh(struct bdc*, u8);
23efed421aSAshwini Pahuja 
24efed421aSAshwini Pahuja #endif /* __LINUX_BDC_CMD_H__ */
25