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