/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * include/asm-mips/dec/prom.h * * DECstation PROM interface. * * Copyright (C) 2002 Maciej W. Rozycki * * Based on arch/mips/dec/prom/prom.h by the Anonymous.
*/ #ifndef _ASM_DEC_PROM_H #define _ASM_DEC_PROM_H
#include <linux/types.h>
#include <asm/addrspace.h>
/* * PMAX/3MAX PROM entry points for DS2100/3100's and DS5000/2xx's. * Many of these will work for MIPSen as well!
*/ #define VEC_RESET (u64 *)CKSEG1ADDR(0x1fc00000) /* Prom base address */
/* * Magic number indicating REX PROM available on DECstation. Found in * register a2 on transfer of control to program from PROM.
*/ #define REX_PROM_MAGIC 0x30464354
/* KN04 and KN05 are REX PROMs, so only do the check for R3k systems. */ staticinlinebool prom_is_rex(u32 magic)
{ return !IS_ENABLED(CONFIG_CPU_R3000) || magic == REX_PROM_MAGIC;
}
/* * 3MIN/MAXINE PROM entry points for DS5000/1xx's, DS5000/xx's and * DS5000/2x0.
*/ #define REX_PROM_GETBITMAP 0x84/4 /* get mem bitmap */ #define REX_PROM_GETCHAR 0x24/4 /* getch() */ #define REX_PROM_GETENV 0x64/4 /* get env. variable */ #define REX_PROM_GETSYSID 0x80/4 /* get system id */ #define REX_PROM_GETTCINFO 0xa4/4 #define REX_PROM_PRINTF 0x30/4 /* printf() */ #define REX_PROM_SLOTADDR 0x6c/4 /* slotaddr */ #define REX_PROM_BOOTINIT 0x54/4 /* open() */ #define REX_PROM_BOOTREAD 0x58/4 /* read() */ #define REX_PROM_CLEARCACHE 0x7c/4
/* * Used by rex_getbitmap().
*/ typedefstruct { int pagesize; unsignedchar bitmap[];
} memmap;
/* * Function pointers as read from a PROM's callback vector.
*/ externint (*__rex_bootinit)(void); externint (*__rex_bootread)(void); externint (*__rex_getbitmap)(memmap *); externunsignedlong *(*__rex_slot_address)(int); externvoid *(*__rex_gettcinfo)(void); externint (*__rex_getsysid)(void); externvoid (*__rex_clear_cache)(void);
/* * On MIPS64 we have to call PROM functions via a helper * dispatcher to accommodate ABI incompatibilities.
*/ #define __DEC_PROM_O32(fun, arg) fun arg __asm__(#fun); \
__asm__(#fun" = call_o32")
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.