[BACK]Return to pmap_table.c CVS log [TXT][DIR] Up to [local] / sys / arch / mvme88k / mvme88k

Annotation of sys/arch/mvme88k/mvme88k/pmap_table.c, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: pmap_table.c,v 1.23 2006/05/06 16:59:28 miod Exp $    */
                      2:
                      3: /*
                      4:  * Mach Operating System
                      5:  * Copyright (c) 1993-1992 Carnegie Mellon University
                      6:  * All Rights Reserved.
                      7:  *
                      8:  * Permission to use, copy, modify and distribute this software and its
                      9:  * documentation is hereby granted, provided that both the copyright
                     10:  * notice and this permission notice appear in all copies of the
                     11:  * software, derivative works or modified versions, and any portions
                     12:  * thereof, and that both notices appear in supporting documentation.
                     13:  *
                     14:  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
                     15:  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
                     16:  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
                     17:  *
                     18:  * Carnegie Mellon requests users of this software to return to
                     19:  *
                     20:  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
                     21:  *  School of Computer Science
                     22:  *  Carnegie Mellon University
                     23:  *  Pittsburgh PA 15213-3890
                     24:  *
                     25:  * any improvements or extensions that they make and grant Carnegie Mellon
                     26:  * the rights to redistribute these changes.
                     27:  */
                     28:
                     29: #include <sys/param.h>
                     30: #include <sys/systm.h>
                     31:
                     32: #include <uvm/uvm_extern.h>
                     33:
                     34: #include <machine/cmmu.h>
                     35: #include <machine/pmap_table.h>
                     36:
                     37: #define        R       UVM_PROT_R
                     38: #define        RW      UVM_PROT_RW
                     39: #define        CW      CACHE_WT
                     40: #define        CI      CACHE_INH
                     41: #define        CG      CACHE_GLOBAL
                     42:
                     43: /*  phys_start, virt_start, size, prot, cacheability */
                     44: #ifdef MVME187
                     45: #include <machine/mvme187.h>
                     46: const pmap_table_entry
                     47: m187_board_table[] = {
                     48:        { BUG187_START,         BUG187_START,   BUG187_SIZE,    RW, CI },
                     49: #if 0  /* mapped by the hardcoded BATC entries */
                     50:        { OBIO187_START,        OBIO187_START,  OBIO187_SIZE,   RW, CI },
                     51: #endif
                     52:        { 0, 0, 0xffffffff, 0, 0 },
                     53: };
                     54: #endif
                     55:
                     56: #ifdef MVME188
                     57: #include <machine/mvme188.h>
                     58: const pmap_table_entry
                     59: m188_board_table[] = {
                     60:        { MVME188_EPROM,        MVME188_EPROM,  MVME188_EPROM_SIZE, RW, CI },
                     61: #if 0  /* mapped by the hardcoded BATC entries */
                     62:        { MVME188_UTILITY,      MVME188_UTILITY, MVME188_UTILITY_SIZE, RW, CI },
                     63: #endif
                     64:        { 0, 0, 0xffffffff, 0, 0 },
                     65: };
                     66: #endif
                     67:
                     68: #ifdef MVME197
                     69: #include <machine/mvme197.h>
                     70: const pmap_table_entry
                     71: m197_board_table[] = {
                     72:        /* We need flash 1:1 mapped to access the 88410 chip underneath */
                     73:        { FLASH_START,          FLASH_START,    FLASH_SIZE,     RW, CI },
                     74:        { OBIO197_START,        OBIO197_START,  OBIO197_SIZE,   RW, CI },
                     75:        /* No need to mention BUG here - it is contained inside OBIO */
                     76:        { 0, 0, 0xffffffff, 0, 0 },
                     77: };
                     78: #endif
                     79:
                     80: pmap_table_t
                     81: pmap_table_build(void)
                     82: {
                     83:        switch (brdtyp) {
                     84: #ifdef MVME187
                     85:        case BRD_187:
                     86:        case BRD_8120:
                     87:                return m187_board_table;
                     88: #endif
                     89: #ifdef MVME188
                     90:        case BRD_188:
                     91:                return m188_board_table;
                     92: #endif
                     93: #ifdef MVME197
                     94:        case BRD_197:
                     95:                return m197_board_table;
                     96: #endif
                     97:        default:
                     98:                return NULL;    /* silence warning */
                     99:        }
                    100: }

CVSweb