I am writing a User Space mapped application using /dev/mem. Is there some function in the Linux kernel that does the equivalent of le32_to_cpu from user space ?
Is there an alternate method to achieve this ?
RRS
P.S: I am cross-compiling this application for an embedded board (Xilinx Microblaze running Linux)
Use
#include <endian.h>and the macrole32toh()from this header.