Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:01:50

0001 /*
0002  * Copyright © 2011 Intel Corporation
0003  *
0004  * Permission is hereby granted, free of charge, to any person obtaining a
0005  * copy of this software and associated documentation files (the "Software"),
0006  * to deal in the Software without restriction, including without limitation
0007  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0008  * and/or sell copies of the Software, and to permit persons to whom the
0009  * Software is furnished to do so, subject to the following conditions:
0010  *
0011  * The above copyright notice and this permission notice (including the next
0012  * paragraph) shall be included in all copies or substantial portions of the
0013  * Software.
0014  *
0015  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0016  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0017  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0018  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0019  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0020  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
0021  * IN THE SOFTWARE.
0022  *
0023  * Authors:
0024  *    Ben Widawsky <ben@bwidawsk.net>
0025  *
0026  */
0027 
0028 #ifndef INTEL_DEBUG_H
0029 #define INTEL_DEBUG_H
0030 
0031 #include <stdint.h>
0032 
0033 #define SHADER_DEBUG_SOCKET "/var/run/gen_debug"
0034 #define DEBUG_HANDSHAKE_VERSION 0x3
0035 #define DEBUG_HANDSHAKE_ACK "okay"
0036 
0037 /* First byte must always be the 1 byte version */
0038 struct intel_debug_handshake {
0039     uint32_t version;
0040     int flink_handle;
0041     uint32_t per_thread_scratch;
0042 } __attribute__((packed));
0043 
0044 #endif