Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2)  * Copyright (c) 2006 - 2016 Intel Corporation.  All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  * Copyright (c) 2005 Topspin Communications.  All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  * Copyright (c) 2005 Cisco Systems.  All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  * Copyright (c) 2005 Open Grid Computing, Inc. All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  * This software is available to you under a choice of one of two
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8)  * licenses.  You may choose to be licensed under the terms of the GNU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9)  * General Public License (GPL) Version 2, available from the file
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10)  * COPYING in the main directory of this source tree, or the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11)  * OpenIB.org BSD license below:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13)  *     Redistribution and use in source and binary forms, with or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14)  *     without modification, are permitted provided that the following
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15)  *     conditions are met:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17)  *      - Redistributions of source code must retain the above
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18)  *        copyright notice, this list of conditions and the following
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19)  *        disclaimer.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21)  *      - Redistributions in binary form must reproduce the above
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22)  *        copyright notice, this list of conditions and the following
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23)  *        disclaimer in the documentation and/or other materials
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24)  *        provided with the distribution.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26)  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27)  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28)  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29)  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30)  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31)  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32)  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33)  * SOFTWARE.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) #ifndef I40IW_ABI_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) #define I40IW_ABI_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) #define I40IW_ABI_VER 5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) struct i40iw_alloc_ucontext_req {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 	__u32 reserved32;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 	__u8 userspace_ver;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) 	__u8 reserved8[3];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) struct i40iw_alloc_ucontext_resp {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 	__u32 max_pds;		/* maximum pds allowed for this user process */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 	__u32 max_qps;		/* maximum qps allowed for this user process */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) 	__u32 wq_size;		/* size of the WQs (sq+rq) allocated to the mmaped area */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	__u8 kernel_ver;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 	__u8 reserved[3];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) struct i40iw_alloc_pd_resp {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 	__u32 pd_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 	__u8 reserved[4];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) struct i40iw_create_cq_req {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 	__aligned_u64 user_cq_buffer;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 	__aligned_u64 user_shadow_area;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) struct i40iw_create_qp_req {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 	__aligned_u64 user_wqe_buffers;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 	__aligned_u64 user_compl_ctx;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 	/* UDA QP PHB */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 	__aligned_u64 user_sq_phb;	/* place for VA of the sq phb buff */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 	__aligned_u64 user_rq_phb;	/* place for VA of the rq phb buff */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) enum i40iw_memreg_type {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 	IW_MEMREG_TYPE_MEM = 0x0000,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 	IW_MEMREG_TYPE_QP = 0x0001,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 	IW_MEMREG_TYPE_CQ = 0x0002,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) struct i40iw_mem_reg_req {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 	__u16 reg_type;		/* Memory, QP or CQ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 	__u16 cq_pages;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 	__u16 rq_pages;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 	__u16 sq_pages;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) struct i40iw_create_cq_resp {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 	__u32 cq_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 	__u32 cq_size;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 	__u32 mmap_db_index;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 	__u32 reserved;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) struct i40iw_create_qp_resp {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 	__u32 qp_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 	__u32 actual_sq_size;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 	__u32 actual_rq_size;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 	__u32 i40iw_drv_opt;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 	__u16 push_idx;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 	__u8  lsmm;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 	__u8  rsvd2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) #endif