blob: 7054d245014078b9e48e39afe17b8bc95549a49c [file] [log] [blame]
Peter D'Hoyee4363c12007-09-19 23:20:55 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
Michael Sevakis1eed0122008-04-18 17:05:15 +00008 * $Id$
Peter D'Hoyee4363c12007-09-19 23:20:55 +00009 *
Nicolas Pennequin357ffb32008-05-05 10:32:46 +000010 * Copyright (C) 2007 by Björn Stenberg
Peter D'Hoyee4363c12007-09-19 23:20:55 +000011 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000012 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
Peter D'Hoyee4363c12007-09-19 23:20:55 +000016 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
Björn Stenbergb4e51232007-11-22 20:51:00 +000021#ifndef USB_STORAGE_H
22#define USB_STORAGE_H
Peter D'Hoyee4363c12007-09-19 23:20:55 +000023
Björn Stenbergb4e51232007-11-22 20:51:00 +000024#include "usb_ch9.h"
Peter D'Hoyee4363c12007-09-19 23:20:55 +000025
Frank Gevaertsbec6aa32008-04-26 19:02:16 +000026int usb_storage_set_first_endpoint(int endpoint);
27int usb_storage_set_first_interface(int interface);
28int usb_storage_get_config_descriptor(unsigned char *dest,int max_packet_size);
29void usb_storage_init_connection(void);
Björn Stenbergb4e51232007-11-22 20:51:00 +000030void usb_storage_init(void);
Frank Gevaertsbec6aa32008-04-26 19:02:16 +000031void usb_storage_transfer_complete(int ep,bool in,int state,int length);
Björn Stenbergb4e51232007-11-22 20:51:00 +000032bool usb_storage_control_request(struct usb_ctrlrequest* req);
Frank Gevaerts74513302008-03-10 20:55:24 +000033#ifdef HAVE_HOTSWAP
34void usb_storage_notify_hotswap(int volume,bool inserted);
35#endif
36
37void usb_storage_reconnect(void);
Björn Stenbergb4e51232007-11-22 20:51:00 +000038
39#endif
40