32 #ifndef __CVMX_FAU_H__
33 #define __CVMX_FAU_H__
39 #define CVMX_FAU_LOAD_IO_ADDRESS cvmx_build_io_address(0x1e, 0)
40 #define CVMX_FAU_BITS_SCRADDR 63, 56
41 #define CVMX_FAU_BITS_LEN 55, 48
42 #define CVMX_FAU_BITS_INEVAL 35, 14
43 #define CVMX_FAU_BITS_TAGWAIT 13, 13
44 #define CVMX_FAU_BITS_NOADD 13, 13
45 #define CVMX_FAU_BITS_SIZE 12, 11
46 #define CVMX_FAU_BITS_REGISTER 10, 0
163 return cvmx_read64_int64(__cvmx_fau_atomic_address(0, reg, value));
178 return cvmx_read64_int32(__cvmx_fau_atomic_address(0, reg, value));
192 return cvmx_read64_int16(__cvmx_fau_atomic_address(0, reg, value));
204 return cvmx_read64_int8(__cvmx_fau_atomic_address(0, reg, value));
227 cvmx_read64_int64(__cvmx_fau_atomic_address(1, reg, value));
251 cvmx_read64_int32(__cvmx_fau_atomic_address(1, reg, value));
274 cvmx_read64_int16(__cvmx_fau_atomic_address(1, reg, value));
295 result.i8 = cvmx_read64_int8(__cvmx_fau_atomic_address(1, reg, value));
321 static inline uint64_t __cvmx_fau_iobdma_data(
uint64_t scraddr, int64_t value,
347 static inline void cvmx_fau_async_fetch_and_add64(
uint64_t scraddr,
351 cvmx_send_single(__cvmx_fau_iobdma_data
367 static inline void cvmx_fau_async_fetch_and_add32(
uint64_t scraddr,
371 cvmx_send_single(__cvmx_fau_iobdma_data
386 static inline void cvmx_fau_async_fetch_and_add16(
uint64_t scraddr,
390 cvmx_send_single(__cvmx_fau_iobdma_data
404 static inline void cvmx_fau_async_fetch_and_add8(
uint64_t scraddr,
408 cvmx_send_single(__cvmx_fau_iobdma_data
427 static inline void cvmx_fau_async_tagwait_fetch_and_add64(
uint64_t scraddr,
431 cvmx_send_single(__cvmx_fau_iobdma_data
450 static inline void cvmx_fau_async_tagwait_fetch_and_add32(
uint64_t scraddr,
454 cvmx_send_single(__cvmx_fau_iobdma_data
473 static inline void cvmx_fau_async_tagwait_fetch_and_add16(
uint64_t scraddr,
477 cvmx_send_single(__cvmx_fau_iobdma_data
495 static inline void cvmx_fau_async_tagwait_fetch_and_add8(
uint64_t scraddr,
499 cvmx_send_single(__cvmx_fau_iobdma_data
512 cvmx_write64_int64(__cvmx_fau_store_address(0, reg), value);
524 cvmx_write64_int32(__cvmx_fau_store_address(0, reg), value);
536 cvmx_write64_int16(__cvmx_fau_store_address(0, reg), value);
547 cvmx_write64_int8(__cvmx_fau_store_address(0, reg), value);
559 cvmx_write64_int64(__cvmx_fau_store_address(1, reg), value);
571 cvmx_write64_int32(__cvmx_fau_store_address(1, reg), value);
583 cvmx_write64_int16(__cvmx_fau_store_address(1, reg), value);
594 cvmx_write64_int8(__cvmx_fau_store_address(1, reg), value);