Home | History | Annotate | Line # | Download | only in include
      1  1.17    simonb /*	$NetBSD: cdefs.h,v 1.17 2021/03/24 05:00:24 simonb Exp $	*/
      2   1.1       jtc 
      3   1.1       jtc /*
      4   1.3    mellon  * Copyright (c) 1995 Carnegie-Mellon University.
      5   1.3    mellon  * All rights reserved.
      6   1.3    mellon  *
      7   1.3    mellon  * Author: Chris G. Demetriou
      8  1.11    simonb  *
      9   1.3    mellon  * Permission to use, copy, modify and distribute this software and
     10   1.3    mellon  * its documentation is hereby granted, provided that both the copyright
     11   1.3    mellon  * notice and this permission notice appear in all copies of the
     12   1.3    mellon  * software, derivative works or modified versions, and any portions
     13   1.3    mellon  * thereof, and that both notices appear in supporting documentation.
     14  1.11    simonb  *
     15  1.11    simonb  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
     16  1.11    simonb  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
     17   1.3    mellon  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
     18  1.11    simonb  *
     19   1.3    mellon  * Carnegie Mellon requests users of this software to return to
     20   1.3    mellon  *
     21   1.3    mellon  *  Software Distribution Coordinator  or  Software.Distribution (at) CS.CMU.EDU
     22   1.3    mellon  *  School of Computer Science
     23   1.3    mellon  *  Carnegie Mellon University
     24   1.3    mellon  *  Pittsburgh PA 15213-3890
     25   1.3    mellon  *
     26   1.3    mellon  * any improvements or extensions that they make and grant Carnegie the
     27   1.3    mellon  * rights to redistribute these changes.
     28   1.1       jtc  */
     29   1.1       jtc 
     30   1.8    castor #ifndef _MIPS_CDEFS_H_
     31   1.8    castor #define	_MIPS_CDEFS_H_
     32   1.8    castor 
     33  1.13      matt /*
     34  1.17    simonb  * These are deprecated.  Use __mips_{o32,o64,n32,n64} instead.
     35  1.13      matt  */
     36   1.8    castor /*      MIPS Subprogram Interface Model */
     37  1.16    simonb #define	_MIPS_SIM_ABIX32	4	/* 64 bit safe, ILP32 o32 model */
     38  1.16    simonb #define	_MIPS_SIM_ABI64		3
     39  1.16    simonb #define	_MIPS_SIM_NABI32	2	/* 64bit safe, ILP32 n32 model */
     40  1.16    simonb #define	_MIPS_SIM_ABI32		1
     41   1.9    castor 
     42  1.16    simonb #define	_MIPS_BSD_API_LP32	_MIPS_SIM_ABI32
     43   1.9    castor #define	_MIPS_BSD_API_LP32_64CLEAN	_MIPS_SIM_ABIX32
     44  1.13      matt #define	_MIPS_BSD_API_LP64	_MIPS_SIM_ABI64
     45  1.13      matt 
     46  1.16    simonb #define	_MIPS_BSD_API_O32	_MIPS_SIM_ABI32
     47  1.13      matt #define	_MIPS_BSD_API_O64	_MIPS_SIM_ABIX32
     48   1.9    castor #define	_MIPS_BSD_API_N32	_MIPS_SIM_NABI32
     49  1.13      matt #define	_MIPS_BSD_API_N64	_MIPS_SIM_ABI64
     50  1.13      matt 
     51  1.13      matt #define	_MIPS_SIM_NEWABI_P(abi)	((abi) == _MIPS_SIM_NABI32 || \
     52  1.13      matt 				 (abi) == _MIPS_SIM_ABI64)
     53  1.13      matt 
     54  1.13      matt #define	_MIPS_SIM_LP64_P(abi)	((abi) == _MIPS_SIM_ABIX32 || \
     55  1.13      matt 				 (abi) == _MIPS_SIM_ABI64)
     56   1.1       jtc 
     57  1.13      matt #if defined(__mips_n64)
     58  1.13      matt #define	_MIPS_BSD_API		_MIPS_BSD_API_N64
     59  1.13      matt #elif defined(__mips_n32)
     60  1.12      matt #define	_MIPS_BSD_API		_MIPS_BSD_API_N32
     61  1.13      matt #elif defined(__mips_o64)
     62  1.13      matt #define	_MIPS_BSD_API		_MIPS_BSD_API_O64
     63  1.12      matt #else
     64  1.13      matt #define	_MIPS_BSD_API		_MIPS_BSD_API_O32
     65  1.12      matt #endif
     66  1.12      matt 
     67  1.13      matt #define	_MIPS_ISA_MIPS1		1
     68  1.13      matt #define	_MIPS_ISA_MIPS2		2
     69  1.13      matt #define	_MIPS_ISA_MIPS3		3
     70  1.13      matt #define	_MIPS_ISA_MIPS4		4
     71  1.13      matt #define	_MIPS_ISA_MIPS32	5
     72  1.13      matt #define	_MIPS_ISA_MIPS64	6
     73  1.13      matt 
     74  1.15  christos #define	__ALIGNBYTES	((size_t)7)
     75  1.14     joerg 
     76   1.8    castor #endif /* !_MIPS_CDEFS_H_ */
     77