Commit 9a69706b authored by Charlie Jacobsen's avatar Charlie Jacobsen
Browse files

lcd: Add internal and platform-specific headers.

parent 915880ff
......@@ -8,8 +8,7 @@
*/
#include <libfipc.h>
abcdef
#include <libfipc_internal.h>
#define FIPC_MSG_STATUS_AVAILABLE 0xdeaddeadUL
#define FIPC_MSG_STATUS_SENT 0xfeedfeedUL
......@@ -133,7 +132,6 @@ int fipc_ring_channel_init(struct fipc_ring_channel *chnl,
return 0;
}
int fipc_send_msg_start(struct fipc_ring_channel *chnl,
struct fipc_message **msg)
{
......
/*
* libfipc_internal.h
*
* libfipc-internal defs, not part of public API.
*
* Copyright: University of Utah
*/
#ifndef LIBFIPC_INTERNAL_H
#define LIBFIPC_INTERNAL_H
#include <libfipc_platform_types.h>
#include <libfipc_platform_internal.h>
static inline int fipc_mutex_init(fipc_mutex_t *mutex)
{
return __fipc_mutex_init(mutex);
}
static inline int fipc_mutex_lock(fipc_mutex_t *mutex)
{
return __fipc_mutex_lock(mutex);
}
static inline int fipc_mutex_unlock(fipc_mutex_t *mutex)
{
return __fipc_mutex_unlock(mutex);
}
#define FIPC_BUILD_BUG_ON_NOT_POWER_OF_2(x) \
(__FIPC_BUILD_BUG_ON_NOT_POWER_OF_2(x))
#define FIPC_BUILD_BUG_ON(x) \
(__FIPC_BUILD_BUG_ON(x))
#endif /* LIBFIPC_INTERNAL_H */
/*
* libfipc_platform_internal.h
*
* libfipc internal kernel-specific defs.
*
* Copyright: University of Utah
*/
#ifndef LIBFIPC_PLATFORM_INTERNAL_H
#define LIBFIPC_PLATFORM_INTERNAL_H
#include <linux/mutex.h>
#include <linux/bug.h>
#include <libfipc_platform_types.h>
static inline int __fipc_mutex_init(fipc_mutex_t *mutex)
{
mutex_init(mutex);
return 0;
}
static inline int __fipc_mutex_lock(fipc_mutex_t *mutex)
{
mutex_lock(mutex);
return 0;
}
static inline int __fipc_mutex_unlock(fipc_mutex_t *mutex)
{
mutex_unlock(mutex);
return 0;
}
#define __FIPC_BUILD_BUG_ON_NOT_POWER_OF_2(x) (BUILD_BUG_ON_NOT_POWER_OF_2(x))
#define __FIPC_BUILD_BUG_ON(x) (BUILD_BUG_ON(x))
#endif /* LIBFIPC_PLATFORM_INTERNAL_H */
/*
* libfipc_platform_types.h
*
* Kernel-specifc type defs.
*
* Copyright: University of Utah
*/
#ifndef LIBFIPC_PLATFORM_TYPES_H
#define LIBFIPC_PLATFORM_TYPES_H
#include <linux/mutex.h>
typedef struct mutex fipc_mutex_t;
#endif /* LIBFIPC_PLATFORM_TYPES_H */
Supports Markdown
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