All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Bruno <fbruno-K2GnTyEPumIAvxtiuMwx3w@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Non-power related ACPI devices (help)
Date: Sun, 26 Jan 2003 18:03:19 -0500	[thread overview]
Message-ID: <3E346937.7080100@attbi.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

Hello,
I've installed Redhat 8.0 on a Compaq TC1000 tablet computer that I own. 
I upgraded the kernel to 2.4.20+ the corresponding ACPI patch from 
sourceforge. I have compiled the kernel with CONFIG_ACPI_DEBUG. The 
TC1000 is fairly standard except for two devices. The first being the 
touchscreen and the second some related buttons. I finally tracked down 
the devices under windows and found that both are configured via ACPI. 
I've attached the corresponding snippet from dsdt.

The first device is nothing more than a serial port on com1 (I believe). 
The corresponding windows driver is a serial driver. The other one I am 
not sure about.

My question is: how can i get these devices initialized via ACPI? If 
someone could point me in the right direction, I'd greatly appreciate it.

Thanks,
Frank



[-- Attachment #2: stuff --]
[-- Type: text/plain, Size: 5903 bytes --]


                Device (DIGI)
                {
                    Name (_HID, EisaId ("FPI2002"))
                    Name (_UID, 0x01)
                    Name (RSRC, ResourceTemplate ()
                    {
                        IO (Decode16, 0x0000, 0x0000, 0x08, 0x08)
                        IRQNoFlags () {}
                    })
                    Name (_PRS, ResourceTemplate ()
                    {
                        StartDependentFn (0x00, 0x01)
                        {
                            IO (Decode16, 0x03F8, 0x03F8, 0x08, 0x08)
                            IRQNoFlags () {4}
                        }
                        EndDependentFn ()
                    })
                    OperationRegion (VSIO, SystemIO, 0x03F0, 0x02)
                    Field (VSIO, ByteAcc, NoLock, Preserve)
                    {
                        INDX,   8, 
                        DATA,   8
                    }

                    IndexField (INDX, DATA, ByteAcc, NoLock, Preserve)
                    {
                        Offset (0xE2), 
                        CRE2,   8, 
                        CRE3,   8, 
                        Offset (0xE6), 
                        CRE6,   8, 
                        CRE7,   8, 
                        CRE8,   8, 
                        Offset (0xEE), 
                        CREE,   8
                    }

                    Method (ENCG, 0, NotSerialized)
                    {
                        Store (\_SB.PCI0.PIB.EXFE, Local0)
                        Or (Local0, 0x02, Local0)
                        Store (Local0, \_SB.PCI0.PIB.EXFE)
                    }

                    Method (EXCG, 0, NotSerialized)
                    {
                        Store (\_SB.PCI0.PIB.EXFE, Local0)
                        And (Local0, 0xFD, Local0)
                        Store (Local0, \_SB.PCI0.PIB.EXFE)
                    }

                    Method (_STA, 0, NotSerialized)
                    {
                        ENCG ()
                        Store (CRE2, Local0)
                        And (Local0, 0x04, Local0)
                        If (Local0)
                        {
                            Store (CRE7, Local1)
                            EXCG ()
                            Return (0x0F)
                        }

                        EXCG ()
                        Return (0x0D)
                    }

                    Method (_DIS, 0, NotSerialized)
                    {
                        ENCG ()
                        Store (CRE2, Local0)
                        And (Local0, 0xFB, Local0)
                        Store (Local0, CRE2)
                        Store (Zero, CRE7)
                        EXCG ()
                        Store (Zero, \_SB.PCI0.PIB.SAIQ)
                    }

                    Method (_CRS, 0, NotSerialized)
                    {
                        Name (BUF0, ResourceTemplate ()
                        {
                            IO (Decode16, 0x03F8, 0x03F8, 0x08, 0x08)
                            IRQNoFlags () {4}
                        })
                        CreateByteField (BUF0, 0x02, IOLO)
                        CreateByteField (BUF0, 0x03, IOHI)
                        CreateByteField (BUF0, 0x04, IORL)
                        CreateByteField (BUF0, 0x05, IORH)
                        CreateByteField (BUF0, 0x09, IRQL)
                        ENCG ()
                        Store (CRE7, Local0)
                        Store (Local0, Local1)
                        And (Local1, 0xC0, Local1)
                        ShiftRight (Local1, 0x06, Local1)
                        And (Local0, 0x3F, Local0)
                        ShiftLeft (Local0, 0x02, Local0)
                        Store (Local0, IOLO)
                        Store (Local1, IOHI)
                        Store (IOLO, IORL)
                        Store (IOHI, IORH)
                        EXCG ()
                        Store (\_SB.PCI0.PIB.SAIQ, Local0)
                        Store (0x01, Local1)
                        ShiftLeft (Local1, Local0, IRQL)
                        Return (BUF0)
                    }

                    Method (_SRS, 1, NotSerialized)
                    {
                        CreateByteField (Arg0, 0x02, IOLO)
                        CreateByteField (Arg0, 0x03, IOHI)
                        CreateByteField (Arg0, 0x09, IRQL)
                        ENCG ()
                        Store (CRE2, Local0)
                        And (Local0, 0xFB, Local0)
                        Store (Local0, CRE2)
                        Store (IOLO, Local0)
                        ShiftRight (Local0, 0x02, Local0)
                        And (Local0, 0xFE, Local0)
                        Store (IOHI, Local1)
                        ShiftLeft (Local1, 0x06, Local1)
                        Or (Local0, Local1, Local0)
                        Store (Local0, CRE7)
                        FindSetRightBit (IRQL, Local0)
                        Decrement (Local0)
                        Store (Local0, \_SB.PCI0.PIB.SAIQ)
                        Store (CRE2, Local0)
                        Or (Local0, 0x04, Local0)
                        Store (Local0, CRE2)
                        EXCG ()
                    }
                }

                Device (BTNS)
                {
                    Name (_HID, "Compaq TabletPC Buttons")
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16, 0x0060, 0x0060, 0x01, 0x01)
                        IO (Decode16, 0x0064, 0x0064, 0x01, 0x01)
                        IRQ (Edge, ActiveHigh, Exclusive) {1}
                    })
                    Method (_STA, 0, NotSerialized)
                    {
                        Return (0x0F)
                    }
                }


                 reply	other threads:[~2003-01-26 23:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E346937.7080100@attbi.com \
    --to=fbruno-k2gntyepumiavxtiumwx3w@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.