Re: How to access a device on LPC bus?

From: Bruce M Simpson (bms_at_spc.org)
Date: 10/17/04

  • Next message: Xin LI: "[PATCH] Second attempt: Add glibc-style '-', '_', '0' strftime(3) functionalities"
    Date: Sun, 17 Oct 2004 14:11:06 -0700
    To: Thiemo Nordenholz <listmember@thiemo.net>
    
    
    

    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?

    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=WEC0518 _UID=0 at handle=\_SB_.C046.C059.C140

    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...

    I'd suggest looking at that driver and accessing the registers you need to
    identify the device sub-type in your attach function.

    BMS

    
    


    • application/pgp-signature attachment: stored

  • Next message: Xin LI: "[PATCH] Second attempt: Add glibc-style '-', '_', '0' strftime(3) functionalities"

    Relevant Pages

    • Re: i386: pata_cs5520 does not work
      ... Device driver platform lacks bus and class support for being resumed. ... Device driver pci0000:00 lacks bus and class support for being resumed. ...
      (Linux-Kernel)
    • Re: 1394 Virtual Device Driver
      ... Try two machines connected via 1394, one with a virtual device ... > enumerates the bus successfully including the virtual device driver. ...
      (microsoft.public.development.device.drivers)
    • Re: The Kernal Is A Huge Security Whole In Windows
      ... The easiest way to exploit the security hole I am discussing is obviously ... driver writer is ridiculous, I'm sorry. ... responsible for making his device driver secure? ... > Performance Tab> View> Show Kernel Times. ...
      (microsoft.public.win2000.security)
    • Re: hard drive scrubbing utility
      ... we only teach the basics relative to PCI-style bus devices. ... The type of device driver you are writing makes a lot of difference also. ... There are some new books coming out from Microsoft Press on the new Kernel Mode Driver ...
      (microsoft.public.vc.mfc)
    • Re: Sort-of-Newbie Question(s)
      ... task at hand belong to the device driver development realm, ... driver to be backward compatible with Windows XP and Windows 2000, ... WDF works from Windows 2000 on. ... Can I use Visual C++ Express Edition to develop a device driver ...
      (microsoft.public.development.device.drivers)