Blame omap/omap_drmif.h

Packit Service 103f6b
/*
Packit Service 103f6b
 * Copyright (C) 2011 Texas Instruments, Inc
Packit Service 103f6b
 *
Packit Service 103f6b
 * Permission is hereby granted, free of charge, to any person obtaining a
Packit Service 103f6b
 * copy of this software and associated documentation files (the "Software"),
Packit Service 103f6b
 * to deal in the Software without restriction, including without limitation
Packit Service 103f6b
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
Packit Service 103f6b
 * and/or sell copies of the Software, and to permit persons to whom the
Packit Service 103f6b
 * Software is furnished to do so, subject to the following conditions:
Packit Service 103f6b
 *
Packit Service 103f6b
 * The above copyright notice and this permission notice (including the next
Packit Service 103f6b
 * paragraph) shall be included in all copies or substantial portions of the
Packit Service 103f6b
 * Software.
Packit Service 103f6b
 *
Packit Service 103f6b
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Packit Service 103f6b
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Packit Service 103f6b
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
Packit Service 103f6b
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
Packit Service 103f6b
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
Packit Service 103f6b
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
Packit Service 103f6b
 * SOFTWARE.
Packit Service 103f6b
 *
Packit Service 103f6b
 * Authors:
Packit Service 103f6b
 *    Rob Clark <rob@ti.com>
Packit Service 103f6b
 */
Packit Service 103f6b
Packit Service 103f6b
#ifndef OMAP_DRMIF_H_
Packit Service 103f6b
#define OMAP_DRMIF_H_
Packit Service 103f6b
Packit Service 103f6b
#include <xf86drm.h>
Packit Service 103f6b
#include <stdint.h>
Packit Service 103f6b
#include <omap_drm.h>
Packit Service 103f6b
Packit Service 103f6b
struct omap_bo;
Packit Service 103f6b
struct omap_device;
Packit Service 103f6b
Packit Service 103f6b
/* device related functions:
Packit Service 103f6b
 */
Packit Service 103f6b
Packit Service 103f6b
struct omap_device * omap_device_new(int fd);
Packit Service 103f6b
struct omap_device * omap_device_ref(struct omap_device *dev);
Packit Service 103f6b
void omap_device_del(struct omap_device *dev);
Packit Service 103f6b
int omap_get_param(struct omap_device *dev, uint64_t param, uint64_t *value);
Packit Service 103f6b
int omap_set_param(struct omap_device *dev, uint64_t param, uint64_t value);
Packit Service 103f6b
Packit Service 103f6b
/* buffer-object related functions:
Packit Service 103f6b
 */
Packit Service 103f6b
Packit Service 103f6b
struct omap_bo * omap_bo_new(struct omap_device *dev,
Packit Service 103f6b
		uint32_t size, uint32_t flags);
Packit Service 103f6b
struct omap_bo * omap_bo_new_tiled(struct omap_device *dev,
Packit Service 103f6b
		uint32_t width, uint32_t height, uint32_t flags);
Packit Service 103f6b
struct omap_bo * omap_bo_ref(struct omap_bo *bo);
Packit Service 103f6b
struct omap_bo * omap_bo_from_name(struct omap_device *dev, uint32_t name);
Packit Service 103f6b
struct omap_bo * omap_bo_from_dmabuf(struct omap_device *dev, int fd);
Packit Service 103f6b
void omap_bo_del(struct omap_bo *bo);
Packit Service 103f6b
int omap_bo_get_name(struct omap_bo *bo, uint32_t *name);
Packit Service 103f6b
uint32_t omap_bo_handle(struct omap_bo *bo);
Packit Service 103f6b
int omap_bo_dmabuf(struct omap_bo *bo);
Packit Service 103f6b
uint32_t omap_bo_size(struct omap_bo *bo);
Packit Service 103f6b
void * omap_bo_map(struct omap_bo *bo);
Packit Service 103f6b
int omap_bo_cpu_prep(struct omap_bo *bo, enum omap_gem_op op);
Packit Service 103f6b
int omap_bo_cpu_fini(struct omap_bo *bo, enum omap_gem_op op);
Packit Service 103f6b
Packit Service 103f6b
#endif /* OMAP_DRMIF_H_ */