From 81fa322c1904d4ab63f056885007bccf1ae3778d Mon Sep 17 00:00:00 2001 From: isaki Date: Mon, 14 Jan 2002 04:25:47 +0000 Subject: [PATCH] Add another address, vector configuration of Nereid ethernet. --- sys/arch/x68k/conf/ALL | 5 +++-- sys/arch/x68k/conf/GENERIC | 5 +++-- sys/arch/x68k/conf/INSTALL | 5 +++-- sys/arch/x68k/dev/if_ne_intio.c | 13 +++++++------ 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/sys/arch/x68k/conf/ALL b/sys/arch/x68k/conf/ALL index be35c4deae72..01f7aa3d49b3 100644 --- a/sys/arch/x68k/conf/ALL +++ b/sys/arch/x68k/conf/ALL @@ -1,4 +1,4 @@ -# $NetBSD: ALL,v 1.47 2001/12/24 11:38:05 minoura Exp $ +# $NetBSD: ALL,v 1.48 2002/01/14 04:27:13 isaki Exp $ # # ALL -- everything that currently exist including experimental @@ -6,7 +6,7 @@ include "arch/x68k/conf/std.x68k" -#ident "ALL-$Revision: 1.47 $" +#ident "ALL-$Revision: 1.48 $" maxusers 32 @@ -253,6 +253,7 @@ audio* at vs? ## Network interfaces ne* at intio0 addr 0xece300 intr 249 # Nereid Ethernet +ne* at intio0 addr 0xeceb00 intr 248 # Nereid Ethernet neptune0 at intio0 addr 0xece000 intr 249 # Neptune-X neptune1 at intio0 addr 0xece400 intr 249 # Neptune-X at alt. addr. ne* at neptune? addr 0x300 # NE2000 or clone diff --git a/sys/arch/x68k/conf/GENERIC b/sys/arch/x68k/conf/GENERIC index a9379a01b1d8..08dfa7f0ae45 100644 --- a/sys/arch/x68k/conf/GENERIC +++ b/sys/arch/x68k/conf/GENERIC @@ -1,4 +1,4 @@ -# $NetBSD: GENERIC,v 1.71 2001/12/28 12:22:01 martin Exp $ +# $NetBSD: GENERIC,v 1.72 2002/01/14 04:27:13 isaki Exp $ # # GENERIC machine description file # @@ -20,7 +20,7 @@ include "arch/x68k/conf/std.x68k" -#ident "GENERIC-$Revision: 1.71 $" +#ident "GENERIC-$Revision: 1.72 $" maxusers 8 @@ -267,6 +267,7 @@ audio* at vs? ## Network interfaces ne* at intio0 addr 0xece300 intr 249 # Nereid Ethernet +ne* at intio0 addr 0xeceb00 intr 248 # Nereid Ethernet neptune0 at intio0 addr 0xece000 intr 249 # Neptune-X neptune1 at intio0 addr 0xece400 intr 249 # Neptune-X at alt. addr. ne* at neptune? addr 0x300 # NE2000 or clone diff --git a/sys/arch/x68k/conf/INSTALL b/sys/arch/x68k/conf/INSTALL index 47821880736e..eb57765235ed 100644 --- a/sys/arch/x68k/conf/INSTALL +++ b/sys/arch/x68k/conf/INSTALL @@ -1,4 +1,4 @@ -# $NetBSD: INSTALL,v 1.45 2001/12/06 04:13:12 minoura Exp $ +# $NetBSD: INSTALL,v 1.46 2002/01/14 04:27:13 isaki Exp $ # # INSTALL -- installation kernel. @@ -6,7 +6,7 @@ include "arch/x68k/conf/std.x68k" -#ident "INSTALL-$Revision: 1.45 $" +#ident "INSTALL-$Revision: 1.46 $" makeoptions COPTS="-Os" # Optimise for space. Implies -O2 @@ -260,6 +260,7 @@ pseudo-device sram # battery-backuped static RAM ## Network interfaces ne* at intio0 addr 0xece300 intr 249 # Nereid Ethernet +ne* at intio0 addr 0xeceb00 intr 248 # Nereid Ethernet neptune0 at intio0 addr 0xece000 intr 249 # Neptune-X neptune1 at intio0 addr 0xece400 intr 249 # Neptune-X at alt. addr. ne* at neptune? addr 0x300 # NE2000 or clone diff --git a/sys/arch/x68k/dev/if_ne_intio.c b/sys/arch/x68k/dev/if_ne_intio.c index 1441ae3986a9..943ccdc86b0b 100644 --- a/sys/arch/x68k/dev/if_ne_intio.c +++ b/sys/arch/x68k/dev/if_ne_intio.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ne_intio.c,v 1.1 2001/11/11 01:39:03 isaki Exp $ */ +/* $NetBSD: if_ne_intio.c,v 1.2 2002/01/14 04:25:47 isaki Exp $ */ /* * Copyright (c) 2001 Tetsuya Isaki. All rights reserved. @@ -80,8 +80,10 @@ #include -#define NE_INTIO_ADDR (0xece300) -#define NE_INTIO_INTR (0xf9) +#define NE_INTIO_ADDR (0xece300) +#define NE_INTIO_ADDR2 (0xeceb00) +#define NE_INTIO_INTR (0xf9) +#define NE_INTIO_INTR2 (0xf8) static int ne_intio_match(struct device *, struct cfdata *, void *); static void ne_intio_attach(struct device *, struct device *, void *); @@ -109,9 +111,8 @@ ne_intio_match(struct device *parent, struct cfdata *cf, void *aux) ia->ia_intr = NE_INTIO_INTR; /* fixed parameters */ - if (ia->ia_addr != NE_INTIO_ADDR) - return 0; - if (ia->ia_intr != NE_INTIO_INTR) + if (!(ia->ia_addr == NE_INTIO_ADDR && ia->ia_intr == NE_INTIO_INTR ) && + !(ia->ia_addr == NE_INTIO_ADDR2 && ia->ia_intr == NE_INTIO_INTR2) ) return 0; /* Make sure this is a valid NE2000 I/O address */