forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/include/aidmp.h
....@@ -1,15 +1,16 @@
1
-/* SPDX-License-Identifier: GPL-2.0 */
21 /*
32 * Broadcom AMBA Interconnect definitions.
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: aidmp.h 514727 2014-11-12 03:02:48Z $
29
+ * $Id: aidmp.h 617751 2016-02-08 09:04:22Z $
2930 */
3031
3132 #ifndef _AIDMP_H
....@@ -114,7 +115,6 @@
114115 #define SD_SZ_MASK 0xfffff000
115116 #define SD_SG32 0x00000008
116117 #define SD_SZ_ALIGN 0x00000fff
117
-
118118
119119 #if !defined(_LANGUAGE_ASSEMBLY) && !defined(__ASSEMBLY__)
120120
....@@ -308,7 +308,6 @@
308308 #define AI_OOBDINWIDTH 0x364
309309 #define AI_OOBDOUTWIDTH 0x368
310310
311
-
312311 #define AI_IOCTRLSET 0x400
313312 #define AI_IOCTRLCLEAR 0x404
314313 #define AI_IOCTRL 0x408
....@@ -374,7 +373,22 @@
374373 #define AIELD_ERRDONE_MASK 0x3
375374
376375 /* errlogstatus */
377
-#define AIELS_TIMEOUT_MASK 0x3
376
+#define AIELS_SLAVE_ERR 0x1
377
+#define AIELS_TIMEOUT 0x2
378
+#define AIELS_DECODE 0x3
379
+#define AIELS_TIMEOUT_MASK 0x3
380
+
381
+/* errorlog status bit map, for SW use */
382
+#define AXI_WRAP_STS_NONE (0)
383
+#define AXI_WRAP_STS_TIMEOUT (1<<0)
384
+#define AXI_WRAP_STS_SLAVE_ERR (1<<1)
385
+#define AXI_WRAP_STS_DECODE_ERR (1<<2)
386
+#define AXI_WRAP_STS_PCI_RD_ERR (1<<3)
387
+#define AXI_WRAP_STS_WRAP_RD_ERR (1<<4)
388
+#define AXI_WRAP_STS_SET_CORE_FAIL (1<<5)
389
+
390
+/* errlogFrags */
391
+#define AXI_ERRLOG_FLAGS_WRITE_REQ (1<<24)
378392
379393 /* config */
380394 #define AICFG_OOB 0x00000020
....@@ -400,4 +414,18 @@
400414 #define AI_OOBSEL_7_SHIFT 24
401415 #define AI_IOCTRL_ENABLE_D11_PME (1 << 14)
402416
417
+/* bit Specific for AI_OOBSELOUTB30 */
418
+#define OOB_B_ALP_REQUEST 0
419
+#define OOB_B_HT_REQUEST 1
420
+#define OOB_B_ILP_REQUEST 2
421
+#define OOB_B_ALP_AVAIL_REQUEST 3
422
+#define OOB_B_HT_AVAIL_REQUEST 4
423
+
424
+/* mask for interrupts from each core to wrapper */
425
+#define AI_OOBSELINA74_CORE_MASK 0x80808080
426
+#define AI_OOBSELINA30_CORE_MASK 0x80808080
427
+
428
+/* axi id mask in the error log id */
429
+#define AI_ERRLOGID_AXI_ID_MASK 0x07
430
+
403431 #endif /* _AIDMP_H */