[BACK]Return to prom.h CVS log [TXT][DIR] Up to [local] / sys / arch / aviion / include

Annotation of sys/arch/aviion/include/prom.h, Revision 1.1

1.1     ! nbrk        1: /*     $OpenBSD: prom.h,v 1.2 2006/05/20 11:57:04 miod Exp $   */
        !             2: /*
        !             3:  * Copyright (c) 2006, Miodrag Vallat.
        !             4:  *
        !             5:  * Redistribution and use in source and binary forms, with or without
        !             6:  * modification, are permitted provided that the following conditions
        !             7:  * are met:
        !             8:  * 1. Redistributions of source code must retain the above copyright
        !             9:  *    notice, this list of conditions and the following disclaimer.
        !            10:  * 2. Redistributions in binary form must reproduce the above copyright
        !            11:  *    notice, this list of conditions and the following disclaimer in the
        !            12:  *    documentation and/or other materials provided with the distribution.
        !            13:  *
        !            14:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
        !            15:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
        !            16:  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
        !            17:  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
        !            18:  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
        !            19:  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
        !            20:  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
        !            21:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
        !            22:  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
        !            23:  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
        !            24:  * POSSIBILITY OF SUCH DAMAGE.
        !            25:  */
        !            26:
        !            27: #ifndef __AVIION_PROM_H__
        !            28: #define __AVIION_PROM_H__
        !            29:
        !            30: #include <sys/cdefs.h>
        !            31:
        !            32: /* SCM trap vector */
        !            33: #define        SCM_VECTOR              496
        !            34:
        !            35: /* system calls */
        !            36: #define        SCM_CHAR                0x00
        !            37: #define        SCM_OCHAR               0x20
        !            38: #define        SCM_PTLINE              0x21
        !            39: #define        SCM_OCRLF               0x26
        !            40: #define        SCM_HALT                0x63
        !            41: #define        SCM_STDIO               0x70
        !            42: #define        SCM_REBOOT              0x101
        !            43: #define        SCM_CPUID               0x102
        !            44: #define        SCM_MSIZE               0x103
        !            45: #define        SCM_REVNUM              0x104
        !            46: #define        SCM_HOSTID              0x107
        !            47: #define        SCM_INVALID             0x112
        !            48: #define        SCM_COMMID              0x114
        !            49:
        !            50: /* 88204 PROMs only system calls */
        !            51: #define        SCM_SYSID               0x31
        !            52: #define        SCM_CPUCONFIG           0x107
        !            53:
        !            54: struct scm_cpuconfig {
        !            55:        u_int32_t       version;
        !            56: #define        SCM_CPUCONFIG_VERSION   0
        !            57:        u_int32_t       cpucount;       /* # of CPUs */
        !            58:        u_int16_t       igang, dgang;   /* # of CMMUs per CPU */
        !            59:        u_int32_t       isplit, dsplit; /* CMMU split bits */
        !            60:        u_int32_t       :32;
        !            61: };
        !            62:
        !            63: int    scm_cpuconfig(struct scm_cpuconfig *);
        !            64: u_int  scm_cpuid(void);
        !            65: int    scm_getc(void);
        !            66: void   scm_getenaddr(u_char *);
        !            67: __dead void scm_halt(void);
        !            68: u_int  scm_memsize(int);
        !            69: void   scm_printf(const char *);
        !            70: u_int  scm_promver(void);
        !            71: void   scm_putc(int);
        !            72: void   scm_putcrlf(void);
        !            73: __dead void scm_reboot(const char *);
        !            74: u_int  scm_sysid(void);
        !            75:
        !            76: extern u_int32_t scmvec[2], osvec[2];          /* SCM trap vector copies */
        !            77:
        !            78: #endif /* __AVIION_PROM_H__ */

CVSweb