From owner-freebsd-hackers Fri Oct 10 16:47:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA18293 for hackers-outgoing; Fri, 10 Oct 1997 16:47:18 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from afs.ntc.mita.keio.ac.jp (afs.ntc.mita.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA18270; Fri, 10 Oct 1997 16:47:06 -0700 (PDT) (envelope-from hosokawa@ntc.keio.ac.jp) Received: (from hosokawa@localhost) by afs.ntc.mita.keio.ac.jp (8.8.7/3.6Wbeta6-ntc_mailserver1.03) id IAA07501; Sat, 11 Oct 1997 08:46:44 +0900 (JST) Date: Sat, 11 Oct 1997 08:46:44 +0900 (JST) Message-Id: <199710102346.IAA07501@afs.ntc.mita.keio.ac.jp> To: templin@erg.sri.com Cc: freebsd-current@freebsd.org, freebsd-hackers@freebsd.org, freebsd-mobile@freebsd.org, hosokawa@ntc.keio.ac.jp Subject: Re: pccard driver questions (FreeBSD 2.2.2-RELEASE + PAO-970616) In-Reply-To: Your message of "Fri, 10 Oct 1997 13:15:15 -0700". <199710102015.NAA01520@grayling.erg.sri.com> From: hosokawa@ntc.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.20] 1996-12/08(Sun) Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Okay, I answer the easier question :-). In article <199710102015.NAA01520@grayling.erg.sri.com> templin@erg.sri.com writes: >> My second question has to do with the way slot controller chips are >> probed. From looking at 'pcic_probe()' in sys/pccard/pcic.c, it looks >> for all the world to me that only a single slot controller chip is >> supported (i.e., there are no unit numbers, and there is only one >> statically-allocated "slot_ctrl" struct). Is it true that FreeBSD >> currently only supports one slot controller chip (which controls two >> slots), or am I missing something? (I'm hoping the folks working on >> -current might have some knowledge on this...) slot_ctrl struct have per-controller parameters in it. Not per-slot parameters. It can controll more than two slots, but it can't controll more than two PC-card controllers. The latest test version (found in ftp://jaz.jp.freebsd.org/pub/FreeBSD-jp/PAO/test) have multiple slot_ctrl struct, and it can controll more than two controllers. Original: ---------------------------------------------------------------- static struct slot_ctrl cinfo; ---------------------------------------------------------------- Newer code: ---------------------------------------------------------------- static struct slot_ctrl controller_info[NPCIC]; static struct slot_ctrl *cinfo = controller_info; ---------------------------------------------------------------- One of my laptop machine has one PCI-1130 CardBus bridge that manages two CardBus slots and i82365-compatible PC card controller that manages one PC-card slot, and I can use all three slots under this test code. -- HOSOKAWA, Tatsumi Network Technology Center Keio University hosokawa@ntc.keio.ac.jp