Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sbmips/include Add a very basic <machine/bus.h> whi...



details:   https://anonhg.NetBSD.org/src/rev/f58bc19b24d7
branches:  trunk
changeset: 755645:f58bc19b24d7
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sun Jun 13 18:14:57 2010 +0000

description:
Add a very basic <machine/bus.h> which nows seems to be mandatory in MI
code even if a port doesn't use it.

Based on code in private email from Havard Eidnes.  Thanks Havard!

diffstat:

 sys/arch/sbmips/include/bus.h |  22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diffs (26 lines):

diff -r 978612b837f8 -r f58bc19b24d7 sys/arch/sbmips/include/bus.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sbmips/include/bus.h     Sun Jun 13 18:14:57 2010 +0000
@@ -0,0 +1,22 @@
+/* $NetBSD: bus.h,v 1.2 2010/06/13 18:14:57 simonb Exp $ */
+
+/*
+ * A very basic <machine/bus.h>.  If/once "proper" bus.h support is needed,
+ * this can simply include:
+ *
+ *     #include <mips/bus_space.h>
+ *     #include <mips/bus_dma.h>
+ *
+ * as sys/arch/evbmips/include/bus.h does.
+ */
+
+#ifndef _SBMIPS_BUS_H_
+#define        _SBMIPS_BUS_H_
+
+typedef paddr_t        bus_addr_t;
+typedef psize_t        bus_size_t;
+
+typedef int     bus_space_tag_t;
+typedef int     bus_space_handle_t;
+
+#endif /* _SBMIPS_BUS_H_ */



Home | Main Index | Thread Index | Old Index