linux/drivers/misc/sgi-gru/grulib.h

/*
 *  Copyright (c) 2008 Silicon Graphics, Inc.  All Rights Reserved.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation; either version 2.1 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 */

#ifndef __GRULIB_H__
#define __GRULIB_H__

#define GRU_BASENAME
#define GRU_FULLNAME
#define GRU_IOCTL_NUM

/*
 * Maximum number of GRU segments that a user can have open
 * ZZZ temp - set high for testing. Revisit.
 */
#define GRU_MAX_OPEN_CONTEXTS

/* Set Number of Request Blocks */
#define GRU_CREATE_CONTEXT

/*  Set Context Options */
#define GRU_SET_CONTEXT_OPTION

/* Fetch exception detail */
#define GRU_USER_GET_EXCEPTION_DETAIL

/* For user call_os handling - normally a TLB fault */
#define GRU_USER_CALL_OS

/* For user unload context */
#define GRU_USER_UNLOAD_CONTEXT

/* For dumpping GRU chiplet state */
#define GRU_DUMP_CHIPLET_STATE

/* For getting gseg statistics */
#define GRU_GET_GSEG_STATISTICS

/* For user TLB flushing (primarily for tests) */
#define GRU_USER_FLUSH_TLB

/* Get some config options (primarily for tests & emulator) */
#define GRU_GET_CONFIG_INFO

/* Various kernel self-tests */
#define GRU_KTEST

#define CONTEXT_WINDOW_BYTES(th)
#define THREAD_POINTER(p, th)
#define GSEG_START(cb)

struct gru_get_gseg_statistics_req {};

/*
 * Structure used to pass TLB flush parameters to the driver
 */
struct gru_create_context_req {};

/*
 * Structure used to pass unload context parameters to the driver
 */
struct gru_unload_context_req {};

/*
 * Structure used to set context options
 */
enum {};
struct gru_set_context_option_req {};

/*
 * Structure used to pass TLB flush parameters to the driver
 */
struct gru_flush_tlb_req {};

/*
 * Structure used to pass TLB flush parameters to the driver
 */
enum {};
struct gru_dump_chiplet_state_req {};

#define GRU_DUMP_MAGIC
struct gru_dump_context_header {};

/*
 * GRU configuration info (temp - for testing)
 */
struct gru_config_info {};

#endif /* __GRULIB_H__ */