Home | History | Annotate | Line # | Download | only in boot
romvec.h revision 1.1
      1  1.1  tsutsui /*	$NetBSD: romvec.h,v 1.1 2013/01/05 17:44:24 tsutsui Exp $	*/
      2  1.1  tsutsui 
      3  1.1  tsutsui /*
      4  1.1  tsutsui  * Copyright (c) 1992 OMRON Corporation.
      5  1.1  tsutsui  *
      6  1.1  tsutsui  * This code is derived from software contributed to Berkeley by
      7  1.1  tsutsui  * OMRON Corporation.
      8  1.1  tsutsui  *
      9  1.1  tsutsui  * Redistribution and use in source and binary forms, with or without
     10  1.1  tsutsui  * modification, are permitted provided that the following conditions
     11  1.1  tsutsui  * are met:
     12  1.1  tsutsui  * 1. Redistributions of source code must retain the above copyright
     13  1.1  tsutsui  *    notice, this list of conditions and the following disclaimer.
     14  1.1  tsutsui  * 2. Redistributions in binary form must reproduce the above copyright
     15  1.1  tsutsui  *    notice, this list of conditions and the following disclaimer in the
     16  1.1  tsutsui  *    documentation and/or other materials provided with the distribution.
     17  1.1  tsutsui  * 3. All advertising materials mentioning features or use of this software
     18  1.1  tsutsui  *    must display the following acknowledgement:
     19  1.1  tsutsui  *	This product includes software developed by the University of
     20  1.1  tsutsui  *	California, Berkeley and its contributors.
     21  1.1  tsutsui  * 4. Neither the name of the University nor the names of its contributors
     22  1.1  tsutsui  *    may be used to endorse or promote products derived from this software
     23  1.1  tsutsui  *    without specific prior written permission.
     24  1.1  tsutsui  *
     25  1.1  tsutsui  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     26  1.1  tsutsui  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     27  1.1  tsutsui  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     28  1.1  tsutsui  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     29  1.1  tsutsui  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     30  1.1  tsutsui  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     31  1.1  tsutsui  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     32  1.1  tsutsui  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     33  1.1  tsutsui  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     34  1.1  tsutsui  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     35  1.1  tsutsui  * SUCH DAMAGE.
     36  1.1  tsutsui  *
     37  1.1  tsutsui  *	@(#)romvec.h	8.1 (Berkeley) 6/10/93
     38  1.1  tsutsui  */
     39  1.1  tsutsui /*
     40  1.1  tsutsui  * Copyright (c) 1992 OMRON Corporation.
     41  1.1  tsutsui  * Copyright (c) 1992, 1993
     42  1.1  tsutsui  *	The Regents of the University of California.  All rights reserved.
     43  1.1  tsutsui  *
     44  1.1  tsutsui  * This code is derived from software contributed to Berkeley by
     45  1.1  tsutsui  * OMRON Corporation.
     46  1.1  tsutsui  *
     47  1.1  tsutsui  * Redistribution and use in source and binary forms, with or without
     48  1.1  tsutsui  * modification, are permitted provided that the following conditions
     49  1.1  tsutsui  * are met:
     50  1.1  tsutsui  * 1. Redistributions of source code must retain the above copyright
     51  1.1  tsutsui  *    notice, this list of conditions and the following disclaimer.
     52  1.1  tsutsui  * 2. Redistributions in binary form must reproduce the above copyright
     53  1.1  tsutsui  *    notice, this list of conditions and the following disclaimer in the
     54  1.1  tsutsui  *    documentation and/or other materials provided with the distribution.
     55  1.1  tsutsui  * 3. Neither the name of the University nor the names of its contributors
     56  1.1  tsutsui  *    may be used to endorse or promote products derived from this software
     57  1.1  tsutsui  *    without specific prior written permission.
     58  1.1  tsutsui  *
     59  1.1  tsutsui  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     60  1.1  tsutsui  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     61  1.1  tsutsui  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     62  1.1  tsutsui  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     63  1.1  tsutsui  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     64  1.1  tsutsui  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     65  1.1  tsutsui  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     66  1.1  tsutsui  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     67  1.1  tsutsui  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     68  1.1  tsutsui  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     69  1.1  tsutsui  * SUCH DAMAGE.
     70  1.1  tsutsui  *
     71  1.1  tsutsui  *	@(#)romvec.h	8.1 (Berkeley) 6/10/93
     72  1.1  tsutsui  */
     73  1.1  tsutsui 
     74  1.1  tsutsui /* romvec.h Oct-22-1991 */
     75  1.1  tsutsui 
     76  1.1  tsutsui 
     77  1.1  tsutsui #define RVPtr	((struct romvec *) 0x41000000)
     78  1.1  tsutsui 
     79  1.1  tsutsui #define ROM_memsize	(*((int *) *RVPtr->vec03))
     80  1.1  tsutsui #define	ROM_getchar	(*RVPtr->vec06)
     81  1.1  tsutsui #define	ROM_putchar	(*RVPtr->vec07)
     82  1.1  tsutsui #define	ROM_abort	(*RVPtr->vec25)
     83  1.1  tsutsui #define ROM_plane	(*((int *) *RVPtr->vec46))
     84  1.1  tsutsui 
     85  1.1  tsutsui struct romvec {
     86  1.1  tsutsui     int     (*vec00)(void); /* 00 [00] - Cold Boot Entry */
     87  1.1  tsutsui     int     (*vec01)(void); /* 01 [04] */
     88  1.1  tsutsui     int     (*vec02)(void); /* 02 [08] */
     89  1.1  tsutsui     int     (*vec03)(void); /* 03 [0C] - memsize : Memory Size */
     90  1.1  tsutsui     int     (*vec04)(void); /* 04 [10] */
     91  1.1  tsutsui     int     (*vec05)(void); /* 05 [14] */
     92  1.1  tsutsui     int     (*vec06)(void); /* 06 [18] - getchar : get 1 charactor from console	*/
     93  1.1  tsutsui     int     (*vec07)(int);  /* 07 [1C] - putchar : put 1 charactor to console		*/
     94  1.1  tsutsui     int     (*vec08)(void); /* 08 [20] */
     95  1.1  tsutsui     int     (*vec09)(void); /* 09 [24] */
     96  1.1  tsutsui     int     (*vec10)(void); /* 10 [28] */
     97  1.1  tsutsui     int     (*vec11)(void); /* 11 [2C] */
     98  1.1  tsutsui     int     (*vec12)(void); /* 12 [30] */
     99  1.1  tsutsui     int     (*vec13)(void); /* 13 [34] */
    100  1.1  tsutsui     int     (*vec14)(void); /* 14 [38] */
    101  1.1  tsutsui     int     (*vec15)(void); /* 15 [3C] */
    102  1.1  tsutsui     int     (*vec16)(void); /* 16 [40] */
    103  1.1  tsutsui     int     (*vec17)(void); /* 17 [44] */
    104  1.1  tsutsui     int     (*vec18)(void); /* 18 [48] */
    105  1.1  tsutsui     int     (*vec19)(void); /* 19 [4C] */
    106  1.1  tsutsui     int     (*vec20)(void); /* 20 [50] */
    107  1.1  tsutsui     int     (*vec21)(void); /* 21 [54] */
    108  1.1  tsutsui     int     (*vec22)(void); /* 22 [58] */
    109  1.1  tsutsui     int     (*vec23)(void); /* 23 [5C] */
    110  1.1  tsutsui     int     (*vec24)(void); /* 24 [60] */
    111  1.1  tsutsui     int     (*vec25)(void); /* 25 [64] - abort : back to ROM Monitor */
    112  1.1  tsutsui     int     (*vec26)(void); /* 26 [68] */
    113  1.1  tsutsui     int     (*vec27)(void); /* 27 [6C] */
    114  1.1  tsutsui     int     (*vec28)(void); /* 28 [70] */
    115  1.1  tsutsui     int     (*vec29)(void); /* 29 [74] */
    116  1.1  tsutsui     int     (*vec30)(void); /* 30 [78] */
    117  1.1  tsutsui     int     (*vec31)(void); /* 31 [7C] */
    118  1.1  tsutsui     int     (*vec32)(void); /* 32 [80] */
    119  1.1  tsutsui     int     (*vec33)(void); /* 33 [84] */
    120  1.1  tsutsui     int     (*vec34)(void); /* 34 [88] */
    121  1.1  tsutsui     int     (*vec35)(void); /* 35 [8C] */
    122  1.1  tsutsui     int     (*vec36)(void); /* 36 [90] */
    123  1.1  tsutsui     int     (*vec37)(void); /* 37 [94] */
    124  1.1  tsutsui     int     (*vec38)(void); /* 38 [98] */
    125  1.1  tsutsui     int     (*vec39)(void); /* 39 [9C] */
    126  1.1  tsutsui     int     (*vec40)(void); /* 40 [A0] */
    127  1.1  tsutsui     int     (*vec41)(void); /* 41 [A4] */
    128  1.1  tsutsui     int     (*vec42)(void); /* 42 [A8] */
    129  1.1  tsutsui     int     (*vec43)(void); /* 43 [AC] */
    130  1.1  tsutsui     int     (*vec44)(void); /* 44 [B0] */
    131  1.1  tsutsui     int     (*vec45)(void); /* 45 [B4] */
    132  1.1  tsutsui     int     (*vec46)(void); /* 46 [B8] -- number of plane */
    133  1.1  tsutsui     int     (*vec47)(void); /* 47 [BC] */
    134  1.1  tsutsui     int     (*vec48)(void); /* 48 [C0] */
    135  1.1  tsutsui     int     (*vec49)(void); /* 49 [C4] */
    136  1.1  tsutsui     int     (*vec50)(void); /* 50 [C8] */
    137  1.1  tsutsui     int     (*vec51)(void); /* 51 [CC] */
    138  1.1  tsutsui     int     (*vec52)(void); /* 52 [D0] */
    139  1.1  tsutsui     int     (*vec53)(void); /* 53 [D4] */
    140  1.1  tsutsui     int     (*vec54)(void); /* 54 [D8] */
    141  1.1  tsutsui     int     (*vec55)(void); /* 55 [DC] */
    142  1.1  tsutsui     int     (*vec56)(void); /* 56 [E0] */
    143  1.1  tsutsui     int     (*vec57)(void); /* 57 [E4] */
    144  1.1  tsutsui     int     (*vec58)(void); /* 58 [E8] */
    145  1.1  tsutsui     int     (*vec59)(void); /* 59 [EC] */
    146  1.1  tsutsui     int     (*vec60)(void); /* 60 [F0] */
    147  1.1  tsutsui     int     (*vec61)(void); /* 61 [F4] */
    148  1.1  tsutsui     int     (*vec62)(void); /* 62 [F8] */
    149  1.1  tsutsui     int     (*vec63)(void); /* 63 [FC] */
    150  1.1  tsutsui };
    151  1.1  tsutsui 
    152  1.1  tsutsui 
    153