summaryrefslogtreecommitdiff
path: root/cesar/hle/inc/context.h
blob: 8681744177887f19c1ff6659018ca1e0327600e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef hle_inc_context_h
#define hle_inc_context_h
/* Cesar project {{{
 *
 * Copyright (C) 2007 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    hle/inc/context.h
 * \brief   HLE context. 
 * \ingroup hle
 *
 */

#include "lib/trace.h"
#include "lib/seq_check.h"

#include "cl/cl.h"

#include "hal/hle/ipmbox.h"

#if MODULE_INCLUDED (hle_tools)
# define HLE_TOOLS 1
# include "hle/tools/tools.h"
#else
# define HLE_TOOLS 0
#endif

struct hle_t
{
    /** CL context */
    cl_t *cl;
    
    /** ipmbox context */
    ipmbox_t *ipmbox;

#if HLE_TOOLS
    /** HLE tools context. */
    hle_tools_t *hle_tools;
#endif

    /** Interface buffer add callback. */
    hle_interface_buffer_add_cb_t interface_buffer_add_cb;
    /** Interface mme receive callback. */
    hle_interface_mme_recv_cb_t interface_mme_recv_cb;
    /** interface user data. */
    void *interface_user_data;

#if CONFIG_TRACE
    /** HLE Trace */
    trace_buffer_t trace;
#endif /* !CONFIG_TRACE */
#if CONFIG_SEQ_CHECK
    /** Sequence check. */
    lib_seq_check_t seq_in;
    lib_seq_check_t seq_out;
#endif
};

#endif /* hle_inc_context_h */