Files
cubelinux-kernel/arch/m68k/include/asm/sun3xprom.h
T
Greg Kroah-Hartman 598cf27219 Linux 6.19.3
Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com>
Tested-by: Peter Schneider <pschneider1968@googlemail.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Salvatore Bonaccorso <carnil@debian.org>
Tested-by: Brett A C Sheffield <bacs@librecast.net>
Tested-by: Mark Brown <broonie@kernel.org>
Tested-by: Luna Jernberg <droidbittin@gmail.com>
Tested-by: Ronald Warsow <rwarsow@gmx.de>
Tested-by: Justin M. Forbes <jforbes@fedoraproject.org>
Tested-by: Ron Economos <re@w6rz.net>
Tested-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-02-19 16:33:27 +01:00

45 lines
1.3 KiB
C

/* SPDX-License-Identifier: GPL-2.0 */
/* Useful PROM locations */
#ifndef SUN3X_PROM_H
#define SUN3X_PROM_H
extern void (*sun3x_putchar)(int);
extern int (*sun3x_getchar)(void);
extern int (*sun3x_mayget)(void);
extern int (*sun3x_mayput)(int);
void sun3x_reboot(void);
void sun3x_abort(void);
void sun3x_prom_init(void);
unsigned long sun3x_prom_ptov(unsigned long pa, unsigned long size);
/* interesting hardware locations */
#define SUN3X_IOMMU 0x60000000
#define SUN3X_ENAREG 0x61000000
#define SUN3X_INTREG 0x61001400
#define SUN3X_DIAGREG 0x61001800
#define SUN3X_ZS1 0x62000000
#define SUN3X_ZS2 0x62002000
#define SUN3X_LANCE 0x65002000
#define SUN3X_EEPROM 0x64000000
#define SUN3X_IDPROM 0x640007d8
#define SUN3X_VIDEO_BASE 0x50400000
#define SUN3X_VIDEO_REGS 0x50300000
/* vector table */
#define SUN3X_PROM_BASE 0xfefe0000
#define SUN3X_P_GETCHAR (SUN3X_PROM_BASE + 20)
#define SUN3X_P_PUTCHAR (SUN3X_PROM_BASE + 24)
#define SUN3X_P_MAYGET (SUN3X_PROM_BASE + 28)
#define SUN3X_P_MAYPUT (SUN3X_PROM_BASE + 32)
#define SUN3X_P_REBOOT (SUN3X_PROM_BASE + 96)
#define SUN3X_P_SETLEDS (SUN3X_PROM_BASE + 144)
#define SUN3X_P_ABORT (SUN3X_PROM_BASE + 152)
/* mapped area */
#define SUN3X_MAP_START 0xfee00000
#define SUN3X_MAP_END 0xff000000
#endif