upload tizen1.0 source
[kernel/linux-2.6.36.git] / drivers / usb / host / s3c-otg / s3c-otg-transferchecker-control.h
1 /****************************************************************************
2  *  (C) Copyright 2008 Samsung Electronics Co., Ltd., All rights reserved
3  *
4  *  [File Name]   : ControlTransferChecker.h
5  *  [Description] : The Header file defines the external and internal functions of ControlTransferChecker
6  *  [Author]      : Yang Soon Yeal { syatom.yang@samsung.com }
7  *  [Department]  : System LSI Division/System SW Lab
8  *  [Created Date]: 2009/01/12
9  *  [Revision History]
10  *      (1) 2008/06/13   by Yang Soon Yeal { syatom.yang@samsung.com }
11  *          - Created this file and defines functions of ControlTransferChecker
12  *
13  ****************************************************************************/
14 /****************************************************************************
15  * This program is free software; you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation; either version 2 of the License, or
18  * (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23  * GNU General Public License for more details.
24  *
25  * You should have received a copy of the GNU General Public License
26  * along with this program; if not, write to the Free Software
27  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28  ****************************************************************************/
29
30 #ifndef  _CONTROL_TRANSFER_CHECKER_H
31 #define  _CONTROL_TRANSFER_CHECKER_H
32
33 /*
34 // ----------------------------------------------------------------------------
35 // Include files : None.
36 // ----------------------------------------------------------------------------
37 */
38
39 #include "s3c-otg-common-common.h"
40 //#include "s3c-otg-common-typedef.h"
41 #include "s3c-otg-common-const.h"
42 #include "s3c-otg-common-errorcode.h"
43 #include "s3c-otg-common-datastruct.h"
44 #include "s3c-otg-common-regdef.h"
45
46 #include "s3c-otg-hcdi-debug.h"
47 #include "s3c-otg-scheduler-scheduler.h"
48
49 #include "s3c-otg-transferchecker-checker.h"
50
51
52 #ifdef __cplusplus
53 extern "C"
54 {
55 #endif
56 u8      process_control_transfer(       td_t    *raw_td,
57                                         hc_info_t *hc_reg_data);
58
59 u8      process_xfercompl_on_control(td_t *raw_td,
60                                         hc_info_t *hc_reg_data);
61
62 u8      process_chhltd_on_control(      td_t    *raw_td,
63                                         hc_info_t *hc_reg_data);
64
65 u8      process_ahb_on_control( td_t    *raw_td,
66                                         hc_info_t *hc_reg_data);
67
68 u8      process_stall_on_control(       td_t    *raw_td,
69                                         hc_info_t *hc_reg_data);
70
71 u8      process_nak_on_control  (td_t   *raw_td,
72                                         hc_info_t *hc_reg_data);
73
74 u8      process_ack_on_control  (td_t   *raw_td,
75                                         hc_info_t *hc_reg_data);
76
77 u8      process_nyet_on_control(        td_t    *raw_td,
78                                         hc_info_t *hc_reg_data);
79
80 u8      process_xacterr_on_control(td_t         *raw_td,
81                                         hc_info_t *hc_reg_data);
82
83 u8      process_bblerr_on_control(      td_t    *raw_td,
84                                         hc_info_t *hc_reg_data);
85
86 u8      process_datatgl_on_control(td_t         *raw_td,
87                                         hc_info_t *hc_reg_data);
88 u8      process_indirection_on_control( td_t    *result_td,
89                                         hc_info_t *hc_reg_data);
90
91 u8 process_outdirection_on_control(td_t         *result_td,
92                                         hc_info_t *hc_reg_data);
93
94 #ifdef __cplusplus
95 }
96 #endif
97
98
99 #endif