Blame intel/intel_debug.h

Packit Service 103f6b
/*
Packit Service 103f6b
 * Copyright © 2011 Intel Corporation
Packit Service 103f6b
 *
Packit Service 103f6b
 * Permission is hereby granted, free of charge, to any person obtaining a
Packit Service 103f6b
 * copy of this software and associated documentation files (the "Software"),
Packit Service 103f6b
 * to deal in the Software without restriction, including without limitation
Packit Service 103f6b
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
Packit Service 103f6b
 * and/or sell copies of the Software, and to permit persons to whom the
Packit Service 103f6b
 * Software is furnished to do so, subject to the following conditions:
Packit Service 103f6b
 *
Packit Service 103f6b
 * The above copyright notice and this permission notice (including the next
Packit Service 103f6b
 * paragraph) shall be included in all copies or substantial portions of the
Packit Service 103f6b
 * Software.
Packit Service 103f6b
 *
Packit Service 103f6b
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Packit Service 103f6b
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Packit Service 103f6b
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
Packit Service 103f6b
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
Packit Service 103f6b
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
Packit Service 103f6b
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
Packit Service 103f6b
 * IN THE SOFTWARE.
Packit Service 103f6b
 *
Packit Service 103f6b
 * Authors:
Packit Service 103f6b
 *    Ben Widawsky <ben@bwidawsk.net>
Packit Service 103f6b
 *
Packit Service 103f6b
 */
Packit Service 103f6b
Packit Service 103f6b
#ifndef INTEL_DEBUG_H
Packit Service 103f6b
#define INTEL_DEBUG_H
Packit Service 103f6b
Packit Service 103f6b
#include <stdint.h>
Packit Service 103f6b
Packit Service 103f6b
#define SHADER_DEBUG_SOCKET "/var/run/gen_debug"
Packit Service 103f6b
#define DEBUG_HANDSHAKE_VERSION 0x3
Packit Service 103f6b
#define DEBUG_HANDSHAKE_ACK "okay"
Packit Service 103f6b
Packit Service 103f6b
/* First byte must always be the 1 byte version */
Packit Service 103f6b
struct intel_debug_handshake {
Packit Service 103f6b
	uint32_t version;
Packit Service 103f6b
	int flink_handle;
Packit Service 103f6b
	uint32_t per_thread_scratch;
Packit Service 103f6b
} __attribute__((packed));
Packit Service 103f6b
Packit Service 103f6b
#endif