mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
Origin commit data
------------------
Branch: master
Commit: 77a2f5236f
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-12-26 (Wed, 26 Dec 2018)
Origin message was:
------------------
- unify defines in header files
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
39 lines
972 B
C
39 lines
972 B
C
/* compatibility header for tripledragon. I'm lazy, so I just left it
|
|
as "cs_api.h" so that I don't need too many ifdefs in the code */
|
|
|
|
#ifndef __CS_API_H__
|
|
#define __CS_API_H_
|
|
|
|
#include "init.h"
|
|
#include <config.h>
|
|
|
|
typedef void (*cs_messenger) (unsigned int msg, unsigned int data);
|
|
|
|
inline void cs_api_init()
|
|
{
|
|
hal_api_init();
|
|
};
|
|
|
|
inline void cs_api_exit()
|
|
{
|
|
hal_api_exit();
|
|
};
|
|
|
|
#define cs_malloc_uncached malloc
|
|
#define cs_free_uncached free
|
|
|
|
// Callback function helpers
|
|
#if HAVE_DUCKBOX_HARDWARE || HAVE_ARM_HARDWARE
|
|
void cs_register_messenger(cs_messenger messenger);
|
|
#else
|
|
static inline void cs_register_messenger(cs_messenger) { return; };
|
|
#endif
|
|
static inline void cs_deregister_messenger(void) { return; };
|
|
|
|
/* compat... HD1 seems to be version 6. everything newer ist > 6... */
|
|
static inline unsigned int cs_get_revision(void) { return 1; };
|
|
static inline unsigned int cs_get_chip_type(void) { return 0; };
|
|
extern int cnxt_debug;
|
|
|
|
#endif // __CS_API_H__
|