.. | .. |
---|
1 | | -/* |
---|
2 | | - This file is provided under a dual BSD/GPLv2 license. When using or |
---|
3 | | - redistributing this file, you may do so under either license. |
---|
4 | | - |
---|
5 | | - GPL LICENSE SUMMARY |
---|
6 | | - Copyright(c) 2014 Intel Corporation. |
---|
7 | | - This program is free software; you can redistribute it and/or modify |
---|
8 | | - it under the terms of version 2 of the GNU General Public License as |
---|
9 | | - published by the Free Software Foundation. |
---|
10 | | - |
---|
11 | | - This program is distributed in the hope that it will be useful, but |
---|
12 | | - WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
14 | | - General Public License for more details. |
---|
15 | | - |
---|
16 | | - Contact Information: |
---|
17 | | - qat-linux@intel.com |
---|
18 | | - |
---|
19 | | - BSD LICENSE |
---|
20 | | - Copyright(c) 2014 Intel Corporation. |
---|
21 | | - Redistribution and use in source and binary forms, with or without |
---|
22 | | - modification, are permitted provided that the following conditions |
---|
23 | | - are met: |
---|
24 | | - |
---|
25 | | - * Redistributions of source code must retain the above copyright |
---|
26 | | - notice, this list of conditions and the following disclaimer. |
---|
27 | | - * Redistributions in binary form must reproduce the above copyright |
---|
28 | | - notice, this list of conditions and the following disclaimer in |
---|
29 | | - the documentation and/or other materials provided with the |
---|
30 | | - distribution. |
---|
31 | | - * Neither the name of Intel Corporation nor the names of its |
---|
32 | | - contributors may be used to endorse or promote products derived |
---|
33 | | - from this software without specific prior written permission. |
---|
34 | | - |
---|
35 | | - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
---|
36 | | - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
---|
37 | | - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
---|
38 | | - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
---|
39 | | - OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
---|
40 | | - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
---|
41 | | - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
---|
42 | | - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
---|
43 | | - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
---|
44 | | - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
---|
45 | | - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
---|
46 | | -*/ |
---|
| 1 | +/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */ |
---|
| 2 | +/* Copyright(c) 2014 - 2020 Intel Corporation */ |
---|
47 | 3 | #ifndef _ICP_QAT_FW_INIT_ADMIN_H_ |
---|
48 | 4 | #define _ICP_QAT_FW_INIT_ADMIN_H_ |
---|
49 | 5 | |
---|
.. | .. |
---|
67 | 23 | }; |
---|
68 | 24 | |
---|
69 | 25 | struct icp_qat_fw_init_admin_req { |
---|
70 | | - uint16_t init_cfg_sz; |
---|
71 | | - uint8_t resrvd1; |
---|
72 | | - uint8_t init_admin_cmd_id; |
---|
73 | | - uint32_t resrvd2; |
---|
74 | | - uint64_t opaque_data; |
---|
75 | | - uint64_t init_cfg_ptr; |
---|
76 | | - uint64_t resrvd3; |
---|
77 | | -}; |
---|
| 26 | + __u16 init_cfg_sz; |
---|
| 27 | + __u8 resrvd1; |
---|
| 28 | + __u8 cmd_id; |
---|
| 29 | + __u32 resrvd2; |
---|
| 30 | + __u64 opaque_data; |
---|
| 31 | + __u64 init_cfg_ptr; |
---|
78 | 32 | |
---|
79 | | -struct icp_qat_fw_init_admin_resp_hdr { |
---|
80 | | - uint8_t flags; |
---|
81 | | - uint8_t resrvd1; |
---|
82 | | - uint8_t status; |
---|
83 | | - uint8_t init_admin_cmd_id; |
---|
84 | | -}; |
---|
85 | | - |
---|
86 | | -struct icp_qat_fw_init_admin_resp_pars { |
---|
87 | 33 | union { |
---|
88 | | - uint32_t resrvd1[ICP_QAT_FW_NUM_LONGWORDS_4]; |
---|
89 | 34 | struct { |
---|
90 | | - uint32_t version_patch_num; |
---|
91 | | - uint8_t context_id; |
---|
92 | | - uint8_t ae_id; |
---|
93 | | - uint16_t resrvd1; |
---|
94 | | - uint64_t resrvd2; |
---|
95 | | - } s1; |
---|
96 | | - struct { |
---|
97 | | - uint64_t req_rec_count; |
---|
98 | | - uint64_t resp_sent_count; |
---|
99 | | - } s2; |
---|
100 | | - } u; |
---|
| 35 | + __u16 ibuf_size_in_kb; |
---|
| 36 | + __u16 resrvd3; |
---|
| 37 | + }; |
---|
| 38 | + __u32 idle_filter; |
---|
| 39 | + }; |
---|
| 40 | + |
---|
| 41 | + __u32 resrvd4; |
---|
101 | 42 | }; |
---|
102 | 43 | |
---|
103 | 44 | struct icp_qat_fw_init_admin_resp { |
---|
104 | | - struct icp_qat_fw_init_admin_resp_hdr init_resp_hdr; |
---|
| 45 | + __u8 flags; |
---|
| 46 | + __u8 resrvd1; |
---|
| 47 | + __u8 status; |
---|
| 48 | + __u8 cmd_id; |
---|
105 | 49 | union { |
---|
106 | | - uint32_t resrvd2; |
---|
| 50 | + __u32 resrvd2; |
---|
107 | 51 | struct { |
---|
108 | | - uint16_t version_minor_num; |
---|
109 | | - uint16_t version_major_num; |
---|
110 | | - } s; |
---|
111 | | - } u; |
---|
112 | | - uint64_t opaque_data; |
---|
113 | | - struct icp_qat_fw_init_admin_resp_pars init_resp_pars; |
---|
| 52 | + __u16 version_minor_num; |
---|
| 53 | + __u16 version_major_num; |
---|
| 54 | + }; |
---|
| 55 | + }; |
---|
| 56 | + __u64 opaque_data; |
---|
| 57 | + union { |
---|
| 58 | + __u32 resrvd3[ICP_QAT_FW_NUM_LONGWORDS_4]; |
---|
| 59 | + struct { |
---|
| 60 | + __u32 version_patch_num; |
---|
| 61 | + __u8 context_id; |
---|
| 62 | + __u8 ae_id; |
---|
| 63 | + __u16 resrvd4; |
---|
| 64 | + __u64 resrvd5; |
---|
| 65 | + }; |
---|
| 66 | + struct { |
---|
| 67 | + __u64 req_rec_count; |
---|
| 68 | + __u64 resp_sent_count; |
---|
| 69 | + }; |
---|
| 70 | + struct { |
---|
| 71 | + __u16 compression_algos; |
---|
| 72 | + __u16 checksum_algos; |
---|
| 73 | + __u32 deflate_capabilities; |
---|
| 74 | + __u32 resrvd6; |
---|
| 75 | + __u32 lzs_capabilities; |
---|
| 76 | + }; |
---|
| 77 | + struct { |
---|
| 78 | + __u32 cipher_algos; |
---|
| 79 | + __u32 hash_algos; |
---|
| 80 | + __u16 keygen_algos; |
---|
| 81 | + __u16 other; |
---|
| 82 | + __u16 public_key_algos; |
---|
| 83 | + __u16 prime_algos; |
---|
| 84 | + }; |
---|
| 85 | + struct { |
---|
| 86 | + __u64 timestamp; |
---|
| 87 | + __u64 resrvd7; |
---|
| 88 | + }; |
---|
| 89 | + struct { |
---|
| 90 | + __u32 successful_count; |
---|
| 91 | + __u32 unsuccessful_count; |
---|
| 92 | + __u64 resrvd8; |
---|
| 93 | + }; |
---|
| 94 | + }; |
---|
114 | 95 | }; |
---|
115 | 96 | |
---|
116 | 97 | #define ICP_QAT_FW_COMN_HEARTBEAT_OK 0 |
---|