.. | .. |
---|
40 | 40 | * generic code while CVMX_PKO_LOCK_CMD_QUEUE should be used |
---|
41 | 41 | * with hand tuned fast path code. |
---|
42 | 42 | * |
---|
43 | | - * Some of other SDK differences visible to the command command |
---|
44 | | - * queuing: |
---|
| 43 | + * Some of other SDK differences visible to the command queuing: |
---|
45 | 44 | * - PKO indexes are no longer stored in the FAU. A large |
---|
46 | 45 | * percentage of the FAU register block used to be tied up |
---|
47 | 46 | * maintaining PKO queue pointers. These are now stored in a |
---|
.. | .. |
---|
169 | 168 | /** |
---|
170 | 169 | * Structure of the first packet output command word. |
---|
171 | 170 | */ |
---|
172 | | -typedef union { |
---|
| 171 | +union cvmx_pko_command_word0 { |
---|
173 | 172 | uint64_t u64; |
---|
174 | 173 | struct { |
---|
175 | 174 | #ifdef __BIG_ENDIAN_BITFIELD |
---|
.. | .. |
---|
261 | 260 | uint64_t size1:2; |
---|
262 | 261 | #endif |
---|
263 | 262 | } s; |
---|
264 | | -} cvmx_pko_command_word0_t; |
---|
| 263 | +}; |
---|
265 | 264 | |
---|
266 | 265 | /* CSR typedefs have been moved to cvmx-csr-*.h */ |
---|
267 | 266 | |
---|
.. | .. |
---|
394 | 393 | CVMX_TAG_SW_BITS_INTERNAL << CVMX_TAG_SW_SHIFT | |
---|
395 | 394 | CVMX_TAG_SUBGROUP_PKO << CVMX_TAG_SUBGROUP_SHIFT | |
---|
396 | 395 | (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, |
---|
398 | 397 | CVMX_POW_TAG_TYPE_ATOMIC, 0); |
---|
399 | 398 | } |
---|
400 | 399 | } |
---|
.. | .. |
---|
413 | 412 | * @use_locking: CVMX_PKO_LOCK_NONE, CVMX_PKO_LOCK_ATOMIC_TAG, or |
---|
414 | 413 | * CVMX_PKO_LOCK_CMD_QUEUE |
---|
415 | 414 | * |
---|
416 | | - * Returns returns CVMX_PKO_SUCCESS on success, or error code on |
---|
| 415 | + * Returns: CVMX_PKO_SUCCESS on success, or error code on |
---|
417 | 416 | * failure of output |
---|
418 | 417 | */ |
---|
419 | 418 | static inline cvmx_pko_status_t cvmx_pko_send_packet_finish( |
---|
420 | 419 | uint64_t port, |
---|
421 | 420 | uint64_t queue, |
---|
422 | | - cvmx_pko_command_word0_t pko_command, |
---|
| 421 | + union cvmx_pko_command_word0 pko_command, |
---|
423 | 422 | union cvmx_buf_ptr packet, |
---|
424 | 423 | cvmx_pko_lock_t use_locking) |
---|
425 | 424 | { |
---|
.. | .. |
---|
456 | 455 | * @use_locking: CVMX_PKO_LOCK_NONE, CVMX_PKO_LOCK_ATOMIC_TAG, or |
---|
457 | 456 | * CVMX_PKO_LOCK_CMD_QUEUE |
---|
458 | 457 | * |
---|
459 | | - * Returns returns CVMX_PKO_SUCCESS on success, or error code on |
---|
| 458 | + * Returns: CVMX_PKO_SUCCESS on success, or error code on |
---|
460 | 459 | * failure of output |
---|
461 | 460 | */ |
---|
462 | 461 | static inline cvmx_pko_status_t cvmx_pko_send_packet_finish3( |
---|
463 | 462 | uint64_t port, |
---|
464 | 463 | uint64_t queue, |
---|
465 | | - cvmx_pko_command_word0_t pko_command, |
---|
| 464 | + union cvmx_pko_command_word0 pko_command, |
---|
466 | 465 | union cvmx_buf_ptr packet, |
---|
467 | 466 | uint64_t addr, |
---|
468 | 467 | cvmx_pko_lock_t use_locking) |
---|