hub.h

00001 /*
00002  * Copyright (c) 2007, Benedikt Sauter <sauter@ixbat.de>
00003  * All rights reserved.
00004  *
00005  * Short descripton of file:
00006  *
00007  *
00008  * Redistribution and use in source and binary forms, with or without 
00009  * modification, are permitted provided that the following conditions 
00010  * are met:
00011  *
00012  *   * Redistributions of source code must retain the above copyright 
00013  *     notice, this list of conditions and the following disclaimer.
00014  *   * Redistributions in binary form must reproduce the above 
00015  *     copyright notice, this list of conditions and the following 
00016  *     disclaimer in the documentation and/or other materials provided 
00017  *     with the distribution.
00018  *   * Neither the name of the FH Augsburg nor the names of its 
00019  *     contributors may be used to endorse or promote products derived 
00020  *     from this software without specific prior written permission.
00021  *
00022  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
00023  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
00024  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
00025  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
00026  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
00027  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
00028  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
00029  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
00030  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
00031  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
00032  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00033  */
00034 
00035 #ifndef _HUB_H
00036 #define _HUB_H
00037 
00038 #include <hextwelve/core/core.h>
00039 
00040 void usb_hub_init();
00041 void usb_hub_probe();
00042 
00043 void usb_hub_check();
00044 u8 usb_hub_get_hub_descriptor(usb_device *dev, char * buf);
00045 u8 usb_hub_get_hub_status(usb_device *dev, char *buf);
00046 u8 usb_hub_get_port_status(usb_device *dev, char *buf);
00047 u8 usb_hub_clear_port_feature(usb_device *dev);
00048 u8 usb_hub_set_port_feature(usb_device *dev, u8 value);
00049 u8 usb_hub_clear_hub_feature(usb_device *dev);
00050 u8 usb_hub_set_hub_feature(usb_device *dev);
00051 
00052 u8 usb_hub_set_hub_descriptor(usb_device *dev);
00053 #endif /* _HUB_H */
00054 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated by  doxygen 1.6.3