From owner-FreeBSD-users-jp@jp.freebsd.org  Sun Sep 23 14:50:03 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id OAA38302;
	Sun, 23 Sep 2001 14:50:03 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from tortoise.jp.freebsd.org (root@tortoise.jp.FreeBSD.ORG [210.157.158.41])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id OAA38297
	for <FreeBSD-users-jp@jp.freebsd.org>; Sun, 23 Sep 2001 14:50:03 +0900 (JST)
	(envelope-from ishizuka@ish.org)
Received: from onion.ish.org (root@onion.v6.ish.org [2001:218:47e:0:220:18ff:fe58:e71d])
	by tortoise.jp.freebsd.org (8.11.6+3.4W/8.11.3) with ESMTP/inet6 id f8N5o0W05469
	for <FreeBSD-users-jp@jp.freebsd.org>; Sun, 23 Sep 2001 14:50:01 +0900 (JST)
	(envelope-from ishizuka@ish.org)
Received: from localhost (ishizuka@localhost [127.0.0.1])
	by onion.ish.org (8.11.6/8.11.3/2001-05-23) with ESMTP id f8N5nuH75347
	for <FreeBSD-users-jp@jp.freebsd.org>; Sun, 23 Sep 2001 14:49:56 +0900 (JST)
	(envelope-from ishizuka@ish.org)
To: FreeBSD-users-jp@jp.freebsd.org
In-Reply-To: <20010923014611C.ie9t-sbgk@asahi-net.or.jp>
References: <20010921192913J.ishizuka@onion.ish.org>
	<20010923013542T.ishizuka@onion.ish.org>
	<20010923014611C.ie9t-sbgk@asahi-net.or.jp>
X-Mailer: Mew version 1.94.2 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
X-PGP-Fingerprint20: 276D 697A C2CB 1580 C683  8F18 DA98 1A4A 50D2 C4CB
X-PGP-Fingerprint16: C6 DE 46 24 D7 9F 22 EB  79 E2 90 AB 1B 9A 35 2E
X-PGP-Public-Key: http://www.ish.org/pgp-public-key.txt
X-URL: http://www.ish.org/
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Message-Id: <20010923144955U.ishizuka@onion.ish.org>
Date: Sun, 23 Sep 2001 14:49:55 +0900
From: Masachika ISHIZUKA <ishizuka@ish.org>
X-Dispatcher: imput version 20000414(IM141)
Lines: 67
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: FreeBSD-users-jp 64456
Subject: [FreeBSD-users-jp 64456] Re: 4.4-RELEASE on TP-535
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org
X-Originator: ishizuka@ish.org

>> $B$J$s$F$$$&$N$,$"$k$N$G!"(B4.4-RELEASE $B$b(B slot #1 $B$O;H$((B
>> $B$J$$;EMM$J$N$+$J$!(B.....
> 
> $B4{CN$NLdBj$N$h$&$G$9!#(B-current$B$G$OD>$C$F$$$k$+$b$7$l$^$;$s!#(B
> 
> 1.99 Fri Sep 21 6:45:35 JST 2001 UTC by imp 
> CVS Tags: HEAD
> Diffs to 1.98 
> 
> Fix, I think, The second slot problem with Cirrus Logic PD6729/30 parts:
> o Move initialization of the slot bst and bsh to inside the for loop.
> o move sc there as well.
> o Remove debug printf that prints the ID of the first slot twice.
> o Use the sp for the relevant slot in getb, rather than for the 0th slot.

  $B<F3@MM(B

  $B@PDM!w?yJB$G$9!#(B
  $B5.=E$J>pJs!"$"$j$,$H$&$4$6$$$^$9!#(B
  4-stable $B$O$^$@D>$C$F$$$J$$$h$&$J$N$G!"(Bcurrent $B$N3:EvItJ,$r;}$C(B
$B$F$-$F(B 4.4R $B$N%=!<%9$K<j$G:9J,$rEv$F$F$_$?=j!"$P$C$A$jF0$/$h$&$K(B
$B$J$j$^$7$?!#!J(Bpcic_pci.c $B$O(B current $B@lMQ$K:n$i$l$F$$$kLu$G$O$J$$(B
$B$N$G!"C1=c$KF~$lBX$($F$b<B$OF0$/$N$+$b$7$l$^$;$s$,!"$A$g$C$H62$+(B
$B$C$?$N$GI,MW$=$&$J=j$@$1Ev$F$^$7$?!#!K(B
  $BE:Im$9$k$^$G$b$J$$:9J,$G$9$,!"C/$+:$$C$F$$$k?M$,5o$k$+$b$7$l$J(B
$B$$$N$G!"0l1~!"2<5-$K:9J,$rIU$1$F$*$-$^$9!#(B

$B!t(B $B$H$K$+$/(B 4.4R $B$G1?MQ$G$-$k$h$&$K$J$C$F!"$H$C$F$b4r$7$$!"46<U!"(B
  $B46<U$G$9!*!*(B

------------------------------------------------------------------------
--- /sys/pccard/pcic_pci.c.org	Fri Sep 14 02:54:50 2001
+++ /sys/pccard/pcic_pci.c	Sun Sep 23 14:24:34 2001
@@ -1125,19 +1125,18 @@
 		    &sc->iorid, 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE);
 		if (sc->iores == NULL)
 			return (ENOMEM);
-		sp->bst = rman_get_bustag(sc->iores);
-		sp->bsh = rman_get_bushandle(sc->iores);
-		sp->controller = PCIC_PD672X;
-		sp->revision = 0;
 		sc->flags = PCIC_PD_POWER;
 		itm = pcic_pci_lookup(device_id, &pcic_pci_devs[0]);
 		for (i = 0; i < 2; i++) {
+			sp[i].bst = rman_get_bustag(sc->iores);
+			sp[i].bsh = rman_get_bushandle(sc->iores);
+			sp[i].sc = sc;
+			sp[i].revision = 0;
 			sp[i].getb = pcic_getb_io;
 			sp[i].putb = pcic_putb_io;
 			sp[i].offset = i * PCIC_SLOT_SIZE;
 			sp[i].controller = PCIC_PD672X;
-			printf("ID is 0x%x\n", sp[i].getb(sp, PCIC_ID_REV));
-			if ((sp[i].getb(sp, PCIC_ID_REV) & 0xc0) == 0x80)
+			if ((sp[i].getb(&sp[i], PCIC_ID_REV) & 0xc0) == 0x80)
 				sp[i].slt = (struct slot *) 1;
 		}
 		/*
-----------------------------------------------------------------------

$B!t(B $B$"$H(B1$BE@ITJX$J$N$O!"(Breboot $B$d(B shutdown -r now, shutdown -h now
  $BEy$G(B shutdown $B$7$F(B disk sync $B$^$G$O9T$/$s$@$1$I!"2?;~4VF0:n(B
  $B$7$F$$$?$+$,I=<($5$l$?;~E@$G;_$C$F$7$^$$!":FN)$A>e$2$dEE8;(B
  $BCG$,<B9T$5$l$^$;$s!#7k6I!"$3$3$GEE8;%9%$%C%A$r2!$7$F!"0lC6(B
  $BEE8;$rJ*M}E*$K@Z$k$O$a$K$J$C$F$7$^$&(B.....
    apm $B4X78$N@_Dj$O(B 4.3R $B$N;~$N$^$^$G!"$b$A$m$s(B4.3R $B$G$O$3$&(B
  $B$$$&LdBj$O$"$j$^$;$s!#(B
