summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc/isa/isa_machdep.h
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>1998-09-20 22:11:49 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>1998-09-20 22:11:49 +0000
commit272c238b9194d34cac9c383517eebd94f9236b96 (patch)
tree4ecbc722ea060e28f29b0fb004e4b58b82aa9ad0 /sys/arch/powerpc/isa/isa_machdep.h
parent0122e03b77249539b13ea49c3ce4d2b54b01c11a (diff)
Changes to probe for address, and frequency for serial console.
This should enable the same kernel to work on VI machines as well as MCG machines. Only remaining piece is the rtc. For now an extra config file has been added to use serial for MCG machines until all issues are resolved. The various extra config files and ramdisks should go away as soon as merger is finished.
Diffstat (limited to 'sys/arch/powerpc/isa/isa_machdep.h')
-rw-r--r--sys/arch/powerpc/isa/isa_machdep.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/powerpc/isa/isa_machdep.h b/sys/arch/powerpc/isa/isa_machdep.h
index 288a9cea5d7..dd1d1d95436 100644
--- a/sys/arch/powerpc/isa/isa_machdep.h
+++ b/sys/arch/powerpc/isa/isa_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: isa_machdep.h,v 1.4 1998/09/17 06:03:29 rahnds Exp $ */
+/* $OpenBSD: isa_machdep.h,v 1.5 1998/09/20 22:11:47 rahnds Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom
@@ -87,8 +87,10 @@ struct intrhand {
/*
* Let com.c know where our console is!
*/
-#define CONADDR (0x2e8)
-#define COM_FREQ (1843200 / 3) /* Clocked with 8Mhz instead of 24! */
+extern u_int32_t ppc_console_addr;
+extern u_int32_t ppc_console_serfreq;
+#define CONADDR (ppc_console_addr)
+#define COM_FREQ (ppc_console_serfreq)
extern void * isabr_intr_establish(isa_chipset_tag_t, int, int, int, int (*ih_fun) __P((void *)), void *, char *);
#endif /* _ISA_MACHDEP_H_ */