From 5dd3a9bf5326194c7328b0da0eb256cdb3056ee9 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 5 Feb 2010 20:51:23 +0000 Subject: 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. --- sys/arch/loongson/include/autoconf.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'sys/arch/loongson/include') 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 +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 #endif /* _MACHINE_AUTOCONF_H_ */ -- cgit v1.2.3