From 000fa36842d4db930cf9bd50d425935c361b0cd1 Mon Sep 17 00:00:00 2001 From: fredette Date: Thu, 14 Jun 2001 13:15:21 +0000 Subject: [PATCH] Moved the definition of romVectorPtr here from mon.h. Prototype prom_sd_target. --- sys/arch/sun2/include/promlib.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/arch/sun2/include/promlib.h b/sys/arch/sun2/include/promlib.h index e694e7fcdb32..210b9f855881 100644 --- a/sys/arch/sun2/include/promlib.h +++ b/sys/arch/sun2/include/promlib.h @@ -1,4 +1,4 @@ -/* $NetBSD: promlib.h,v 1.1 2001/04/06 13:13:04 fredette Exp $ */ +/* $NetBSD: promlib.h,v 1.2 2001/06/14 13:15:21 fredette Exp $ */ /*- * Copyright (c) 1999, 2001 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ /* - * Macros and functions to hide the Sun[23] PROM interface from the + * Macros and functions to hide the Sun2 PROM interface from the * common Sun parts of the kernel. */ @@ -46,6 +46,10 @@ #include +#ifdef _SUN2_PROMLIB_PRIVATE +#define romVectorPtr ((struct sunromvec *) SUN2_PROM_BASE) +#endif /* _SUN2_PROMLIB_PRIVATE */ + /* * We define both of these, since there are places where their * functionality is the same, and some common code knows that @@ -71,6 +75,7 @@ void prom_boot __P((char *)) __attribute__((__noreturn__)); char *prom_getbootpath __P((void)); char *prom_getbootfile __P((void)); char *prom_getbootargs __P((void)); +int prom_sd_target __P((int)); #define callrom prom_abort #endif /* _MACHINE_PROMLIB_H_ */