1 /****************************************************************************
2 * (C) Copyright 2008 Samsung Electronics Co., Ltd., All rights reserved
4 * [File Name] : CommonTransferChecker.h
5 * [Description] : The Header file defines the external and internal functions of CommonTransferChecker.
6 * [Author] : Yang Soon Yeal { syatom.yang@samsung.com }
7 * [Department] : System LSI Division/System SW Lab
8 * [Created Date]: 2008/06/12
10 * (1) 2008/06/12 by Yang Soon Yeal { syatom.yang@samsung.com }
11 * - Created this file and defines functions of CommonTransferChecker
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 _COMMON_TRANSFER_CHECKER_H
31 #define _COMMON_TRANSFER_CHECKER_H
34 // ----------------------------------------------------------------------------
35 // Include files : None.
36 // ----------------------------------------------------------------------------
39 #include "s3c-otg-common-common.h"
40 //#include "s3c-otg-common-const.h"
41 #include "s3c-otg-common-errorcode.h"
42 #include "s3c-otg-common-datastruct.h"
43 #include "s3c-otg-common-regdef.h"
44 #include "s3c-otg-transfer-transfer.h"
46 #include "s3c-otg-hcdi-debug.h"
47 #include "s3c-otg-hcdi-memory.h"
48 #include "s3c-otg-scheduler-scheduler.h"
49 #include "s3c-otg-isr.h"
50 #include "s3c-otg-transferchecker-control.h"
51 #include "s3c-otg-transferchecker-bulk.h"
52 #include "s3c-otg-transferchecker-interrupt.h"
53 //#include "s3c-otg-transferchecker-iso.h"
62 //void init_done_transfer_checker (void);
63 void do_transfer_checker (struct sec_otghost *otghost);
64 int release_trans_resource(struct sec_otghost *otghost, td_t *done_td);
65 u32 calc_transferred_size(bool f_is_complete,
68 void update_frame_number(td_t *result_td);
69 void update_datatgl(u8 cur_data_tgl,