1d722e3fbSopenharmony_ci/* 2d722e3fbSopenharmony_ci * Copyright © 2011 Intel Corporation 3d722e3fbSopenharmony_ci * 4d722e3fbSopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a 5d722e3fbSopenharmony_ci * copy of this software and associated documentation files (the "Software"), 6d722e3fbSopenharmony_ci * to deal in the Software without restriction, including without limitation 7d722e3fbSopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8d722e3fbSopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the 9d722e3fbSopenharmony_ci * Software is furnished to do so, subject to the following conditions: 10d722e3fbSopenharmony_ci * 11d722e3fbSopenharmony_ci * The above copyright notice and this permission notice (including the next 12d722e3fbSopenharmony_ci * paragraph) shall be included in all copies or substantial portions of the 13d722e3fbSopenharmony_ci * Software. 14d722e3fbSopenharmony_ci * 15d722e3fbSopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16d722e3fbSopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17d722e3fbSopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18d722e3fbSopenharmony_ci * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19d722e3fbSopenharmony_ci * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20d722e3fbSopenharmony_ci * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 21d722e3fbSopenharmony_ci * IN THE SOFTWARE. 22d722e3fbSopenharmony_ci * 23d722e3fbSopenharmony_ci * Authors: 24d722e3fbSopenharmony_ci * Ben Widawsky <ben@bwidawsk.net> 25d722e3fbSopenharmony_ci * 26d722e3fbSopenharmony_ci */ 27d722e3fbSopenharmony_ci 28d722e3fbSopenharmony_ci#ifndef INTEL_DEBUG_H 29d722e3fbSopenharmony_ci#define INTEL_DEBUG_H 30d722e3fbSopenharmony_ci 31d722e3fbSopenharmony_ci#include <stdint.h> 32d722e3fbSopenharmony_ci 33d722e3fbSopenharmony_ci#define SHADER_DEBUG_SOCKET "/var/run/gen_debug" 34d722e3fbSopenharmony_ci#define DEBUG_HANDSHAKE_VERSION 0x3 35d722e3fbSopenharmony_ci#define DEBUG_HANDSHAKE_ACK "okay" 36d722e3fbSopenharmony_ci 37d722e3fbSopenharmony_ci/* First byte must always be the 1 byte version */ 38d722e3fbSopenharmony_cistruct intel_debug_handshake { 39d722e3fbSopenharmony_ci uint32_t version; 40d722e3fbSopenharmony_ci int flink_handle; 41d722e3fbSopenharmony_ci uint32_t per_thread_scratch; 42d722e3fbSopenharmony_ci} __attribute__((packed)); 43d722e3fbSopenharmony_ci 44d722e3fbSopenharmony_ci#endif 45