Home | History | Annotate | Line # | Download | only in include
pal.h revision 1.2.152.1
      1  1.2.152.1      mrg /* $NetBSD: pal.h,v 1.2.152.1 2012/02/18 07:30:58 mrg Exp $ */
      2        1.1  thorpej 
      3  1.2.152.1      mrg /*
      4        1.1  thorpej  * Copyright (c) 1991,1990,1989,1994,1995,1996 Carnegie Mellon University
      5        1.1  thorpej  * All Rights Reserved.
      6  1.2.152.1      mrg  *
      7        1.1  thorpej  * Permission to use, copy, modify and distribute this software and its
      8        1.1  thorpej  * documentation is hereby granted, provided that both the copyright
      9        1.1  thorpej  * notice and this permission notice appear in all copies of the
     10        1.1  thorpej  * software, derivative works or modified versions, and any portions
     11        1.1  thorpej  * thereof, and that both notices appear in supporting documentation.
     12  1.2.152.1      mrg  *
     13        1.1  thorpej  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
     14        1.1  thorpej  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
     15        1.1  thorpej  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
     16  1.2.152.1      mrg  *
     17        1.1  thorpej  * Carnegie Mellon requests users of this software to return to
     18  1.2.152.1      mrg  *
     19        1.1  thorpej  *  Software Distribution Coordinator  or  Software.Distribution (at) CS.CMU.EDU
     20        1.1  thorpej  *  School of Computer Science
     21        1.1  thorpej  *  Carnegie Mellon University
     22        1.1  thorpej  *  Pittsburgh PA 15213-3890
     23  1.2.152.1      mrg  *
     24        1.1  thorpej  * any improvements or extensions that they make and grant Carnegie Mellon
     25        1.1  thorpej  * the rights to redistribute these changes.
     26        1.1  thorpej  */
     27        1.1  thorpej 
     28        1.1  thorpej /*
     29        1.1  thorpej  * PAL "function" codes (used as arguments to call_pal instructions).
     30        1.1  thorpej  *
     31        1.1  thorpej  * Those marked with "P" are privileged, and those marked with "U"
     32        1.1  thorpej  * are unprivileged.
     33        1.1  thorpej  */
     34        1.1  thorpej 
     35        1.1  thorpej /* Common PAL function codes. */
     36        1.1  thorpej #define	PAL_halt		0x0000			/* P */
     37        1.1  thorpej #define	PAL_cflush		0x0001			/* P */
     38        1.1  thorpej #define	PAL_draina		0x0002			/* P */
     39        1.1  thorpej #define	PAL_cserve		0x0009			/* P */
     40        1.1  thorpej #define	PAL_swppal		0x000a			/* P */
     41        1.1  thorpej #define	PAL_ipir		0x000d			/* P */
     42        1.2  nathanw #define	PAL_wtint		0x003e			/* P */
     43        1.1  thorpej #define	PAL_bpt			0x0080			/* U */
     44        1.1  thorpej #define	PAL_bugchk		0x0081			/* U */
     45        1.1  thorpej #define	PAL_imb			0x0086			/* U */
     46        1.1  thorpej #define	PAL_rdunique		0x009e			/* U */
     47        1.1  thorpej #define	PAL_wrunique		0x009f			/* U */
     48        1.1  thorpej #define	PAL_gentrap		0x00aa			/* U */
     49        1.2  nathanw #define	PAL_clrfen		0x00ae			/* U */
     50        1.1  thorpej 
     51        1.1  thorpej /* VMS PAL function codes. */
     52        1.1  thorpej #define	PAL_VMS_ldqp		0x0003			/* P */
     53        1.1  thorpej #define	PAL_VMS_stqp		0x0004			/* P */
     54        1.1  thorpej #define	PAL_VMS_mtpr_fen	0x000c			/* P */
     55        1.1  thorpej #define	PAL_VMS_mtpr_ipir	0x000d			/* P */
     56        1.1  thorpej #define	PAL_VMS_mfpr_ipl	0x000e			/* P */
     57        1.1  thorpej #define	PAL_VMS_mtpr_ipl	0x000f			/* P */
     58        1.1  thorpej #define	PAL_VMS_mfpr_mces	0x0010			/* P */
     59        1.1  thorpej #define	PAL_VMS_mtpr_mces	0x0011			/* P */
     60        1.1  thorpej #define	PAL_VMS_mfpr_prbr	0x0013			/* P */
     61        1.1  thorpej #define	PAL_VMS_mtpr_prbr	0x0014			/* P */
     62        1.1  thorpej #define	PAL_VMS_mfpr_ptbr	0x0015			/* P */
     63        1.1  thorpej #define	PAL_VMS_mtpr_scbb	0x0017			/* P */
     64        1.1  thorpej #define	PAL_VMS_mtpr_sirr	0x0018			/* P */
     65        1.1  thorpej #define	PAL_VMS_mtpr_tbia	0x001b			/* P */
     66        1.1  thorpej #define	PAL_VMS_mtpr_tbiap	0x001c			/* P */
     67        1.1  thorpej #define	PAL_VMS_mtpr_tbis	0x001d			/* P */
     68        1.1  thorpej #define	PAL_VMS_mfpr_usp	0x0022			/* P */
     69        1.1  thorpej #define	PAL_VMS_mtpr_usp	0x0023			/* P */
     70        1.1  thorpej #define	PAL_VMS_mfpr_vptb	0x0029			/* P */
     71        1.1  thorpej #define	PAL_VMS_mfpr_whami	0x003f			/* P */
     72        1.1  thorpej #define	PAL_VMS_rei		0x0092			/* U */
     73        1.1  thorpej 
     74        1.1  thorpej /* OSF/1 PAL function codes. */
     75        1.1  thorpej #define	PAL_OSF1_rdmces		0x0010			/* P */
     76        1.1  thorpej #define	PAL_OSF1_wrmces		0x0011			/* P */
     77        1.1  thorpej #define	PAL_OSF1_wrfen		0x002b			/* P */
     78        1.1  thorpej #define	PAL_OSF1_wrvptptr	0x002d			/* P */
     79        1.1  thorpej #define	PAL_OSF1_swpctx		0x0030			/* P */
     80        1.1  thorpej #define	PAL_OSF1_wrval		0x0031			/* P */
     81        1.1  thorpej #define	PAL_OSF1_rdval		0x0032			/* P */
     82        1.1  thorpej #define	PAL_OSF1_tbi		0x0033			/* P */
     83        1.1  thorpej #define	PAL_OSF1_wrent		0x0034			/* P */
     84        1.1  thorpej #define	PAL_OSF1_swpipl		0x0035			/* P */
     85        1.1  thorpej #define	PAL_OSF1_rdps		0x0036			/* P */
     86        1.1  thorpej #define	PAL_OSF1_wrkgp		0x0037			/* P */
     87        1.1  thorpej #define	PAL_OSF1_wrusp		0x0038			/* P */
     88        1.1  thorpej #define	PAL_OSF1_wrperfmon	0x0039			/* P */
     89        1.1  thorpej #define	PAL_OSF1_rdusp		0x003a			/* P */
     90        1.1  thorpej #define	PAL_OSF1_whami		0x003c			/* P */
     91        1.1  thorpej #define	PAL_OSF1_retsys		0x003d			/* P */
     92        1.1  thorpej #define	PAL_OSF1_rti		0x003f			/* P */
     93        1.1  thorpej #define	PAL_OSF1_callsys	0x0083			/* U */
     94        1.1  thorpej #define	PAL_OSF1_imb		0x0086			/* U */
     95        1.2  nathanw #define	PAL_OSF1_urti		0x0092			/* U */
     96