MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cvmx_write_csr

Function cvmx_write_csr

freebsd/contrib/octeon-sdk/cvmx-access-native.h:508–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506CVMX_BUILD_READ64(uint8, "lbu");
507
508static 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
519static inline void cvmx_write_io(uint64_t io_addr, uint64_t val)
520{

Callers 15

cvmx_l2c_config_perfFunction · 0.85
cvmx_l2c_lock_lineFunction · 0.85
cvmx_l2c_flush_lineFunction · 0.85
cvmx_l2c_set_big_sizeFunction · 0.85
cvmx_l2c_vrt_memprotectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected