xref: /linux/drivers/usb/gadget/udc/bdc/bdc_cmd.h (revision efed421a94e62a7ddbc76acba4312b70e4be958f)
1*efed421aSAshwini Pahuja /*
2*efed421aSAshwini Pahuja  * bdc_cmd.h - header for the BDC debug functions
3*efed421aSAshwini Pahuja  *
4*efed421aSAshwini Pahuja  * Copyright (C) 2014 Broadcom Corporation
5*efed421aSAshwini Pahuja  *
6*efed421aSAshwini Pahuja  * Author: Ashwini Pahuja
7*efed421aSAshwini Pahuja  *
8*efed421aSAshwini Pahuja  * This program is free software; you can redistribute it and/or modify it
9*efed421aSAshwini Pahuja  * under the terms of the GNU General Public License as published by the
10*efed421aSAshwini Pahuja  * Free Software Foundation; either version 2 of the License, or (at your
11*efed421aSAshwini Pahuja  * option) any later version.
12*efed421aSAshwini Pahuja  *
13*efed421aSAshwini Pahuja  */
14*efed421aSAshwini Pahuja #ifndef __LINUX_BDC_CMD_H__
15*efed421aSAshwini Pahuja #define __LINUX_BDC_CMD_H__
16*efed421aSAshwini Pahuja 
17*efed421aSAshwini Pahuja /* Command operations */
18*efed421aSAshwini Pahuja int bdc_address_device(struct bdc *, u32);
19*efed421aSAshwini Pahuja int bdc_config_ep(struct bdc *, struct bdc_ep *);
20*efed421aSAshwini Pahuja int bdc_dconfig_ep(struct bdc *, struct bdc_ep *);
21*efed421aSAshwini Pahuja int bdc_stop_ep(struct bdc *, int);
22*efed421aSAshwini Pahuja int bdc_ep_set_stall(struct bdc *, int);
23*efed421aSAshwini Pahuja int bdc_ep_clear_stall(struct bdc *, int);
24*efed421aSAshwini Pahuja int bdc_ep_set_halt(struct bdc_ep *, u32 , int);
25*efed421aSAshwini Pahuja int bdc_ep_bla(struct bdc *, struct bdc_ep *, dma_addr_t);
26*efed421aSAshwini Pahuja int bdc_function_wake(struct bdc*, u8);
27*efed421aSAshwini Pahuja int bdc_function_wake_fh(struct bdc*, u8);
28*efed421aSAshwini Pahuja 
29*efed421aSAshwini Pahuja #endif /* __LINUX_BDC_CMD_H__ */
30