Date: Thu, 09 Jan 2003 20:59:26 +0900 (JST) From: HASEGAWA Tomoki <thasegawa@mta.biglobe.ne.jp> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/46889: ax88790 support for ed(4) Message-ID: <20030109.205926.74756775.thasegawa@mta.biglobe.ne.jp>
next in thread | raw e-mail | index | archive | help
>Number: 46889
>Category: kern
>Synopsis: ax88790 support for ed(4)
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 09 04:00:14 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: HASEGAWA Tomoki
>Release: FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD mae 4.7-STABLE FreeBSD 4.7-STABLE #0: Mon Dec 23 21:59:00 JST 2002 root@mae:/usr/src/obj/usr/src/FreeBSD-STABLE/src/sys/ME i386
>Description:
This patch is for NIC PCCARDS usinf axis ax88790(eg. COREGA FEtherII PCC-TXD)
>How-To-Repeat:
>Fix:
--- sys/dev/ed/if_ed_pccard.c 25 Jul 2001 18:06:01 -0000 1.9.2.6
+++ sys/dev/ed/if_ed_pccard.c 17 Nov 2002 12:30:49 -0000
@@ -173,6 +173,9 @@
ed_pccard_memwrite(dev, ED_AX88190_IOBASE1,
(iobase >> 8) & 0xff);
}
+ if (ed_asic_inb(sc, ED_ASIX_TEST) != 0) {
+ ed_pccard_memwrite(dev, ED_AX88790_CSR, ED_AX88790_CSR_PWRDWN);
+ }
ax88190_geteprom(sc);
ed_release_resources(dev);
--- sys/dev/ed/if_edreg.h 25 Jul 2001 18:06:01 -0000 1.27.2.3
+++ sys/dev/ed/if_edreg.h 17 Nov 2002 12:30:49 -0000
@@ -1109,6 +1109,11 @@
#define ED_CHIP_TYPE_AX88190 0x02
/*
+ * AX88190 configuration status register.
+ */
+#define ED_AX88790_CSR 0x3c2
+#define ED_AX88790_CSR_PWRDWN 0x04
+/*
* AX88190 IOBASE registers.
*/
@@ -1143,3 +1148,5 @@
#define ED_DLINK_MII_DIROUT 0x20
#define ED_DLINK_MII_DATAOUT 0x40
#define ED_DLINK_MII_CLK 0x80
+
+#define ED_ASIX_TEST 0x05
--- etc/defaults/pccard.conf 30 Sep 2002 23:17:31 -0000 1.98.2.33
+++ etc/defaults/pccard.conf 9 Jan 2003 11:57:53 -0000
@@ -492,8 +492,8 @@
insert /etc/pccard_ether $device start
remove /etc/pccard_ether $device stop
-# COREGA FEther PCC-TXD
-card "corega K.K." "corega FEther PCC-TXD"
+# COREGA FEther PCC-TXD and COREGA FEtherII PCC-TXD
+card "corega K.K." "corega FEther(II)? PCC-TXD"
config auto "ed" ? 0x30000
insert /etc/pccard_ether $device start
remove /etc/pccard_ether $device stop
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030109.205926.74756775.thasegawa>
