mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
added functionality.
Add new CS API header. WIP.
Remove old init_cs.h header.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@596 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6ad54303db
Author: nightshad <nightshad@e54a6e83-5905-42d5-8d5c-058d10e6a962>
Date: 2010-05-20 (Thu, 20 May 2010)
------------------
This commit was generated by Migit
34 lines
820 B
C
34 lines
820 B
C
#ifndef __CS_API_H_
|
|
#define __CS_API_H_
|
|
|
|
typedef void (*cs_messenger) (unsigned int msg, unsigned int data);
|
|
|
|
// Initialization
|
|
void cs_api_init(void);
|
|
void cs_api_exit(void);
|
|
|
|
// Memory helpers
|
|
void *cs_malloc_uncached(size_t size);
|
|
void cs_free_uncached(void *ptr);
|
|
void *cs_phys_addr(void *ptr);
|
|
|
|
// Callback function helpers
|
|
void cs_register_messenger(cs_messenger messenger);
|
|
void cs_deregister_messenger(void);
|
|
cs_messenger cs_get_messenger(void);
|
|
|
|
// Logging functions
|
|
void cs_log_enable(void);
|
|
void cs_log_disable(void);
|
|
void cs_log_message(const char *module, const char *fmt, ...);
|
|
|
|
// TS Routing
|
|
unsigned int cs_get_ts_output(void);
|
|
int cs_set_ts_output(unsigned int port);
|
|
|
|
// Serial nr and revision accessors
|
|
unsigned long long cs_get_serial(void);
|
|
unsigned int cs_get_revision(void);
|
|
|
|
#endif //__CS_API_H_
|