blob: 19c96587d259a51e3831bfab87ea1995ff2c7b94 (
plain) (
blame)
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
|
/* linux/drivers/media/video/samsung/fimg2d4x/fimg2d_ctx.h
*
* Copyright (c) 2011 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* Samsung Graphics 2D driver
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include "fimg2d.h"
#include "fimg2d_helper.h"
static inline void fimg2d_enqueue(struct list_head *node, struct list_head *q)
{
list_add_tail(node, q);
}
static inline void fimg2d_dequeue(struct list_head *node)
{
list_del(node);
}
static inline int fimg2d_queue_is_empty(struct list_head *q)
{
return list_empty(q);
}
static inline struct fimg2d_bltcmd *fimg2d_get_first_command(struct fimg2d_control *info)
{
if (list_empty(&info->cmd_q))
return NULL;
else
return list_first_entry(&info->cmd_q, struct fimg2d_bltcmd, node);
}
void fimg2d_add_context(struct fimg2d_control *info, struct fimg2d_context *ctx);
void fimg2d_del_context(struct fimg2d_control *info, struct fimg2d_context *ctx);
int fimg2d_add_command(struct fimg2d_control *info, struct fimg2d_context *ctx,
struct fimg2d_blit __user *u);
|