From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 17 21:11:15 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 9CCA616A4CE for ; Sun, 17 Oct 2004 21:11:15 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D6F543D1D for ; Sun, 17 Oct 2004 21:11:15 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 5142C653E6; Sun, 17 Oct 2004 22:11:14 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01351-01; Sun, 17 Oct 2004 22:11:13 +0100 (BST) Received: from empiric.dek.spc.org (adsl-67-121-95-134.dsl.snfc21.pacbell.net [67.121.95.134]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id AF6EF652FE; Sun, 17 Oct 2004 22:11:12 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 53F9064BD; Sun, 17 Oct 2004 14:11:06 -0700 (PDT) Date: Sun, 17 Oct 2004 14:11:06 -0700 From: Bruce M Simpson To: Thiemo Nordenholz Message-ID: <20041017211106.GA19515@empiric.icir.org> Mail-Followup-To: Thiemo Nordenholz , freebsd-hackers@freebsd.org References: <20041017115011.GA22744@mygiea.ham01.thiemo.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline In-Reply-To: <20041017115011.GA22744@mygiea.ham01.thiemo.net> cc: freebsd-hackers@freebsd.org Subject: Re: 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 21:11:15 -0000 --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 17, 2004 at 01:50:11PM +0200, Thiemo Nordenholz wrote: > 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 Treat it as an ISA bus but write an ACPI attachment for it. Look at src/sys/dev/fdc/fdc_acpi.c:fdc_acpi_probe() for an example. > unknown pnpinfo _HID=3DWEC0518 _UID=3D0 at handle=3D\_SB_.C046.C059.C= 140 There appears to be a Linux driver for this, which gives you something to work from. > 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 I'd suggest looking at that driver and accessing the registers you need to identify the device sub-type in your attach function. BMS --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Comment: '' iD8DBQFBct/pueUpAYYNtTsRAttJAKClyFArAYzQkon8+/PFsVtbCqyS7ACeMZWD UeTQCd4UA9J2F7Qyr3eaAow= =Xhhl -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM--