diff options
author | Bo Najdrovsky <bo@ti.com> | 2012-02-03 11:04:29 -0600 |
---|---|---|
committer | David Sin <davidsin@ti.com> | 2012-02-03 11:22:24 -0600 |
commit | c0c0fdf6b1856ec8b1f55c8b5aa6868957735557 (patch) | |
tree | d69c24aed2d26d5dfb4a1acf4aaabe3d7e26ec54 /gcbv/gcmain.h | |
parent | 4699f6b8e1e370cded760322e43f535ec097cf3f (diff) | |
download | hardware_ti_omap4-c0c0fdf6b1856ec8b1f55c8b5aa6868957735557.zip hardware_ti_omap4-c0c0fdf6b1856ec8b1f55c8b5aa6868957735557.tar.gz hardware_ti_omap4-c0c0fdf6b1856ec8b1f55c8b5aa6868957735557.tar.bz2 |
gcbv: update source files to match kernel
Change-Id: If69ec9850652fc2060c70d852e08abcb141f60a0
Signed-off-by: Bo Najdrovsky <bo@ti.com>
Diffstat (limited to 'gcbv/gcmain.h')
-rw-r--r-- | gcbv/gcmain.h | 50 |
1 files changed, 44 insertions, 6 deletions
diff --git a/gcbv/gcmain.h b/gcbv/gcmain.h index 14410f1..3c69701 100644 --- a/gcbv/gcmain.h +++ b/gcbv/gcmain.h @@ -25,13 +25,51 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef BV_H -#define BV_H +#ifndef GCMAIN_H +#define GCMAIN_H -#include "bltsville.h" +#include <stdio.h> +#include <errno.h> +#include <fcntl.h> +#include <unistd.h> +#include <sys/ioctl.h> +#include "gcioctl.h" -enum bverror bv_map(struct bvbuffdesc *buffdesc); -enum bverror bv_blt(struct bvbltparams *bltparams); -enum bverror bv_unmap(struct bvbuffdesc *buffdesc); +#define DEV_NAME "gc2dusr" + +/******************************************************************************* + * Miscellaneous macros. + */ + +#define gcalloc(type, size) \ + (type *) malloc(size) + +#define gcfree(ptr) \ + free(ptr) + +#define gcdump fprintf + +#define EXPORT_SYMBOL(sym) + +/******************************************************************************* + * IOCTL wrappers. + */ + +void gc_map_wrapper(struct gcmap *gcmap); +void gc_unmap_wrapper(struct gcmap *gcmap); +void gc_commit_wrapper(struct gccommit *gccommit); + +/******************************************************************************* + * Floating point conversions. + */ + +unsigned char gcfp2norm8(float value); + +/******************************************************************************* + * BLTsville initialization/cleanup. + */ + +void bv_init(void); +void bv_exit(void); #endif |