forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/mips/include/asm/octeon/cvmx-wqe.h
....@@ -547,7 +547,7 @@
547547 *
548548 * must be 8-byte aligned
549549 */
550
-typedef struct {
550
+struct cvmx_wqe {
551551
552552 /*****************************************************************
553553 * WORD 0
....@@ -593,9 +593,9 @@
593593 *
594594 */
595595
596
-} CVMX_CACHE_LINE_ALIGNED cvmx_wqe_t;
596
+} CVMX_CACHE_LINE_ALIGNED;
597597
598
-static inline int cvmx_wqe_get_port(cvmx_wqe_t *work)
598
+static inline int cvmx_wqe_get_port(struct cvmx_wqe *work)
599599 {
600600 int port;
601601
....@@ -607,7 +607,7 @@
607607 return port;
608608 }
609609
610
-static inline void cvmx_wqe_set_port(cvmx_wqe_t *work, int port)
610
+static inline void cvmx_wqe_set_port(struct cvmx_wqe *work, int port)
611611 {
612612 if (octeon_has_feature(OCTEON_FEATURE_CN68XX_WQE))
613613 work->word2.s_cn68xx.port = port;
....@@ -615,7 +615,7 @@
615615 work->word1.cn38xx.ipprt = port;
616616 }
617617
618
-static inline int cvmx_wqe_get_grp(cvmx_wqe_t *work)
618
+static inline int cvmx_wqe_get_grp(struct cvmx_wqe *work)
619619 {
620620 int grp;
621621
....@@ -627,7 +627,7 @@
627627 return grp;
628628 }
629629
630
-static inline void cvmx_wqe_set_grp(cvmx_wqe_t *work, int grp)
630
+static inline void cvmx_wqe_set_grp(struct cvmx_wqe *work, int grp)
631631 {
632632 if (octeon_has_feature(OCTEON_FEATURE_CN68XX_WQE))
633633 work->word1.cn68xx.grp = grp;
....@@ -635,7 +635,7 @@
635635 work->word1.cn38xx.grp = grp;
636636 }
637637
638
-static inline int cvmx_wqe_get_qos(cvmx_wqe_t *work)
638
+static inline int cvmx_wqe_get_qos(struct cvmx_wqe *work)
639639 {
640640 int qos;
641641
....@@ -647,7 +647,7 @@
647647 return qos;
648648 }
649649
650
-static inline void cvmx_wqe_set_qos(cvmx_wqe_t *work, int qos)
650
+static inline void cvmx_wqe_set_qos(struct cvmx_wqe *work, int qos)
651651 {
652652 if (octeon_has_feature(OCTEON_FEATURE_CN68XX_WQE))
653653 work->word1.cn68xx.qos = qos;