NOTE! This is not actually a driver at all, rather this is
just a collection of helper routines that implement the
generic USB things that the real drivers can use.
Think of this as a „USB library“ rather than anything
else.
It should be considered a slave, with no callbacks.
Callbacks are evil.
fi le_storage.c -- File-backed USB Storage Gadget, for
USB development
Copyright (C) 2003-2005 Alan Stern
All rights reserved.
Redistribution and use in source and binary forms,
with or without modifi cation, are permitted provided
that the following conditions are met:
Redistributions of source code must retain the above
copyright notice, this list of conditions, and the follo-
wing disclaimer, without modifi cation.
Redistributions in binary form must reproduce the
above copyright notice, this list of conditions and the
following disclaimer in the documentation and/or
other materials provided with the distribution.
The names of the above-listed copyright holders may
not be used to endorse or promote products derived
from this software without specifi c prior written per-
mission.
ALTERNATIVELY, this software may be distributed
under the terms of the GNU General Public License
(„GPL“) as published by the Free Software Foundati-
on, either version 2 of that License or (at your option)
any later version.