From ddc6e8e6ad14a3970582edf160b8463ad8662460 Mon Sep 17 00:00:00 2001 From: bjh21 Date: Fri, 15 Jun 2001 00:28:01 +0000 Subject: [PATCH] I've got an 8-bit Ether3, so I've discovered that the address mapping is non-linear. Comment it here so I don't forget. --- sys/dev/podulebus/if_eareg.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sys/dev/podulebus/if_eareg.h b/sys/dev/podulebus/if_eareg.h index ea081ca247be..6971e81f5022 100644 --- a/sys/dev/podulebus/if_eareg.h +++ b/sys/dev/podulebus/if_eareg.h @@ -1,4 +1,4 @@ -/* $NetBSD: if_eareg.h,v 1.2 2001/03/25 01:08:56 bjh21 Exp $ */ +/* $NetBSD: if_eareg.h,v 1.3 2001/06/15 00:28:01 bjh21 Exp $ */ /* * Copyright (c) 1995 Mark Brinicombe @@ -39,6 +39,17 @@ * Atomwide Ether3 Register Definitions */ +/* + * The 8005 (or 80C04 or 80C04A) in an Ether3 is wired up as follows: + * A0 -- LA[2] + * A1 -- LA[6] + * A2 -- LA[7] + * A3 -- LA[8] + * + * Happily, we can ignore A0 in 16-bit mode, but it'll come back to bite + * us on 8-bit versions. + */ + #define EA_8005_BASE 0x000 #define EA_8005_SHIFT 5