some routines for removing a device on demand. thist do not work properly
[ppcskel.git] / usb / core / core.h
index 4aeb042884394689fc42e9e15185f9d842cb469a..98ab7ea3641581a53f191cd7088123f4ee6d4e6e 100644 (file)
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+/*
+       ppcskel - a Free Software replacement for the Nintendo/BroadOn bootloader.
+       plugmii core
+
+Copyright (C) 2009     Bernhard Urban <lewurm@gmx.net>
+Copyright (C) 2009     Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
+
+# This code is licensed to you under the terms of the GNU GPL, version 2;
+# see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
+*/
 
 #ifndef _CORE_H_
 #define _CORE_H_
@@ -135,7 +145,8 @@ struct usb_driver {
        char* name;
        void (*probe)(void);
        void (*check)(void);
-       void * data;
+       void (*remove)(void);
+       void *data;
        struct usb_driver *next;
 };
 
@@ -167,6 +178,7 @@ struct usb_transfer_descriptor {
        u8 devaddress;
        u8 endpoint;
        u8 fullspeed;
+       u8 type;
        
        // TODO: zusammenfassen!
        u8 pid;