diff options
author | Craig Stout <craig.stout@ti.com> | 2012-06-14 11:05:48 -0700 |
---|---|---|
committer | Craig Stout <craig.stout@ti.com> | 2012-06-14 13:53:07 -0700 |
commit | 6878136fd3840c22571cf5d1925d2b2a769dace6 (patch) | |
tree | 16b34ad87da3c26914a7b91a163618c3cc3323ea | |
parent | 88632573b4fb87af35bebe3d7007093ef318cafd (diff) | |
download | hardware_ti_omap4-6878136fd3840c22571cf5d1925d2b2a769dace6.zip hardware_ti_omap4-6878136fd3840c22571cf5d1925d2b2a769dace6.tar.gz hardware_ti_omap4-6878136fd3840c22571cf5d1925d2b2a769dace6.tar.bz2 |
bltsville: header file updates.
Add bvcache api.
Fix file modes.
Change-Id: I5112be939c7b5fdfa003d48a010fa39fe46760f2
Signed-off-by: Craig Stout <craig.stout@ti.com>
-rw-r--r--[-rwxr-xr-x] | bltsville/include/bltsville.h | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | bltsville/include/bvblend.h | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | bltsville/include/bvbuffdesc.h | 0 | ||||
-rw-r--r-- | bltsville/include/bvcache.h | 45 | ||||
-rw-r--r--[-rwxr-xr-x] | bltsville/include/bventry.h | 3 | ||||
-rw-r--r--[-rwxr-xr-x] | bltsville/include/bverror.h | 6 | ||||
-rw-r--r--[-rwxr-xr-x] | bltsville/include/bvfilter.h | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | bltsville/include/bvinternal.h | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | bltsville/include/bvsurfgeom.h | 0 |
9 files changed, 54 insertions, 1 deletions
diff --git a/bltsville/include/bltsville.h b/bltsville/include/bltsville.h index e0bc8ca..eb32bf8 100755..100644 --- a/bltsville/include/bltsville.h +++ b/bltsville/include/bltsville.h @@ -21,6 +21,7 @@ #include "bvblend.h" #include "bvfilter.h" #include "bvbuffdesc.h" +#include "bvcache.h" #include "bventry.h" #include "bvsurfgeom.h" diff --git a/bltsville/include/bvblend.h b/bltsville/include/bvblend.h index f187d81..f187d81 100755..100644 --- a/bltsville/include/bvblend.h +++ b/bltsville/include/bvblend.h diff --git a/bltsville/include/bvbuffdesc.h b/bltsville/include/bvbuffdesc.h index d86e317..d86e317 100755..100644 --- a/bltsville/include/bvbuffdesc.h +++ b/bltsville/include/bvbuffdesc.h diff --git a/bltsville/include/bvcache.h b/bltsville/include/bvcache.h new file mode 100644 index 0000000..d9a3f6d --- /dev/null +++ b/bltsville/include/bvcache.h @@ -0,0 +1,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_ */ diff --git a/bltsville/include/bventry.h b/bltsville/include/bventry.h index 6220cd1..0ccfc05 100755..100644 --- a/bltsville/include/bventry.h +++ b/bltsville/include/bventry.h @@ -19,7 +19,7 @@ /* Forward declarations */ struct bvbuffdesc; struct bvbltparams; - +struct bvcopparams; /* * bv_*() - These are the API calls for BLTsville. The client needs to * import these from the shared library. @@ -27,5 +27,6 @@ struct bvbltparams; typedef enum bverror (*BVFN_MAP)(struct bvbuffdesc *buffdesc); typedef enum bverror (*BVFN_BLT)(struct bvbltparams *bltparms); typedef enum bverror (*BVFN_UNMAP)(struct bvbuffdesc *buffdesc); +typedef enum bverror (*BVFN_CACHE)(struct bvcopparams *copparams); #endif /* BVENTRY_H */ diff --git a/bltsville/include/bverror.h b/bltsville/include/bverror.h index f99eacb..787dfaf 100755..100644 --- a/bltsville/include/bverror.h +++ b/bltsville/include/bverror.h @@ -293,6 +293,12 @@ enum bverror { BVERR_MEMORY_ERROR = /* async operation triggered memory error */ BVERRDEF_VENDOR_ALL + 51000, + BVERR_FORMAT = /* unsupported bvcopparams.bvsurfgeom.format */ + BVERRDEF_VENDOR_ALL + 52000, + + BVERR_CACHEOP = /* unsupported cache operation */ + BVERRDEF_VENDOR_ALL + 60000, + #ifdef BVERR_EXTERNAL_INCLUDE #include BVERR_EXTERNAL_INCLUDE #endif diff --git a/bltsville/include/bvfilter.h b/bltsville/include/bvfilter.h index 2c98d94..2c98d94 100755..100644 --- a/bltsville/include/bvfilter.h +++ b/bltsville/include/bvfilter.h diff --git a/bltsville/include/bvinternal.h b/bltsville/include/bvinternal.h index 06e1bed..06e1bed 100755..100644 --- a/bltsville/include/bvinternal.h +++ b/bltsville/include/bvinternal.h diff --git a/bltsville/include/bvsurfgeom.h b/bltsville/include/bvsurfgeom.h index 70029fc..70029fc 100755..100644 --- a/bltsville/include/bvsurfgeom.h +++ b/bltsville/include/bvsurfgeom.h |