summaryrefslogtreecommitdiffstats
path: root/bltsville/bltsville/include/bvcache.h
blob: d9a3f6dfbdfe94934fd5104052c5abfd40a6dc8d (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
/*
 * bvcache.h
 *
 * Copyright (C) 2012 Texas Instruments, Inc.
 *
 * This file is part of BLTsville, an open application programming interface
 * (API) for accessing 2-D software or hardware implementations.
 *
 * This work is licensed under the Creative Commons Attribution-NoDerivs 3.0
 * Unported License. To view a copy of this license, visit
 * http://creativecommons.org/licenses/by-nd/3.0/ or send a letter to
 * Creative Commons, 444 Castro Street, Suite 900, Mountain View, California,
 * 94041, USA.
 */

#ifndef BVCACHE_H_
#define BVCACHE_H_

/* Forward declarations */
struct bvbuffdesc;
struct bvsurfgeom;
struct bvrect;

/*
 * This defines which cache operation the user intends to use
 * BVCACHE_CPU_TO_DEVICE = clean
 * BVCACHE_CPU_FROM_DEVICE = invalidate
 * BVCACHE_BIDIRECTIONAL = flush
 */
enum bvcacheop {
	BVCACHE_BIDIRECTIONAL = 0,
	BVCACHE_CPU_TO_DEVICE = 1,
	BVCACHE_CPU_FROM_DEVICE = 2,
	BVCACHE_RESERVED3 = 3,
};

struct bvcopparams {
	unsigned int structsize;	/* used to identify struct version */
	struct bvbuffdesc *desc;
	struct bvsurfgeom *geom;
	struct bvrect     *rect;
	enum bvcacheop cacheop;
};

#endif /* BVCACHE_H_ */