From 1c055e55a242a33e574e48be530e06770a210dcd Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 19 Feb 2024 03:26:26 +0000
Subject: [PATCH] add r8169 read mac form eeprom

---
 kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/include/rte_ioctl.h |   33 ++++++++++++++++++++++++++-------
 1 files changed, 26 insertions(+), 7 deletions(-)

diff --git a/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/include/rte_ioctl.h b/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/include/rte_ioctl.h
index 83bbb09..c69b57a 100644
--- a/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/include/rte_ioctl.h
+++ b/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/include/rte_ioctl.h
@@ -1,15 +1,16 @@
-/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * HND Run Time Environment ioctl.
  *
- * Copyright (C) 1999-2019, Broadcom Corporation
- * 
+ * Portions of this code are copyright (c) 2022 Cypress Semiconductor Corporation
+ *
+ * Copyright (C) 1999-2017, Broadcom Corporation
+ *
  *      Unless you and Broadcom execute a separate written software license
  * agreement governing use of this software, this software is licensed to you
  * under the terms of the GNU General Public License version 2 (the "GPL"),
  * available at http://www.broadcom.com/licenses/GPLv2.php, with the
  * following added to such license:
- * 
+ *
  *      As a special exception, the copyright holders of this software give you
  * permission to link this software with independent modules, and to copy and
  * distribute the resulting executable under terms of your choice, provided that
@@ -17,7 +18,7 @@
  * the license of that module.  An independent module is a module which is not
  * derived from this software.  The special exception does not apply to any
  * modifications of the software.
- * 
+ *
  *      Notwithstanding the above, under no circumstances may you combine this
  * software in any way with any other Broadcom software provided under a license
  * other than the GPL, without Broadcom's express prior written consent.
@@ -25,7 +26,7 @@
  *
  * <<Broadcom-WL-IPTag/Open:>>
  *
- * $Id: rte_ioctl.h 514727 2014-11-12 03:02:48Z $
+ * $Id: rte_ioctl.h 699094 2017-05-11 22:41:10Z $
  */
 
 #ifndef _rte_ioctl_h_
@@ -45,6 +46,12 @@
 #define RTEGPERMADDR		0x890B
 #define RTEDEVPWRSTCHG		0x890C	/* Device pwr state change for PCIedev */
 #define RTEDEVPMETOGGLE		0x890D	/* Toggle PME# to wake up the host */
+#define RTEDEVTIMESYNC		0x890E	/* Device TimeSync */
+#define RTEDEVDSNOTIFY		0x890F	/* Bus DS state notification */
+#define RTED11DMALPBK_INIT	0x8910	/* D11 DMA loopback init */
+#define RTED11DMALPBK_UNINIT	0x8911	/* D11 DMA loopback uninit */
+#define RTED11DMALPBK_RUN	0x8912	/* D11 DMA loopback run */
+#define RTEDEVTSBUFPOST		0x8913	/* Async interface for tsync buffer post */
 
 #define RTE_IOCTL_QUERY			0x00
 #define RTE_IOCTL_SET			0x01
@@ -62,10 +69,15 @@
 	BUS_FLUSH_RXREORDER_Q = 4,
 	BUS_SET_LTR_STATE = 5,
 	BUS_FLUSH_CHAINED_PKTS = 6,
-	BUS_SET_COPY_COUNT = 7
+	BUS_SET_COPY_COUNT = 7,
+	BUS_UPDATE_FLOW_PKTS_MAX = 8,
+	BUS_UPDATE_EXTRA_TXLFRAGS = 9,
+	BUS_UPDATE_FRWD_RESRV_BUFCNT = 10,
+	BUS_PCIE_CONFIG_ACCESS = 11
 };
 
 #define SDPCMDEV_SET_MAXTXPKTGLOM	1
+#define RTE_MEMUSEINFO_VER 0x00
 
 typedef struct memuse_info {
 	uint16 ver;			/* version of this struct */
@@ -81,6 +93,13 @@
 	uint32 inuse_hwm;	/* High watermark of memory - reclaimed memory */
 	uint32 inuse_overhead;	/* tally of allocated mem_t blocks */
 	uint32 inuse_total;	/* Heap in-use + Heap overhead memory  */
+	uint32 free_lwm;        /* Least free size since reclaim */
+	uint32 mf_count;        /* Malloc failure count */
 } memuse_info_t;
 
+/* For D11 DMA loopback test */
+typedef struct d11_dmalpbk_args {
+	uint8 *buf;
+	int32 len;
+} d11_dmalpbk_args_t;
 #endif /* _rte_ioctl_h_ */

--
Gitblit v1.6.2