Peter D'Hoye | e4363c1 | 2007-09-19 23:20:55 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
Michael Sevakis | 1eed012 | 2008-04-18 17:05:15 +0000 | [diff] [blame] | 8 | * $Id$ |
Peter D'Hoye | e4363c1 | 2007-09-19 23:20:55 +0000 | [diff] [blame] | 9 | * |
Nicolas Pennequin | 357ffb3 | 2008-05-05 10:32:46 +0000 | [diff] [blame] | 10 | * Copyright (C) 2007 by Björn Stenberg |
Peter D'Hoye | e4363c1 | 2007-09-19 23:20:55 +0000 | [diff] [blame] | 11 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame^] | 12 | * 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'Hoye | e4363c1 | 2007-09-19 23:20:55 +0000 | [diff] [blame] | 16 | * |
| 17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 18 | * KIND, either express or implied. |
| 19 | * |
| 20 | ****************************************************************************/ |
Björn Stenberg | b4e5123 | 2007-11-22 20:51:00 +0000 | [diff] [blame] | 21 | #ifndef USB_STORAGE_H |
| 22 | #define USB_STORAGE_H |
Peter D'Hoye | e4363c1 | 2007-09-19 23:20:55 +0000 | [diff] [blame] | 23 | |
Björn Stenberg | b4e5123 | 2007-11-22 20:51:00 +0000 | [diff] [blame] | 24 | #include "usb_ch9.h" |
Peter D'Hoye | e4363c1 | 2007-09-19 23:20:55 +0000 | [diff] [blame] | 25 | |
Frank Gevaerts | bec6aa3 | 2008-04-26 19:02:16 +0000 | [diff] [blame] | 26 | int usb_storage_set_first_endpoint(int endpoint); |
| 27 | int usb_storage_set_first_interface(int interface); |
| 28 | int usb_storage_get_config_descriptor(unsigned char *dest,int max_packet_size); |
| 29 | void usb_storage_init_connection(void); |
Björn Stenberg | b4e5123 | 2007-11-22 20:51:00 +0000 | [diff] [blame] | 30 | void usb_storage_init(void); |
Frank Gevaerts | bec6aa3 | 2008-04-26 19:02:16 +0000 | [diff] [blame] | 31 | void usb_storage_transfer_complete(int ep,bool in,int state,int length); |
Björn Stenberg | b4e5123 | 2007-11-22 20:51:00 +0000 | [diff] [blame] | 32 | bool usb_storage_control_request(struct usb_ctrlrequest* req); |
Frank Gevaerts | 7451330 | 2008-03-10 20:55:24 +0000 | [diff] [blame] | 33 | #ifdef HAVE_HOTSWAP |
| 34 | void usb_storage_notify_hotswap(int volume,bool inserted); |
| 35 | #endif |
| 36 | |
| 37 | void usb_storage_reconnect(void); |
Björn Stenberg | b4e5123 | 2007-11-22 20:51:00 +0000 | [diff] [blame] | 38 | |
| 39 | #endif |
| 40 | |