diff options
Diffstat (limited to 'drivers/usb/host/shost/shost_oci.h')
-rw-r--r-- | drivers/usb/host/shost/shost_oci.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/drivers/usb/host/shost/shost_oci.h b/drivers/usb/host/shost/shost_oci.h new file mode 100644 index 0000000..8fa6bbb --- /dev/null +++ b/drivers/usb/host/shost/shost_oci.h @@ -0,0 +1,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_ */ |