forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/mips/include/asm/octeon/cvmx-pko.h
....@@ -40,8 +40,7 @@
4040 * generic code while CVMX_PKO_LOCK_CMD_QUEUE should be used
4141 * with hand tuned fast path code.
4242 *
43
- * Some of other SDK differences visible to the command command
44
- * queuing:
43
+ * Some of other SDK differences visible to the command queuing:
4544 * - PKO indexes are no longer stored in the FAU. A large
4645 * percentage of the FAU register block used to be tied up
4746 * maintaining PKO queue pointers. These are now stored in a
....@@ -169,7 +168,7 @@
169168 /**
170169 * Structure of the first packet output command word.
171170 */
172
-typedef union {
171
+union cvmx_pko_command_word0 {
173172 uint64_t u64;
174173 struct {
175174 #ifdef __BIG_ENDIAN_BITFIELD
....@@ -261,7 +260,7 @@
261260 uint64_t size1:2;
262261 #endif
263262 } s;
264
-} cvmx_pko_command_word0_t;
263
+};
265264
266265 /* CSR typedefs have been moved to cvmx-csr-*.h */
267266
....@@ -394,7 +393,7 @@
394393 CVMX_TAG_SW_BITS_INTERNAL << CVMX_TAG_SW_SHIFT |
395394 CVMX_TAG_SUBGROUP_PKO << CVMX_TAG_SUBGROUP_SHIFT |
396395 (CVMX_TAG_SUBGROUP_MASK & queue);
397
- cvmx_pow_tag_sw_full((cvmx_wqe_t *) cvmx_phys_to_ptr(0x80), tag,
396
+ cvmx_pow_tag_sw_full((struct cvmx_wqe *) cvmx_phys_to_ptr(0x80), tag,
398397 CVMX_POW_TAG_TYPE_ATOMIC, 0);
399398 }
400399 }
....@@ -413,13 +412,13 @@
413412 * @use_locking: CVMX_PKO_LOCK_NONE, CVMX_PKO_LOCK_ATOMIC_TAG, or
414413 * CVMX_PKO_LOCK_CMD_QUEUE
415414 *
416
- * Returns returns CVMX_PKO_SUCCESS on success, or error code on
415
+ * Returns: CVMX_PKO_SUCCESS on success, or error code on
417416 * failure of output
418417 */
419418 static inline cvmx_pko_status_t cvmx_pko_send_packet_finish(
420419 uint64_t port,
421420 uint64_t queue,
422
- cvmx_pko_command_word0_t pko_command,
421
+ union cvmx_pko_command_word0 pko_command,
423422 union cvmx_buf_ptr packet,
424423 cvmx_pko_lock_t use_locking)
425424 {
....@@ -456,13 +455,13 @@
456455 * @use_locking: CVMX_PKO_LOCK_NONE, CVMX_PKO_LOCK_ATOMIC_TAG, or
457456 * CVMX_PKO_LOCK_CMD_QUEUE
458457 *
459
- * Returns returns CVMX_PKO_SUCCESS on success, or error code on
458
+ * Returns: CVMX_PKO_SUCCESS on success, or error code on
460459 * failure of output
461460 */
462461 static inline cvmx_pko_status_t cvmx_pko_send_packet_finish3(
463462 uint64_t port,
464463 uint64_t queue,
465
- cvmx_pko_command_word0_t pko_command,
464
+ union cvmx_pko_command_word0 pko_command,
466465 union cvmx_buf_ptr packet,
467466 uint64_t addr,
468467 cvmx_pko_lock_t use_locking)