00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __OSKA_UTIL_H
00010 #define __OSKA_UTIL_H
00011
00012 #include <oska/types.h>
00013
00014 #ifdef __OSKA_API_DOC
00015
00027 void OS_ASSERT(expression);
00028
00039 uint16_t os_cpu_to_le16(uint16_t x);
00040
00051 uint16_t os_le16_to_cpu(uint16_t x);
00052
00063 uint32_t os_cpu_to_le32(uint32_t x);
00064
00075 uint32_t os_le32_to_cpu(uint32_t x);
00076
00087 uint64_t os_cpu_to_le64(uint64_t x);
00088
00099 uint64_t os_le64_to_cpu(uint64_t x);
00100
00101 #endif
00102
00103 #ifdef linux
00104 # include <../linux/util.h>
00105 #elif defined(ZSDE)
00106 # include <../zoran/util.h>
00107 #elif defined(KMDF_MAJOR_VERSION)
00108 # include <../windows/kmdf/util.h>
00109 #else
00110 # error <oska/util.h> not provided for this OS
00111 #endif
00112
00113 #endif