Blame tegra/private.h

Packit 631bab
/*
Packit 631bab
 * Copyright © 2012, 2013 Thierry Reding
Packit 631bab
 * Copyright © 2013 Erik Faye-Lund
Packit 631bab
 * Copyright © 2014 NVIDIA Corporation
Packit 631bab
 *
Packit 631bab
 * Permission is hereby granted, free of charge, to any person obtaining a
Packit 631bab
 * copy of this software and associated documentation files (the "Software"),
Packit 631bab
 * to deal in the Software without restriction, including without limitation
Packit 631bab
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
Packit 631bab
 * and/or sell copies of the Software, and to permit persons to whom the
Packit 631bab
 * Software is furnished to do so, subject to the following conditions:
Packit 631bab
 *
Packit 631bab
 * The above copyright notice and this permission notice shall be included in
Packit 631bab
 * all copies or substantial portions of the Software.
Packit 631bab
 *
Packit 631bab
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Packit 631bab
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Packit 631bab
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
Packit 631bab
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
Packit 631bab
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
Packit 631bab
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
Packit 631bab
 * OTHER DEALINGS IN THE SOFTWARE.
Packit 631bab
 */
Packit 631bab
Packit 631bab
#ifndef __DRM_TEGRA_PRIVATE_H__
Packit 631bab
#define __DRM_TEGRA_PRIVATE_H__ 1
Packit 631bab
Packit 631bab
#include <stdbool.h>
Packit 631bab
#include <stdint.h>
Packit 631bab
Packit 631bab
#include <libdrm_macros.h>
Packit 631bab
#include <xf86atomic.h>
Packit 631bab
Packit 631bab
#include "tegra.h"
Packit 631bab
Packit 631bab
struct drm_tegra {
Packit 631bab
	bool close;
Packit 631bab
	int fd;
Packit 631bab
};
Packit 631bab
Packit 631bab
struct drm_tegra_bo {
Packit 631bab
	struct drm_tegra *drm;
Packit 631bab
	uint32_t handle;
Packit 631bab
	uint32_t offset;
Packit 631bab
	uint32_t flags;
Packit 631bab
	uint32_t size;
Packit 631bab
	atomic_t ref;
Packit 631bab
	void *map;
Packit 631bab
};
Packit 631bab
Packit 631bab
#endif /* __DRM_TEGRA_PRIVATE_H__ */