| 506 | CVMX_BUILD_READ64(uint8, "lbu"); |
| 507 | |
| 508 | static inline void cvmx_write_csr(uint64_t csr_addr, uint64_t val) |
| 509 | { |
| 510 | cvmx_write64_uint64(csr_addr, val); |
| 511 | |
| 512 | /* Perform an immediate read after every write to an RSL register to force |
| 513 | the write to complete. It doesn't matter what RSL read we do, so we |
| 514 | choose CVMX_MIO_BOOT_BIST_STAT because it is fast and harmless */ |
| 515 | if (((csr_addr >> 40) & 0x7ffff) == (0x118)) |
| 516 | cvmx_read64_uint64(CVMX_MIO_BOOT_BIST_STAT); |
| 517 | } |
| 518 | |
| 519 | static inline void cvmx_write_io(uint64_t io_addr, uint64_t val) |
| 520 | { |
no outgoing calls
no test coverage detected