summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/abe/abe_lib.h
blob: cc867aa0d1d5a50de83adcca74b0c409d5d2ef0c (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/*
 * ==========================================================================
 *               Texas Instruments OMAP(TM) Platform Firmware
 * (c) Copyright 2009, Texas Instruments Incorporated.  All Rights Reserved.
 *
 *  Use of this firmware is controlled by the terms and conditions found
 *  in the license agreement under which this firmware has been supplied.
 * ==========================================================================
 */

#ifdef __cplusplus
extern "C" {
#endif

void abe_translate_gain_format(abe_uint32 f, abe_float g1, abe_float *g2);
void abe_translate_ramp_format(abe_float g1, abe_float *g2);
void abe_clear_memory(abe_int32 memory_bank, abe_int32 address, abe_uint32 nb_bytes);

/*
 *  ABE_FPRINTF
 *
 *  Parameter  :
 *      character line to be printed
 *
 *  Operations :
 *
 *  Return value :
 *      None.
 */
void abe_fprintf(char *line);

/*
 *  ABE_READ_FEATURE_FROM_PORT
 *
 *  Parameter  :
 *      x : d
 *
 *  Operations :
 *
 *
 *  Return value :
 *
 */
void abe_read_feature_from_port(abe_uint32 x);

/*
 *  ABE_WRITE_FEATURE_TO_PORT
 *
 *  Parameter  :
 *      x : d
 *
 *  Operations :
 *
 *
 *  Return value :
 *
 */
void abe_write_feature_to_port(abe_uint32 x);

/*
 *  ABE_READ_FIFO
 *
 *  Parameter  :
 *      x : d
 *
 *  Operations :
 *
 *
 *  Return value :
 *
 */
void abe_read_fifo(abe_uint32 x);

/*
 *  ABE_WRITE_FIFO
 *
 *  Parameter  :
 *      x : d
 *
 *  Operations :
 *
 *
 *  Return value :
 *
 */
void abe_write_fifo(abe_uint32 x);

/*
 *  ABE_BLOCK_COPY
 *
 *  Parameter  :
 *      direction of the data move (Read/Write)
 *      memory bank among PMEM, DMEM, CMEM, SMEM, ATC/IO
 *      address of the memory copy (byte addressing)
 *      long pointer to the data
 *      number of data to move
 *
 *  Operations :
 *      block data move
 *
 *  Return value :
 *      none
 */
void abe_block_copy(abe_int32 direction, abe_int32 memory_bank, abe_int32 address, abe_uint32 *data, abe_uint32 nb);

#ifdef __cplusplus
}
#endif