diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-04-12 17:53:03 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-04-12 17:53:03 +0000 |
commit | e6311ae66afb873a66abf199de7b69ef5264e9ef (patch) | |
tree | d4aaf82be1251194c2942f8866b200c7a37dbafb | |
parent | fc90736bb1dfb54323e62db0a85aa7444be2bb77 (diff) |
Get com console global variables from <dev/ic/comvar.h> instead of declaring
them manually.
-rw-r--r-- | sys/arch/sgi/sgi/ip30_machdep.c | 10 | ||||
-rw-r--r-- | sys/arch/sgi/sgi/ip32_machdep.c | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/sys/arch/sgi/sgi/ip30_machdep.c b/sys/arch/sgi/sgi/ip30_machdep.c index fc0ce491026..2725f4a686e 100644 --- a/sys/arch/sgi/sgi/ip30_machdep.c +++ b/sys/arch/sgi/sgi/ip30_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip30_machdep.c,v 1.2 2008/04/24 12:52:26 jsing Exp $ */ +/* $OpenBSD: ip30_machdep.c,v 1.3 2009/04/12 17:53:02 miod Exp $ */ /* * Copyright (c) 2008 Miodrag Vallat. @@ -22,6 +22,8 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/device.h> +#include <sys/tty.h> #include <mips64/arcbios.h> @@ -39,14 +41,12 @@ #include <sgi/xbow/xheartreg.h> #include <sgi/pci/iocreg.h> +#include <dev/ic/comvar.h> + paddr_t ip30_widget_short(int16_t, u_int); paddr_t ip30_widget_long(int16_t, u_int); int ip30_widget_id(int16_t, u_int, uint32_t *); -extern bus_addr_t comconsaddr; -extern bus_space_tag_t comconsiot; -extern int comconsfreq; - void ip30_setup() { diff --git a/sys/arch/sgi/sgi/ip32_machdep.c b/sys/arch/sgi/sgi/ip32_machdep.c index e46587347d8..7b66d1a6295 100644 --- a/sys/arch/sgi/sgi/ip32_machdep.c +++ b/sys/arch/sgi/sgi/ip32_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip32_machdep.c,v 1.3 2008/05/04 12:27:46 miod Exp $ */ +/* $OpenBSD: ip32_machdep.c,v 1.4 2009/04/12 17:53:02 miod Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -29,7 +29,9 @@ #include <sys/systm.h> #include <sys/kernel.h> #include <sys/proc.h> +#include <sys/device.h> #include <sys/extent.h> +#include <sys/tty.h> #include <uvm/uvm_extern.h> @@ -44,14 +46,12 @@ #include <sgi/localbus/crimebus.h> #include <sgi/localbus/macebus.h> +#include <dev/ic/comvar.h> + void crime_configure_memory(void); extern int bootdriveoffs; -extern bus_addr_t comconsaddr; -extern bus_space_tag_t comconsiot; -extern int comconsfreq; - void crime_configure_memory(void) { |