blob: 8fa6bbb7d1ca2a1453e23fd2c3bb3106eedf40cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/****************************************************************************
* (C) Copyright 2008 Samsung Electronics Co., Ltd., All rights reserved
*
* [File Name] :s3c-otg-oci.h
* [Description] : The Header file defines the external
* and internal functions of OCI.
* [Author] : Jang Kyu Hyeok { kyuhyeok.jang@samsung.com }
* [Department] : System LSI Division/Embedded S/W Platform
* [Created Date]: 2008/06/18
* [Revision History]
* (1) 2008/06/25 by Jang Kyu Hyeok { kyuhyeok.jang@samsung.com }
* - Added some functions and data structure of OCI
*
****************************************************************************/
/****************************************************************************
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
****************************************************************************/
#ifndef _OCI_H_
#define _OCI_H_
#include <mach/map.h> /* virtual address*/
extern void otg_host_phy_init(void);
#include <mach/regs-clock.h>
int oci_channel_dealloc(u8 ch_num);
u8 oci_start_transfer(struct sec_otghost *otghost, struct stransfer *st_t);
int oci_stop_transfer(struct sec_otghost *otghost, u8 ch_num);
u32 oci_get_frame_num(void);
u16 oci_get_frame_interval(void);
void oci_set_frame_interval(u16 intervl);
#endif /* _OCI_H_ */
|