summaryrefslogtreecommitdiff
path: root/tests/ttmtest/README
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ttmtest/README')
0 files changed, 0 insertions, 0 deletions
id='n62' href='#n62'>62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
/*
 * Copyright 2007 Jérôme Glisse
 * All Rights Reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the next
 * paragraph) shall be included in all copies or substantial portions of the
 * Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 *
 * Authors:
 *    Jerome Glisse <glisse@freedesktop.org>
 */
#ifndef __AMD_H__
#define __AMD_H__

/* struct amd_cbuffer are for command buffer, this is the structure passed
 * around during command validation (ie check that user have the right to
 * execute the given command).
 */
struct amd_cmd_bo
{
	struct list_head            list;
	uint64_t                    *offsets;
	uint32_t                    *cdw_id;
	struct drm_buffer_object    *bo;
	unsigned int                handle;
	uint64_t                    mask;
	uint64_t                    flags;
	uint32_t                    type;
};

struct amd_cmd
{
	uint32_t                    *cdw;