Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
config_platform.h
Go to the documentation of this file.
00001 /*
00002 
00003   Copyright (C) 2000, 2001 Silicon Graphics, Inc.  All Rights Reserved.
00004 
00005   This program is free software; you can redistribute it and/or modify it
00006   under the terms of version 2 of the GNU General Public License as
00007   published by the Free Software Foundation.
00008 
00009   This program is distributed in the hope that it would be useful, but
00010   WITHOUT ANY WARRANTY; without even the implied warranty of
00011   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
00012 
00013   Further, this software is distributed without any warranty that it is
00014   free of the rightful claim of any third person regarding infringement 
00015   or the like.  Any license provided herein, whether implied or 
00016   otherwise, applies only to this software file.  Patent licenses, if 
00017   any, provided herein do not apply to combinations of this program with 
00018   other software, or any other product whatsoever.  
00019 
00020   You should have received a copy of the GNU General Public License along
00021   with this program; if not, write the Free Software Foundation, Inc., 59
00022   Temple Place - Suite 330, Boston MA 02111-1307, USA.
00023 
00024   Contact information:  Silicon Graphics, Inc., 1600 Amphitheatre Pky,
00025   Mountain View, CA 94043, or:
00026 
00027   http://www.sgi.com
00028 
00029   For further information regarding this notice, see:
00030 
00031   http://oss.sgi.com/projects/GenInfo/NoticeExplan
00032 
00033 */
00034 
00035 
00036 /* ====================================================================
00037  * ====================================================================
00038  *
00039  *
00040  * Revision history:
00041  *  11-May-96 - Original Version
00042  *
00043  * Description:
00044  *
00045  * Definitions of the various platforms supported by the compiler.
00046  * This package is used to configure certain platform-specific options
00047  * like the -Ofast option set and cache configuration for LNO.
00048  *
00049  * This is separate from config_targ.h because it has a very small set
00050  * of clients, whereas config_targ.h is included in config.h and hence
00051  * everywhere.
00052  *
00053  * NOTE:  There is an outstanding bug, PV 378171, to base this
00054  * functionality on an external configuration file.
00055  *
00056  * WARNING:  This header should be usable by the driver, so it should
00057  * be clean of special compiler types.
00058  *
00059  * ====================================================================
00060  * ====================================================================
00061  */
00062 
00063 #ifndef config_platform_INCLUDED
00064 #define config_platform_INCLUDED
00065 
00066 #ifdef _KEEP_RCS_ID
00067 #endif /* _KEEP_RCS_ID */
00068 
00069 #ifdef __cplusplus
00070 extern "C" {
00071 #endif /* __cplusplus */
00072 
00073 /* What are the supported platforms? */
00074 typedef enum {
00075   IP0,          /* Unknown processor */
00076   IP_END        /* End of platform list */
00077 } PLATFORM;
00078 
00079 /* What are the supported platforms (for driver): */
00080 typedef enum {
00081   PROC_NONE,
00082   PROC_ITANIUM
00083 } PROCESSOR;
00084 
00085 extern PLATFORM Platform;       /* Target platform */
00086 
00087 /* How should we set the options? */
00088 typedef struct {
00089   PLATFORM id;          /* Which IP? */
00090   char *name;           /* "ipxx" */
00091   char *pname;          /* "r10000" */
00092   PROCESSOR processor;  /* PROC_RxK */
00093   /* Add fields here for values of options which vary per processor */
00094   char *nickname;       /* "Shiva" */
00095 } PLATFORM_OPTIONS;
00096 
00097 #define POPTS_id(p)             ((p)->id)
00098 #define POPTS_name(p)           ((p)->name)
00099 #define POPTS_pname(p)          ((p)->pname)
00100 #define POPTS_processor(p)      ((p)->processor)
00101 #define POPTS_nickname(p)       ((p)->nickname)
00102 
00103 extern PLATFORM_OPTIONS * Get_Platform_Options ( char *name );
00104 
00105 #ifdef __cplusplus
00106 }
00107 #endif /* __cplusplus */
00108     
00109 #endif /* config_platform_INCLUDED */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines