1bf215546Sopenharmony_ci/* 2bf215546Sopenharmony_ci * Copyright © 2019 Raspberry Pi Ltd 3bf215546Sopenharmony_ci * Copyright © 2014-2017 Broadcom 4bf215546Sopenharmony_ci * Copyright (C) 2012 Rob Clark <robclark@freedesktop.org> 5bf215546Sopenharmony_ci * 6bf215546Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a 7bf215546Sopenharmony_ci * copy of this software and associated documentation files (the "Software"), 8bf215546Sopenharmony_ci * to deal in the Software without restriction, including without limitation 9bf215546Sopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sublicense, 10bf215546Sopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the 11bf215546Sopenharmony_ci * Software is furnished to do so, subject to the following conditions: 12bf215546Sopenharmony_ci * 13bf215546Sopenharmony_ci * The above copyright notice and this permission notice (including the next 14bf215546Sopenharmony_ci * paragraph) shall be included in all copies or substantial portions of the 15bf215546Sopenharmony_ci * Software. 16bf215546Sopenharmony_ci * 17bf215546Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18bf215546Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19bf215546Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 20bf215546Sopenharmony_ci * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21bf215546Sopenharmony_ci * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22bf215546Sopenharmony_ci * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 23bf215546Sopenharmony_ci * IN THE SOFTWARE. 24bf215546Sopenharmony_ci */ 25bf215546Sopenharmony_ci 26bf215546Sopenharmony_ci/* This file generates the per-v3d-version function prototypes. It must only 27bf215546Sopenharmony_ci * be included from v3d_simulator.h. 28bf215546Sopenharmony_ci */ 29bf215546Sopenharmony_ci 30bf215546Sopenharmony_cistruct v3d_hw; 31bf215546Sopenharmony_cistruct drm_v3d_get_param; 32bf215546Sopenharmony_cistruct drm_v3d_submit_cl; 33bf215546Sopenharmony_cistruct drm_v3d_submit_tfu; 34bf215546Sopenharmony_cistruct drm_v3d_submit_csd; 35bf215546Sopenharmony_ci 36bf215546Sopenharmony_civoid v3dX(simulator_init_regs)(struct v3d_hw *v3d); 37bf215546Sopenharmony_ciint v3dX(simulator_get_param_ioctl)(struct v3d_hw *v3d, 38bf215546Sopenharmony_ci struct drm_v3d_get_param *args); 39bf215546Sopenharmony_civoid v3dX(simulator_submit_cl_ioctl)(struct v3d_hw *v3d, 40bf215546Sopenharmony_ci struct drm_v3d_submit_cl *args, 41bf215546Sopenharmony_ci uint32_t gmp_offset); 42bf215546Sopenharmony_ciint v3dX(simulator_submit_tfu_ioctl)(struct v3d_hw *v3d, 43bf215546Sopenharmony_ci struct drm_v3d_submit_tfu *args); 44bf215546Sopenharmony_ciint v3dX(simulator_submit_csd_ioctl)(struct v3d_hw *v3d, 45bf215546Sopenharmony_ci struct drm_v3d_submit_csd *args, 46bf215546Sopenharmony_ci uint32_t gmp_offset); 47bf215546Sopenharmony_civoid v3dX(simulator_perfmon_start)(struct v3d_hw *v3d, 48bf215546Sopenharmony_ci uint32_t ncounters, 49bf215546Sopenharmony_ci uint8_t *events); 50bf215546Sopenharmony_civoid v3dX(simulator_perfmon_stop)(struct v3d_hw *v3d, 51bf215546Sopenharmony_ci uint32_t ncounters, 52bf215546Sopenharmony_ci uint64_t *values); 53