google ADK bt test on MQX
[adk-bluetooth-test.git] / adk-stack / transport / usb / usb_host / host / source / include / hostapi.h
blob82cde7986c53b9c8bcdab67995b56da9b66956d7
1 #ifndef __hostapi_h__
2 #define __hostapi_h__ 1
4 /**HEADER********************************************************************
5 *
6 * Copyright (c) 2008 Freescale Semiconductor;
7 * All Rights Reserved
9 * Copyright (c) 1989-2008 ARC International;
10 * All Rights Reserved
12 ***************************************************************************
14 * THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESSED OR
15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 * IN NO EVENT SHALL FREESCALE OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
18 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
22 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
23 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
24 * THE POSSIBILITY OF SUCH DAMAGE.
26 **************************************************************************
28 * $FileName: hostapi.h$
29 * $Version : 3.8.8.0$
30 * $Date : Jun-22-2012$
32 * Comments:
34 * This file contains the USB Host API specific data structures and
35 * function definitions.
37 *END************************************************************************/
38 #include "usb.h"
39 #include "host_common.h"
40 #include "host_main.h"
41 #include "host_dev_list.h"
42 #include "host_ch9.h"
43 #include "host_rcv.h"
44 #include "host_snd.h"
45 #include "host_cnl.h"
46 #include "host_close.h"
47 #include "host_shut.h"
49 /* Available service types */
50 #define USB_SERVICE_HOST_RESUME (0x01)
51 #define USB_SERVICE_SYSTEM_ERROR (0x02)
52 #define USB_SERVICE_SPEED (0x03)
53 #define USB_SERVICE_ATTACH (0x04)
54 #define USB_SERVICE_DETACH (0x05)
55 #define USB_SERVICE_STALL_PACKET (0x06)
56 #define USB_SERVICE_ENUMERATION_DONE (0x07)
57 #define USB_SERVICE_1MS_TIMER (0x08)
59 /* Used to manage services and service callbacks */
60 typedef struct host_service_struct
62 struct host_service_struct _PTR_ NEXT;
63 uint_32 TYPE;
64 void (_CODE_PTR_ SERVICE)(pointer, uint_32);
65 } USB_SERVICE_STRUCT, _PTR_ USB_SERVICE_STRUCT_PTR;
67 /* Prototypes */
69 #ifdef __cplusplus
70 extern "C" {
71 #endif
73 #ifdef __cplusplus
75 #endif
77 #endif