1f05845fcSMahipal Challa /***********************license start************************************
2f05845fcSMahipal Challa  * Copyright (c) 2003-2017 Cavium, Inc.
3f05845fcSMahipal Challa  * All rights reserved.
4f05845fcSMahipal Challa  *
5f05845fcSMahipal Challa  * License: one of 'Cavium License' or 'GNU General Public License Version 2'
6f05845fcSMahipal Challa  *
7f05845fcSMahipal Challa  * This file is provided under the terms of the Cavium License (see below)
8f05845fcSMahipal Challa  * or under the terms of GNU General Public License, Version 2, as
9f05845fcSMahipal Challa  * published by the Free Software Foundation. When using or redistributing
10f05845fcSMahipal Challa  * this file, you may do so under either license.
11f05845fcSMahipal Challa  *
12f05845fcSMahipal Challa  * Cavium License:  Redistribution and use in source and binary forms, with
13f05845fcSMahipal Challa  * or without modification, are permitted provided that the following
14f05845fcSMahipal Challa  * conditions are met:
15f05845fcSMahipal Challa  *
16f05845fcSMahipal Challa  *  * Redistributions of source code must retain the above copyright
17f05845fcSMahipal Challa  *    notice, this list of conditions and the following disclaimer.
18f05845fcSMahipal Challa  *
19f05845fcSMahipal Challa  *  * Redistributions in binary form must reproduce the above
20f05845fcSMahipal Challa  *    copyright notice, this list of conditions and the following
21f05845fcSMahipal Challa  *    disclaimer in the documentation and/or other materials provided
22f05845fcSMahipal Challa  *    with the distribution.
23f05845fcSMahipal Challa  *
24f05845fcSMahipal Challa  *  * Neither the name of Cavium Inc. nor the names of its contributors may be
25f05845fcSMahipal Challa  *    used to endorse or promote products derived from this software without
26f05845fcSMahipal Challa  *    specific prior written permission.
27f05845fcSMahipal Challa  *
28f05845fcSMahipal Challa  * This Software, including technical data, may be subject to U.S. export
29f05845fcSMahipal Challa  * control laws, including the U.S. Export Administration Act and its
30f05845fcSMahipal Challa  * associated regulations, and may be subject to export or import
31f05845fcSMahipal Challa  * regulations in other countries.
32f05845fcSMahipal Challa  *
33f05845fcSMahipal Challa  * TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS"
34f05845fcSMahipal Challa  * AND WITH ALL FAULTS AND CAVIUM INC. MAKES NO PROMISES, REPRESENTATIONS
35f05845fcSMahipal Challa  * OR WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH
36f05845fcSMahipal Challa  * RESPECT TO THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY
37f05845fcSMahipal Challa  * REPRESENTATION OR DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT
38f05845fcSMahipal Challa  * DEFECTS, AND CAVIUM SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY)
39f05845fcSMahipal Challa  * WARRANTIES OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A
40f05845fcSMahipal Challa  * PARTICULAR PURPOSE, LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET
41f05845fcSMahipal Challa  * ENJOYMENT, QUIET POSSESSION OR CORRESPONDENCE TO DESCRIPTION. THE
42f05845fcSMahipal Challa  * ENTIRE  RISK ARISING OUT OF USE OR PERFORMANCE OF THE SOFTWARE LIES
43f05845fcSMahipal Challa  * WITH YOU.
44f05845fcSMahipal Challa  ***********************license end**************************************/
45f05845fcSMahipal Challa 
46f05845fcSMahipal Challa #ifndef __ZIP_INFLATE_H__
47f05845fcSMahipal Challa #define __ZIP_INFLATE_H__
48f05845fcSMahipal Challa 
49f05845fcSMahipal Challa /**
50f05845fcSMahipal Challa  * zip_inflate - API to offload inflate operation to hardware
51f05845fcSMahipal Challa  * @zip_ops: Pointer to zip operation structure
52f05845fcSMahipal Challa  * @s:       Pointer to the structure representing zip state
53f05845fcSMahipal Challa  * @zip_dev: Pointer to the structure representing zip device
54f05845fcSMahipal Challa  *
55f05845fcSMahipal Challa  * This function prepares the zip inflate command and submits it to the zip
56f05845fcSMahipal Challa  * engine for processing.
57f05845fcSMahipal Challa  *
58f05845fcSMahipal Challa  * Return: 0 if successful or error code
59f05845fcSMahipal Challa  */
60f05845fcSMahipal Challa int zip_inflate(struct zip_operation *zip_ops, struct zip_state *s,
61f05845fcSMahipal Challa 		struct zip_device *zip_dev);
62f05845fcSMahipal Challa #endif
63