1/*
2
3This file is provided under a dual BSD/GPLv2 license.  When using or
4redistributing this file, you may do so under either license.
5
6GPL LICENSE SUMMARY
7
8Copyright(c) 2005-2008 Intel Corporation. All rights reserved.
9
10This program is free software; you can redistribute it and/or modify
11it under the terms of version 2 of the GNU General Public License as
12published by the Free Software Foundation.
13
14This program is distributed in the hope that it will be useful, but
15WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
22The full GNU General Public License is included in this distribution
23in the file called LICENSE.GPL.
24
25Contact Information:
26Intel Corporation
272200 Mission College Blvd.
28Santa Clara, CA  97052
29
30BSD LICENSE
31
32Copyright(c) 2005-2008 Intel Corporation. All rights reserved.
33
34Redistribution and use in source and binary forms, with or without
35modification, are permitted provided that the following conditions
36are met:
37
38* Redistributions of source code must retain the above copyright
39notice, this list of conditions and the following disclaimer.
40* Redistributions in binary form must reproduce the above copyright
41notice, this list of conditions and the following disclaimer in
42the documentation and/or other materials provided with the
43distribution.
44* Neither the name of Intel Corporation nor the names of its
45contributors may be used to endorse or promote products derived
46from this software without specific prior written permission.
47
48THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
49"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
50LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
51A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
52OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
53SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
54LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
55DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
56THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
57(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
58OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
59
60*/
61#ifndef IPC_FW_CUSTOM_H
62#define IPC_FW_CUSTOM_H 1
63
64#include "viddec_fw_parser_fw_ipc.h"
65
66extern void custom_ipclib_firmware_out_of_reset(void);
67
68extern struct FW_IPC_Handler *custom_ipclib_get_fwipc(void);
69extern void *custom_ipclib_get_sync_message_area(void);
70
71extern void custom_ipclib_firmware_setup(void);
72extern void custom_ipclib_firmware_ready(void);
73
74extern int  custom_ipclib_firmware_is_sync_command_requested(void);
75extern void custom_ipclib_firmware_ack_sync_command(void);
76
77void custom_ipclib_memcpy_to_host_mem(
78    void        *to,
79    const void  *from,
80    int          size );
81
82void custom_ipclib_memcpy_from_host_mem(
83    void        *to,
84    const void  *from,
85    int          size );
86
87#endif /* IPC_FW_CUSTOM_H */
88