summaryrefslogtreecommitdiff
path: root/sys/arch/loongson/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-02-05 20:51:23 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-02-05 20:51:23 +0000
commit5dd3a9bf5326194c7328b0da0eb256cdb3056ee9 (patch)
tree9105413cd2b1455b29a571a6c4252de50fe37f19 /sys/arch/loongson/include
parenta0e63efdb88447db80c33fccc16f89ad6b0723dc (diff)
Blind support for the EMTEC Gdium Liberty netbook. Per-platform configuration
is moved to specific files, and a pointer to the key configuration structure is now kept in struct sys_config. bonito(4) interrupt handling is split, to allow PCI+Legacy interrupt systems (Lemote Yeelong) and PCI-only Legacy-free systems (Gdium) to coexist peacefully.
Diffstat (limited to 'sys/arch/loongson/include')
-rw-r--r--sys/arch/loongson/include/autoconf.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/arch/loongson/include/autoconf.h b/sys/arch/loongson/include/autoconf.h
index eb471091533..ae1fe1e7d43 100644
--- a/sys/arch/loongson/include/autoconf.h
+++ b/sys/arch/loongson/include/autoconf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.h,v 1.2 2010/01/09 20:33:16 miod Exp $ */
+/* $OpenBSD: autoconf.h,v 1.3 2010/02/05 20:51:22 miod Exp $ */
/*
* Copyright (c) 2001-2003 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -35,14 +35,16 @@
#include <machine/bus.h>
+struct bonito_config;
+
/*
* Structure holding all misc config information.
*/
struct sys_rec {
int system_type;
- /* Serial console configuration. */
- struct mips_bus_space console_io;
+ /* Bonito configuration */
+ const struct bonito_config *sys_bc;
};
extern struct sys_rec sys_config;
@@ -51,6 +53,9 @@ struct mainbus_attach_args {
const char *maa_name;
};
+extern const struct bonito_config gdium_bonito;
+extern const struct bonito_config yeeloong_bonito;
+
#include <mips64/autoconf.h>
#endif /* _MACHINE_AUTOCONF_H_ */