Report EASI space timings when probing the podule bus.

This commit is contained in:
mark 1996-08-21 19:46:47 +00:00
parent e8f3059a07
commit 64c91a1cc3
1 changed files with 14 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: podulebus.c,v 1.10 1996/06/12 21:09:55 mark Exp $ */ /* $NetBSD: podulebus.c,v 1.11 1996/08/21 19:46:47 mark Exp $ */
/* /*
* Copyright (c) 1994,1995 Mark Brinicombe. * Copyright (c) 1994,1995 Mark Brinicombe.
@ -48,6 +48,7 @@
#include <sys/malloc.h> #include <sys/malloc.h>
#include <sys/device.h> #include <sys/device.h>
#include <machine/io.h> #include <machine/io.h>
#include <machine/iomd.h>
#include <machine/katelib.h> #include <machine/katelib.h>
#include <machine/irqhandler.h> #include <machine/irqhandler.h>
#include <arm32/podulebus/podulebus.h> #include <arm32/podulebus/podulebus.h>
@ -535,7 +536,18 @@ podulebusattach(parent, self, aux)
{ {
int loop; int loop;
struct podule_attach_args pa; struct podule_attach_args pa;
int easi_time;
int bit;
easi_time = ReadByte(IOMD_ECTCR);
printf(": easi timings=");
for (bit = 0x01; bit < 0x100; bit = bit << 1)
if (easi_time & bit)
printf("C");
else
printf("A");
printf("\n"); printf("\n");
/* Ok we need to map in the podulebus */ /* Ok we need to map in the podulebus */