1 /****************************************************************************
2 * (C) Copyright 2008 Samsung Electronics Co., Ltd., All rights reserved
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
10 * (1) 2008/06/13 by Yang Soon Yeal { syatom.yang@samsung.com }
11 * - Created this file and defines functions of ControlTransferChecker
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.
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.
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 ****************************************************************************/
30 #ifndef _CONTROL_TRANSFER_CHECKER_H
31 #define _CONTROL_TRANSFER_CHECKER_H
34 // ----------------------------------------------------------------------------
35 // Include files : None.
36 // ----------------------------------------------------------------------------
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"
46 #include "s3c-otg-hcdi-debug.h"
47 #include "s3c-otg-scheduler-scheduler.h"
49 #include "s3c-otg-transferchecker-checker.h"
56 u8 process_control_transfer( td_t *raw_td,
57 hc_info_t *hc_reg_data);
59 u8 process_xfercompl_on_control(td_t *raw_td,
60 hc_info_t *hc_reg_data);
62 u8 process_chhltd_on_control( td_t *raw_td,
63 hc_info_t *hc_reg_data);
65 u8 process_ahb_on_control( td_t *raw_td,
66 hc_info_t *hc_reg_data);
68 u8 process_stall_on_control( td_t *raw_td,
69 hc_info_t *hc_reg_data);
71 u8 process_nak_on_control (td_t *raw_td,
72 hc_info_t *hc_reg_data);
74 u8 process_ack_on_control (td_t *raw_td,
75 hc_info_t *hc_reg_data);
77 u8 process_nyet_on_control( td_t *raw_td,
78 hc_info_t *hc_reg_data);
80 u8 process_xacterr_on_control(td_t *raw_td,
81 hc_info_t *hc_reg_data);
83 u8 process_bblerr_on_control( td_t *raw_td,
84 hc_info_t *hc_reg_data);
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);
91 u8 process_outdirection_on_control(td_t *result_td,
92 hc_info_t *hc_reg_data);