Path: blob/21.2-virgl/src/intel/tools/aub_read.h
4547 views
/*1* Copyright © 2018 Intel Corporation2*3* Permission is hereby granted, free of charge, to any person obtaining a4* copy of this software and associated documentation files (the "Software"),5* to deal in the Software without restriction, including without limitation6* the rights to use, copy, modify, merge, publish, distribute, sublicense,7* and/or sell copies of the Software, and to permit persons to whom the8* Software is furnished to do so, subject to the following conditions:9*10* The above copyright notice and this permission notice (including the next11* paragraph) shall be included in all copies or substantial portions of the12* Software.13*14* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR15* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,16* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL17* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER18* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING19* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS20* IN THE SOFTWARE.21*22*/2324#ifndef INTEL_AUB_READ25#define INTEL_AUB_READ2627#include <stdint.h>2829#include "dev/intel_device_info.h"30#include "drm-uapi/i915_drm.h"3132#ifdef __cplusplus33extern "C" {34#endif3536struct aub_read {37/* Caller's data */38void *user_data;3940void (*error)(void *user_data, const void *aub_data, const char *msg);4142void (*info)(void *user_data, int pci_id, const char *app_name);4344void (*local_write)(void *user_data, uint64_t phys_addr, const void *data, uint32_t data_len);45void (*phys_write)(void *user_data, uint64_t phys_addr, const void *data, uint32_t data_len);46void (*ggtt_write)(void *user_data, uint64_t phys_addr, const void *data, uint32_t data_len);47void (*ggtt_entry_write)(void *user_data, uint64_t phys_addr,48const void *data, uint32_t data_len);4950void (*reg_write)(void *user_data, uint32_t reg_offset, uint32_t reg_value);5152void (*ring_write)(void *user_data, enum drm_i915_gem_engine_class engine,53const void *data, uint32_t data_len);54void (*execlist_write)(void *user_data, enum drm_i915_gem_engine_class engine,55uint64_t context_descriptor);5657/* Reader's data */58uint32_t render_elsp[4];59int render_elsp_index;60uint32_t video_elsp[4];61int video_elsp_index;62uint32_t blitter_elsp[4];63int blitter_elsp_index;6465struct intel_device_info devinfo;66};6768int aub_read_command(struct aub_read *read, const void *data, uint32_t data_len);6970#ifdef __cplusplus71}72#endif7374#endif /* INTEL_AUB_READ */757677