From 6cf0d5e883b7a87e73ce19f38d094688c6b95f60 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 1 Jan 2004 01:51:33 +0000 Subject: Let this attach correctly. --- sys/arch/mvme88k/dev/sram.c | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/sys/arch/mvme88k/dev/sram.c b/sys/arch/mvme88k/dev/sram.c index d4022a8e8aa..298ba19b1c2 100644 --- a/sys/arch/mvme88k/dev/sram.c +++ b/sys/arch/mvme88k/dev/sram.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sram.c,v 1.11 2003/10/11 22:08:57 miod Exp $ */ +/* $OpenBSD: sram.c,v 1.12 2004/01/01 01:51:32 miod Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -73,17 +73,7 @@ srammatch(parent, vcf, args) ca->ca_paddr = (void *)0xffe00000; ca->ca_vaddr = (void *)0xffe00000; - if (ca->ca_vaddr == (void *)-1){ - if (badvaddr(ca->ca_vaddr, 4) <= 0){ - printf("==> sram: failed physical address check.\n"); - return (0); - } - } - if (badvaddr(ca->ca_vaddr, 1) <= 0){ - printf("==> sram: failed virtual address check.\n"); - return (0); - } - return (1); + return (!badvaddr(ca->ca_vaddr, 1)) } void @@ -97,17 +87,6 @@ sramattach(parent, self, args) int i; switch (brdtyp) { -#ifdef MVME167 - case BRD_167: - case BRD_166: - sc->sc_len = 128*1024; /* always 128K */ - break; -#endif -#ifdef MVME177 - case BRD_177: - sc->sc_len = 128*1024; /* always 128K */ - break; -#endif #ifdef MVME187 case BRD_187: sc->sc_len = 128*1024; /* always 128K */ -- cgit v1.2.3