diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-04-14 23:06:19 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-04-14 23:06:19 +0000 |
commit | aefbfbb71a98f6b004b674c56c023bcd8866bc97 (patch) | |
tree | 8895c24399f6760a5c7342aee5c73771eb51f102 | |
parent | a093b2ac249b6312f794aa29c1dd7fff8f563463 (diff) |
After enough checks on real hardware, it turns out the documentation is wrong,
for once - SCON in GLOBAL1 on MVME188 is an SCON*, thus low if the board is
the system controller.
-rw-r--r-- | sys/arch/mvme88k/dev/vme.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/include/mvme188.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/mvme88k/dev/vme.c b/sys/arch/mvme88k/dev/vme.c index c28dbca99d7..c91e3a17cae 100644 --- a/sys/arch/mvme88k/dev/vme.c +++ b/sys/arch/mvme88k/dev/vme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vme.c,v 1.29 2004/01/14 20:52:52 miod Exp $ */ +/* $OpenBSD: vme.c,v 1.30 2004/04/14 23:06:16 miod Exp $ */ /* * Copyright (c) 1999 Steve Murphree, Jr. * Copyright (c) 1995 Theo de Raadt @@ -334,7 +334,7 @@ vmeattach(parent, self, args) vmevecbase = 0x80; /* Hard coded for MVME188 */ sconc = *(volatile u_int8_t *)GLOBAL1; - if (ISSET(sconc, M188_SYSCON)) + if (!ISSET(sconc, M188_SYSCONNEG)) printf(": system controller"); printf("\n"); vmesyscon_init(sc); diff --git a/sys/arch/mvme88k/include/mvme188.h b/sys/arch/mvme88k/include/mvme188.h index 6c82fa61556..ab8709820f2 100644 --- a/sys/arch/mvme88k/include/mvme188.h +++ b/sys/arch/mvme88k/include/mvme188.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mvme188.h,v 1.15 2003/10/11 22:08:57 miod Exp $ */ +/* $OpenBSD: mvme188.h,v 1.16 2004/04/14 23:06:18 miod Exp $ */ /* * Copyright (c) 1999 Steve Murphree, Jr. * All rights reserved. @@ -105,7 +105,8 @@ #define GLB1 0xfff86003 #define GLB2 0xfff86005 #define GLB3 0xfff86007 -#define M188_SYSCON 0x00000040 +#define M188_LRST 0x00000080 +#define M188_SYSCONNEG 0x00000040 #define UCSR_REG 0xfff87000 #define GLBRES_REG 0xfff8700C |