ACPI method calling questions

Anish Mistry mistry.7 at osu.edu
Sun Jan 29 00:21:28 PST 2006


	If I has a ACPI device method like:
            Method (FUNC, 4, Serialized)
            {
                Store (0x80000000, Local0)
                If (LEqual (Arg0, 0x1001))
                {
                    Store (S001 (Arg1, Arg2, Arg3), Local0)
                }
                Else
                {
                    If (LEqual (Arg0, 0x1002))
                    {
                        Store (S002 (Arg1, Arg2, Arg3), Local0)
                    }
                    Else
                    {
                        If (LEqual (Arg0, 0x1004))
                        {
                            Store (S004 (Arg1, Arg2, Arg3), Local0)
                        }
                    }
                }

                Return (Local0)
            }
How would I go about calling it from my driver?  Like for a single 
argument set method I'd just do acpi_SetInteger.

Thanks,

-- 
Anish Mistry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-acpi/attachments/20060129/ecdb9e60/attachment.bin


More information about the freebsd-acpi mailing list