summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/mips64/dev/clockvar.h5
-rw-r--r--sys/arch/sgi/sgi/clock_md.c10
2 files changed, 13 insertions, 2 deletions
diff --git a/sys/arch/mips64/dev/clockvar.h b/sys/arch/mips64/dev/clockvar.h
index de485e34fba..b892fea6181 100644
--- a/sys/arch/mips64/dev/clockvar.h
+++ b/sys/arch/mips64/dev/clockvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: clockvar.h,v 1.3 2005/01/31 21:25:20 grange Exp $ */
+/* $OpenBSD: clockvar.h,v 1.4 2007/12/18 08:07:53 jsing Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -74,4 +74,7 @@ struct clock_softc {
void *ih;
};
+/* XXX Handle to clock address space. */
+bus_space_handle_t clock_h;
+
void md_clk_attach(struct device *, struct device *, void *);
diff --git a/sys/arch/sgi/sgi/clock_md.c b/sys/arch/sgi/sgi/clock_md.c
index 9d1dff07dfa..d26d4cd083d 100644
--- a/sys/arch/sgi/sgi/clock_md.c
+++ b/sys/arch/sgi/sgi/clock_md.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock_md.c,v 1.8 2005/01/31 21:25:21 grange Exp $ */
+/* $OpenBSD: clock_md.c,v 1.9 2007/12/18 08:07:54 jsing Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -82,6 +82,14 @@ md_clk_attach(parent, self, aux)
&sc->sc_clk_h))
printf("UH!? Can't map clock device!\n");
printf(": TOD with DS1687,");
+
+ /*
+ * XXX Expose the clock address space so that it can be used
+ * outside of clock(4). This is rather inelegant, however it
+ * will have to do for now...
+ */
+ clock_h = sc->sc_clk_h;
+
break;
case SGI_O200: