X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcommon%2Fcnxk%2Froc_io_generic.h;h=42764455cc984ca0519c561e1c9400b265d9a7f6;hb=1f997c06c3a2d8831754d6445c5d28b0efb8f97d;hp=c1689b6f83fc5aa6d8a2d0ec547ddf8b3ff9c33c;hpb=014a9e222bac8763dbc2f635383d1d5c81598ff5;p=dpdk.git diff --git a/drivers/common/cnxk/roc_io_generic.h b/drivers/common/cnxk/roc_io_generic.h index c1689b6f83..42764455cc 100644 --- a/drivers/common/cnxk/roc_io_generic.h +++ b/drivers/common/cnxk/roc_io_generic.h @@ -5,7 +5,8 @@ #ifndef _ROC_IO_GENERIC_H_ #define _ROC_IO_GENERIC_H_ -#define ROC_LMT_BASE_ID_GET(lmt_addr, lmt_id) (lmt_id = 0) +#define ROC_LMT_BASE_ID_GET(lmt_addr, lmt_id) (lmt_id = 0) +#define ROC_LMT_CPT_BASE_ID_GET(lmt_addr, lmt_id) (lmt_id = 0) #define roc_load_pair(val0, val1, addr) \ do { \ @@ -40,6 +41,15 @@ roc_atomic64_cas(uint64_t compare, uint64_t swap, int64_t *ptr) return compare; } +static __plt_always_inline uint64_t +roc_atomic64_casl(uint64_t compare, uint64_t swap, int64_t *ptr) +{ + PLT_SET_USED(swap); + PLT_SET_USED(ptr); + + return compare; +} + static inline uint64_t roc_atomic64_add_nosync(int64_t incr, int64_t *ptr) { @@ -96,6 +106,21 @@ roc_lmt_mov(void *out, const void *in, const uint32_t lmtext) memset(out, 0, sizeof(__uint128_t) * (lmtext ? lmtext > 1 ? 4 : 3 : 2)); } +static __plt_always_inline void +roc_lmt_mov64(void *out, const void *in) +{ + PLT_SET_USED(out); + PLT_SET_USED(in); +} + +static __plt_always_inline void +roc_lmt_mov_nv(void *out, const void *in, const uint32_t lmtext) +{ + PLT_SET_USED(in); + PLT_SET_USED(lmtext); + memset(out, 0, sizeof(__uint128_t) * (lmtext ? lmtext > 1 ? 4 : 3 : 2)); +} + static __plt_always_inline void roc_lmt_mov_seg(void *out, const void *in, const uint16_t segdw) { @@ -119,4 +144,9 @@ roc_lmt_mov_seg_nv(void *out, const void *in, const uint16_t segdw) PLT_SET_USED(segdw); } +static __plt_always_inline void +roc_atf_ret(void) +{ +} + #endif /* _ROC_IO_GENERIC_H_ */