Commit ecb917ae authored by Michel Arruat's avatar Michel Arruat Committed by Adam Wujek

liblinux:libdevmap define two macros to handle endianness

Signed-off-by: Michel Arruat's avatarMichel Arruat <michel.arruat@cern.ch>
parent cc0a65be
......@@ -7,6 +7,9 @@
#include <stdint.h>
#define iomemr32(is_be, val) ((is_be) ? ntohl(val) : val)
#define iomemw32(is_be, val) ((is_be) ? htonl(val) : val)
struct mapping_args {
char *resource_file;
uint64_t offset;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment