linux/drivers/misc/sgi-gru/gru.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 __GRU_H__
#define __GRU_H__

/*
 * GRU architectural definitions
 */
#define GRU_CACHE_LINE_BYTES
#define GRU_HANDLE_STRIDE
#define GRU_CB_BASE
#define GRU_DS_BASE

/*
 * Size used to map GRU GSeg
 */
#if defined(CONFIG_X86_64)
#define GRU_GSEG_PAGESIZE
#else
#error "Unsupported architecture"
#endif

/*
 * Structure for obtaining GRU resource information
 */
struct gru_chiplet_info {};

/*
 * Statictics kept for each context.
 */
struct gru_gseg_statistics {};

/* Flags for GRU options on the gru_create_context() call */
/* Select one of the follow 4 options to specify how TLB misses are handled */
#define GRU_OPT_MISS_DEFAULT
#define GRU_OPT_MISS_USER_POLL
#define GRU_OPT_MISS_FMM_INTR
#define GRU_OPT_MISS_FMM_POLL
#define GRU_OPT_MISS_MASK



#endif		/* __GRU_H__ */