Date: Sun, 17 Oct 2004 14:11:06 -0700 From: Bruce M Simpson <bms@spc.org> To: Thiemo Nordenholz <listmember@thiemo.net> Cc: freebsd-hackers@freebsd.org Subject: Re: How to access a device on LPC bus? Message-ID: <20041017211106.GA19515@empiric.icir.org> In-Reply-To: <20041017115011.GA22744@mygiea.ham01.thiemo.net> References: <20041017115011.GA22744@mygiea.ham01.thiemo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041017211106.GA19515>