summaryrefslogblamecommitdiffstats
path: root/include/linux/tegra_vgpu_t19x.h
blob: c2814f16cf4777a0350f6f7a5f3b279e232d2e95 (plain) (tree)
































                                                                            

                                                   
      
/*
 * Copyright (c) 2017, NVIDIA CORPORATION.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 */

#ifndef __TEGRA_VGPU_T19X_H
#define __TEGRA_VGPU_T19X_H

#define TEGRA_VGPU_CMD_ALLOC_CTX_HEADER		100
#define TEGRA_VGPU_CMD_FREE_CTX_HEADER		101

struct tegra_vgpu_alloc_ctx_header_params {
	u64 ch_handle;
	u64 ctx_header_va;
};

struct tegra_vgpu_free_ctx_header_params {
	u64 ch_handle;
};

union tegra_vgpu_t19x_params {
	struct tegra_vgpu_alloc_ctx_header_params alloc_ctx_header;
	struct tegra_vgpu_free_ctx_header_params free_ctx_header;
};

#define TEGRA_VGPU_ATTRIB_MAX_SUBCTX_COUNT	100

#endif