#ifndef __FSL_MC_CMD_H
#define __FSL_MC_CMD_H
-#include <rte_byteorder.h>
#include <stdint.h>
+#include <rte_byteorder.h>
+#include <rte_compat.h>
+
#define MC_CMD_NUM_OF_PARAMS 7
#define phys_addr_t uint64_t
#define le32_to_cpu rte_le_to_cpu_32
#define le16_to_cpu rte_le_to_cpu_16
-#define BITS_PER_LONG 64
+#define BITS_PER_LONG (__SIZEOF_LONG__ * 8)
#define GENMASK(h, l) \
(((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
#define MC_CMD_HDR_FLAGS_MASK 0xFF00FF00
+__rte_internal
int mc_send_command(struct fsl_mc_io *mc_io, struct mc_command *cmd);
static inline uint64_t mc_encode_cmd_header(uint16_t cmd_id,