app/testpmd: record Rx and dropped stats in flowgen
[dpdk.git] / drivers / bus / fslmc / mc / fsl_mc_cmd.h
index a3c3e79..a768774 100644 (file)
@@ -7,9 +7,11 @@
 #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
@@ -27,7 +29,7 @@
 #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))))
 
@@ -80,6 +82,7 @@ enum mc_cmd_status {
 
 #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,