[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ACPI method calling questions



Anish Mistry wrote:
	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,


See the implementation of acpi_SetInteger(). You have to create an package of integer objects and then call AcpiEvaluateObject().

--
Nate