6b13f685e
김민수
BSP 최초 추가
|
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
|
#ifndef _PXP_DMA
#define _PXP_DMA
#include <uapi/linux/pxp_dma.h>
struct pxp_tx_desc {
struct dma_async_tx_descriptor txd;
struct list_head tx_list;
struct list_head list;
int len;
union {
struct pxp_layer_param s0_param;
struct pxp_layer_param out_param;
struct pxp_layer_param ol_param;
} layer_param;
struct pxp_proc_data proc_data;
u32 hist_status;
struct pxp_tx_desc *next;
};
struct pxp_channel {
struct dma_chan dma_chan;
dma_cookie_t completed;
enum pxp_channel_status status;
void *client;
unsigned int n_tx_desc;
struct pxp_tx_desc *desc;
struct list_head queue;
struct list_head list;
spinlock_t lock;
int active_buffer;
unsigned int eof_irq;
char eof_name[16];
};
#define to_tx_desc(tx) container_of(tx, struct pxp_tx_desc, txd)
#define to_pxp_channel(d) container_of(d, struct pxp_channel, dma_chan)
void pxp_txd_ack(struct dma_async_tx_descriptor *txd,
struct pxp_channel *pxp_chan);
#ifdef CONFIG_MXC_PXP_CLIENT_DEVICE
int register_pxp_device(void);
void unregister_pxp_device(void);
#else
int register_pxp_device(void) { return 0; }
void unregister_pxp_device(void) {}
#endif
#endif
|