diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-01-07 02:33:00 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1997-01-07 02:33:00 +0000 |
commit | beb116954b9b7f3bb56412b2494b562f02b864b1 (patch) | |
tree | 120e997879884e1b9d93b265221b939d2ef1ade1 /include/asm-mips/dec | |
parent | 908d4681a1dc3792ecafbe64265783a86c4cccb6 (diff) |
Import of Linux/MIPS 2.1.14
Diffstat (limited to 'include/asm-mips/dec')
-rw-r--r-- | include/asm-mips/dec/decstation.h | 54 | ||||
-rw-r--r-- | include/asm-mips/dec/kn02.h | 52 | ||||
-rw-r--r-- | include/asm-mips/dec/maxine.h | 52 |
3 files changed, 158 insertions, 0 deletions
diff --git a/include/asm-mips/dec/decstation.h b/include/asm-mips/dec/decstation.h new file mode 100644 index 000000000..cae4302d2 --- /dev/null +++ b/include/asm-mips/dec/decstation.h @@ -0,0 +1,54 @@ +/* + * General info common to all DECstation systems + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + * + * Copyright (C) 1995,1996 by Paul M. Antoine, some code and definitions + * are by curteousy of Chris Fraser. + * + * This file is under construction - you were warned! + */ + +#ifndef __ASM_DEC_DECSTATION_H +#define __ASM_DEC_DECSTATION_H + +/* + * REX functions -- these are for the new TURBOchannel style ROMs + */ +#define REX_PROM_MAGIC 0x30464354 /* passed in a2 */ + +#define REX_GETBITMAP 0x84 /* get mem bitmap */ +#define REX_GETCHAR 0x24 /* getch() */ +#define REX_PUTCHAR 0x13 /* putch() */ +#define REX_HALT 0x9c /* halt the system */ +#define REX_PRINTF 0x30 /* printf() */ +#define REX_PUTS 0x2c /* puts() */ +#define REX_SLOTADDR 0x6c /* slotaddr */ +#define REX_GETENV 0x64 /* get env. variable */ +#define REX_GETSYSID 0x80 /* get system id */ +#define REX_OPEN 0x54 /* open() */ +#define REX_READ 0x58 /* read() */ + + + +#ifndef __LANGUAGE_ASSEMBLY__ + +/* + * A structure to allow calling of the various DEC boot prom routines. + * FIXME: Don't know how well different DECStation boot prom revisions + * are accomodated. + */ +struct dec_prom { + void (*dec_prom_printf)(char *format, ...); + char *(*dec_prom_getenv)(char *name); + unsigned long (*dec_prom_getbitmap)(void); + unsigned long (*dec_prom_getsysid)(void); + char *(*dec_prom_gets)(char *s); + void (*dec_prom_halt)(const unsigned int); +}; + +#endif + +#endif /* __ASM_DEC_DECSTATION_H */ diff --git a/include/asm-mips/dec/kn02.h b/include/asm-mips/dec/kn02.h new file mode 100644 index 000000000..61df7b512 --- /dev/null +++ b/include/asm-mips/dec/kn02.h @@ -0,0 +1,52 @@ +/* + * Hardware info about DEC DECstation 5000/2xx systems (otherwise known + * as 3max or kn02. + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + * + * Copyright (C) 1995,1996 by Paul M. Antoine, some code and definitions + * are by curteousy of Chris Fraser. + * + * This file is under construction - you were warned! + */ +#include <asm/segment.h> +#ifndef __ASM_MIPS_PMAX_H +#define __ASM_MIPS_PMAX_H + +/* + * The addresses below are virtual address. The mappings are + * created on startup via wired entries in the tlb. + */ + +#define PMAX_LOCAL_IO_SPACE 0xe0000000 + +/* + * Motherboard regs (kseg1 addresses) + */ +#define PMAX_SSR_ADDR KSEG1ADDR(0x1ff00000) /* system control & status reg */ + +/* + * SSR defines + */ +#define PMAX_SSR_LEDMASK 0x0000001000 /* diagnostic LED */ + +#ifndef __LANGUAGE_ASSEMBLY__ + +extern __inline__ void pmax_set_led(unsigned int bits) +{ + volatile unsigned int *led_register = (unsigned int *) PMAX_SSR_ADDR; + + *led_register = bits & PMAX_SSR_LEDMASK; +} + +#endif + +/* + * Some port addresses... + * FIXME: these addresses are incomplete and need tidying up! + */ +#define PMAX_RTC_BASE (KSEG1ADDR(0x1fe80000 + 0x200000)) /* ASIC + SL8 */ + +#endif /* __ASM_MIPS_PMAX_H */ diff --git a/include/asm-mips/dec/maxine.h b/include/asm-mips/dec/maxine.h new file mode 100644 index 000000000..3f908d5fb --- /dev/null +++ b/include/asm-mips/dec/maxine.h @@ -0,0 +1,52 @@ +/* + * Hardware info about DEC Personal DECStation systems (otherwise known + * as maxine (internal DEC codename). + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + * + * Copyright (C) 1995,1996 by Paul M. Antoine, some code and definitions + * are by curteousy of Chris Fraser. + * + * This file is under construction - you were warned! + */ + +#ifndef __ASM_DEC_MAXINE_H +#define __ASM_DEC_MAXINE_H + +/* + * The addresses below are virtual address. The mappings are + * created on startup via wired entries in the tlb. + */ + +#define PMAX_LOCAL_IO_SPACE 0xe0000000 + +/* + * Motherboard regs (kseg1 addresses) + */ +#define PMAX_SSR_ADDR KSEG1ADDR(0x1c040100) /* system support reg */ + +/* + * SSR defines + */ +#define PMAX_SSR_LEDMASK 0x00000001 /* power LED */ + +#ifndef __LANGUAGE_ASSEMBLY__ + +extern __inline__ void pmax_set_led(unsigned int bits) +{ + volatile unsigned int *led_register = (unsigned int *) PMAX_SSR_ADDR; + + *led_register = bits & PMAX_SSR_LEDMASK; +} + +#endif + +/* + * Some port addresses... + * FIXME: these addresses are incomplete and need tidying up! + */ +#define PMAX_RTC_BASE (KSEG1ADDR(0x1c000000 + 0x200000)) /* ASIC + SL8 */ + +#endif /* __ASM_DEC_MAXINE_H */ |