source: tools/oebuild/data/pti_np/pti_hal.h @ 45168

Last change on this file since 45168 was 45168, checked in by obi, 19 months ago

add oebuild building files

  • Property svn:executable set to *
File size: 3.1 KB
Line 
1#ifndef pti_hal_123
2#define pti_hal_123
3
4#include <dvb_demux.h>
5#include "pti.h"
6
7/* fixme: this one is still sucking */
8#include "../player2/linux/drivers/media/dvb/stm/dvb/dvb_module.h"
9
10#define cHALNoError 0
11#define cHALAlreadyInUse -1
12#define cHALNotInitialized -2
13#define cHALNoFreeSession -3
14#define cHALNoFreeSlot -5
15#define cHALSlotAlreadyInUse -6
16#define cHALNoFreeBuffer -7
17#define cHALNoFreeDescrambler -8
18#define cHALNotPossible -9
19
20int pti_hal_get_new_session_handle(tInputSource source, struct dvb_demux *demux);
21int pti_hal_set_source(int session_handle, const tInputSource source);
22int pti_hal_free_session(int session_handle);
23int pti_hal_get_new_slot_handle(int session_handle, int dvb_type,
24                                int dvb_pes_type, struct dvb_demux *demux,
25                                void * /*struct DvbStreamContext_s or struct StreamContext_s*/ DemuxStream,
26                                struct DeviceContext_s *DeviceContext);
27int pti_hal_slot_set_pid(int session_handle, int slot_handle, u16 pid);
28int pti_hal_slot_clear_pid(int session_handle, int slot_handle);
29int pti_hal_slot_link_buffer(int session_handle, int slot_handle, BUFFER_TYPE bufType);
30int pti_hal_slot_unlink_buffer(int session_handle, int slot_handle);
31int pti_hal_slot_free(int session_handle, int slot_handle);
32
33int pti_hal_get_session_handle(int tc_session_number);
34int pti_hal_get_session_number_from_tc_slot_number(int tc_slot_number);
35int pti_hal_get_slot_handle(int session_handle, int tc_slot_number);
36int pti_hal_get_tc_dma_number(int session_handle, int slot_handle);
37struct dvb_demux *pti_hal_get_demux_from_slot(int session_handle, int slot_handle);
38struct dvb_demux *pti_hal_get_demux_from_dma_index(int dmaIndex);
39
40int pti_hal_get_new_descrambler(int session_handle);
41int pti_hal_descrambler_link(int session_handle, int descrambler_handle, int slot_handle);
42int pti_hal_descrambler_unlink(int session_handle, int descrambler_handle);
43int pti_hal_descrambler_set(int session_handle, int descrambler_handle, u8 *Data, int parity);
44
45int pti_hal_descrambler_set_aes(int session_handle, int descrambler_handle, u8 *Data, int parity, int data_type);
46int pti_hal_descrambler_set_null(void);
47
48//int pti_hal_buffer_enable(int session_handle, int buffer_handle);
49//int pti_hal_buffer_disable(int session_handle, int buffer_handle);
50
51int pti_hal_get_type_from_slot(int session_handle, int slot_handle, int *ts_type, int *pes_type);
52#if defined(PLAYER228)
53struct DvbStreamContext_s *pti_hal_get_stream_from_slot(int session_handle, int slot_handle);
54#else
55struct StreamContext_s *pti_hal_get_stream_from_slot(int session_handle, int slot_handle);
56#endif
57
58struct DeviceContext_s *pti_hal_get_context_from_slot(int session_handle, int slot_handle);
59void pti_hal_get_slots_for_pid(int session_handle, u16 pid, int **slots, int *number_slots);
60#if defined (CONFIG_KERNELVERSION) || LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32) /* STLinux > 2.3 */
61void pti_hal_init(struct stpti *pti , struct dvb_demux *demux, void (*_demultiplexDvbPackets)(struct dvb_demux *demux, const u8 *buf, int count), int numVideoBuffers);
62void paceSwtsByPti(void);
63int pti_hal_get_scrambled(void);
64#endif
65void pti_hal_output_slot_state(void);
66#endif
Note: See TracBrowser for help on using the repository browser.