add global proxy / cache settings to httpget class. This removes the need of passing...
[Rockbox.git] / firmware / export / usb_core.h
blobbb4ce6ceddc1512577501996cb813605616a570c
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id: $
10 * Copyright (C) 2007 by Björn Stenberg
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef USB_CORE_H
20 #define USB_CORE_H
22 #ifndef BOOTLOADER
24 //#define USB_SERIAL
25 #define USB_STORAGE
26 #define USB_CHARGING_ONLY
27 #else /* BOOTLOADER */
28 #define USB_CHARGING_ONLY
29 #endif /* BOOTLOADER */
31 #include "usb_ch9.h"
32 #include "usb.h"
34 /* endpoints */
35 enum {
36 EP_CONTROL = 0,
37 #ifdef USB_STORAGE
38 EP_MASS_STORAGE,
39 #endif
40 #ifdef USB_SERIAL
41 EP_SERIAL,
42 #endif
43 #ifdef USB_CHARGING_ONLY
44 EP_CHARGING_ONLY,
45 #endif
46 NUM_ENDPOINTS
49 extern int usb_max_pkt_size;
51 void usb_core_init(void);
52 void usb_core_exit(void);
53 void usb_core_control_request(struct usb_ctrlrequest* req);
54 void usb_core_transfer_complete(int endpoint, bool in, int status, int length);
55 void usb_core_bus_reset(void);
56 bool usb_core_exclusive_connection(void);
57 void usb_core_enable_protocol(int driver,bool enabled);
58 void usb_core_handle_transfer_completion(struct usb_transfer_completion_event_data* event);
59 #endif