From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 17 11:50:17 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 698B916A4CE for ; Sun, 17 Oct 2004 11:50:17 +0000 (GMT) Received: from excalibur.ronald.org (excalibur.ronald.org [83.120.8.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84C0943D1D for ; Sun, 17 Oct 2004 11:50:14 +0000 (GMT) (envelope-from nz@thiemo.net) Received: from styx.ham01.thiemo.net (port-212-202-20-245.dynamic.qsc.de [212.202.20.245])i9HBoCeO004346 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 17 Oct 2004 13:50:13 +0200 (CEST) Received: from mygiea.ham01.thiemo.net (localhost [127.0.0.1]) by styx.ham01.thiemo.net (8.13.1/8.13.1) with ESMTP id i9HBoBAZ022827 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 17 Oct 2004 13:50:12 +0200 (CEST) Received: (from thiemo@localhost) by mygiea.ham01.thiemo.net (8.13.1/8.13.1/Submit) id i9HBoB0r022822 for freebsd-hackers@freebsd.org; Sun, 17 Oct 2004 13:50:11 +0200 (CEST) Date: Sun, 17 Oct 2004 13:50:11 +0200 From: Thiemo Nordenholz To: freebsd-hackers@freebsd.org Message-ID: <20041017115011.GA22744@mygiea.ham01.thiemo.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: How to access a device on LPC bus? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Oct 2004 11:50:17 -0000 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi there, beginner's question, maybe: How do I, from a device driver point of view, access a device attached to the "Low Pincount" (LPC) bus?=20 I have a Winbond W83L518D card reader controller in a notebook that I want to access. The only way I see this device at all is (on 5.3-BETA7) in "pnpinfo -v" output, where it shows up as=20 unknown pnpinfo _HID=3DWEC0518 _UID=3D0 at handle=3D\_SB_.C046.C059.C140 -- I have identified it then by the Hardware ID. I do not see any more information, especially no resource usage. As far as I have read, the LPC bus devices can accessed just like ISA devices. Actually, what seems to be the ACPI parent of this Winbond chip (with handle \_SB_.C046.C059) is shown as isab0 in the devinfo output. Now, to implement an identify function in a driver for this, I need to access data in the controller - but I don't have any information about its memory attachments...=20 Could anyone give me a hint what to do here, some driver to look into for an example, or just tell me that my idea of an ISA driver on fBSD is completely wrong? Thanks in advance, Thiemo --=20 Query a PGP key server (e.g. http://www.pgp.net/) for my public key 4106862= 9. --gBBFr7Ir9EOA20Yy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iQCVAwUBQXJcc6JjBr5BBoYpAQGjJgP/Vf74Ulguckhjp8mIaCvtcI8WuPYTM17k qttJahpfvL0aD3V/jMJru0gYMeLBoMNqUaiIfnDM5LlSionoNnl2nH/vsCiaGX6P i3GQvOT8HRMK+IrPjbh6P8QgMR/MuhM1xkPz3xTiQVM7Ze95KQ2ARRv38DAOsI0A tV4lbpvFgik= =kDhz -----END PGP SIGNATURE----- --gBBFr7Ir9EOA20Yy--