forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/include/rte_ioctl.h
....@@ -1,15 +1,16 @@
1
-/* SPDX-License-Identifier: GPL-2.0 */
21 /*
32 * HND Run Time Environment ioctl.
43 *
5
- * Copyright (C) 1999-2019, Broadcom Corporation
6
- *
4
+ * Portions of this code are copyright (c) 2022 Cypress Semiconductor Corporation
5
+ *
6
+ * Copyright (C) 1999-2017, Broadcom Corporation
7
+ *
78 * Unless you and Broadcom execute a separate written software license
89 * agreement governing use of this software, this software is licensed to you
910 * under the terms of the GNU General Public License version 2 (the "GPL"),
1011 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
1112 * following added to such license:
12
- *
13
+ *
1314 * As a special exception, the copyright holders of this software give you
1415 * permission to link this software with independent modules, and to copy and
1516 * distribute the resulting executable under terms of your choice, provided that
....@@ -17,7 +18,7 @@
1718 * the license of that module. An independent module is a module which is not
1819 * derived from this software. The special exception does not apply to any
1920 * modifications of the software.
20
- *
21
+ *
2122 * Notwithstanding the above, under no circumstances may you combine this
2223 * software in any way with any other Broadcom software provided under a license
2324 * other than the GPL, without Broadcom's express prior written consent.
....@@ -25,7 +26,7 @@
2526 *
2627 * <<Broadcom-WL-IPTag/Open:>>
2728 *
28
- * $Id: rte_ioctl.h 514727 2014-11-12 03:02:48Z $
29
+ * $Id: rte_ioctl.h 699094 2017-05-11 22:41:10Z $
2930 */
3031
3132 #ifndef _rte_ioctl_h_
....@@ -45,6 +46,12 @@
4546 #define RTEGPERMADDR 0x890B
4647 #define RTEDEVPWRSTCHG 0x890C /* Device pwr state change for PCIedev */
4748 #define RTEDEVPMETOGGLE 0x890D /* Toggle PME# to wake up the host */
49
+#define RTEDEVTIMESYNC 0x890E /* Device TimeSync */
50
+#define RTEDEVDSNOTIFY 0x890F /* Bus DS state notification */
51
+#define RTED11DMALPBK_INIT 0x8910 /* D11 DMA loopback init */
52
+#define RTED11DMALPBK_UNINIT 0x8911 /* D11 DMA loopback uninit */
53
+#define RTED11DMALPBK_RUN 0x8912 /* D11 DMA loopback run */
54
+#define RTEDEVTSBUFPOST 0x8913 /* Async interface for tsync buffer post */
4855
4956 #define RTE_IOCTL_QUERY 0x00
5057 #define RTE_IOCTL_SET 0x01
....@@ -62,10 +69,15 @@
6269 BUS_FLUSH_RXREORDER_Q = 4,
6370 BUS_SET_LTR_STATE = 5,
6471 BUS_FLUSH_CHAINED_PKTS = 6,
65
- BUS_SET_COPY_COUNT = 7
72
+ BUS_SET_COPY_COUNT = 7,
73
+ BUS_UPDATE_FLOW_PKTS_MAX = 8,
74
+ BUS_UPDATE_EXTRA_TXLFRAGS = 9,
75
+ BUS_UPDATE_FRWD_RESRV_BUFCNT = 10,
76
+ BUS_PCIE_CONFIG_ACCESS = 11
6677 };
6778
6879 #define SDPCMDEV_SET_MAXTXPKTGLOM 1
80
+#define RTE_MEMUSEINFO_VER 0x00
6981
7082 typedef struct memuse_info {
7183 uint16 ver; /* version of this struct */
....@@ -81,6 +93,13 @@
8193 uint32 inuse_hwm; /* High watermark of memory - reclaimed memory */
8294 uint32 inuse_overhead; /* tally of allocated mem_t blocks */
8395 uint32 inuse_total; /* Heap in-use + Heap overhead memory */
96
+ uint32 free_lwm; /* Least free size since reclaim */
97
+ uint32 mf_count; /* Malloc failure count */
8498 } memuse_info_t;
8599
100
+/* For D11 DMA loopback test */
101
+typedef struct d11_dmalpbk_args {
102
+ uint8 *buf;
103
+ int32 len;
104
+} d11_dmalpbk_args_t;
86105 #endif /* _rte_ioctl_h_ */