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