summaryrefslogtreecommitdiff
path: root/ReferenceCode/AcpiTables/Dptf/AcpiTables/DplyParticipant.asl
blob: d27182cc6f765687961907c3dae0023257435a56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
/*++
  This file contains an 'Intel Peripheral Driver' and uniquely  
  identified as "Intel Reference Module" and is                 
  licensed for Intel CPUs and chipsets under the terms of your  
  license agreement with Intel or your vendor.  This file may   
  be modified by the user, subject to additional terms of the   
  license agreement                                             
--*/

/*++

Copyright (c) 1999 - 2013 Intel Corporation. All rights reserved
This software and associated documentation (if any) is furnished
under a license and may only be used or copied in accordance
with the terms of the license. Except as permitted by such
license, no part of this software or documentation may be
reproduced, stored in a retrieval system, or transmitted in any
form or by any means without the express written consent of
Intel Corporation.

Module Name:

  DplyParticipant.asl

Abstract:

  Intel ACPI Reference Code for Dynamic Platform & Thermal Framework 

--*/
Scope(\_SB.PCI0)
{

  Device(DPLY)  // Display participant
  {
    Name(_HID, EISAID("INT3406"))
    Name(_UID, 0)

    Name(BDLI, 32)  // Brightness depth limit index corresponding to 30%
    Name(BDHI, 82) // Brightness peformance/power ceiling limit index corresponding to 80%


    // _STA (Status)
    //
    // This object returns the current status of a device.
    //
    // Arguments: (0)
    //   None
    // Return Value:
    //   An Integer containing a device status bitmap:
    //    Bit 0 - Set if the device is present.
    //    Bit 1 - Set if the device is enabled and decoding its resources.
    //    Bit 2 - Set if the device should be shown in the UI.
    //    Bit 3 - Set if the device is functioning properly (cleared if device failed its diagnostics).
    //    Bit 4 - Set if the battery is present.
    //    Bits 5-31 - Reserved (must be cleared).
    //
    Method(_STA)
    {
      If (LEqual(DISE,1)){
        Return(0x0F)
      } Else {
        Return(0x00)
      }
    }

    // DDDL ( Dptf Display Depth Limit)
    //
    // The DDDL object indicates dynamically a lower limit on the brightness control levels currently supported by the platform 
    // for the participant. Value returned indicates a Power/Percentage value that is in the _BCL brightness list.
    //
    // Arguments: (0)
    //   None
    // Return Value:
    //   Index in Brightness level list
    //
    Method(DDDL, 0)
    {
      Return(BDLI)
    }

    // DDPC ( Dptf Display Power/performance Control)
    //
    // The DDPC object indicates dynamically a higher limit (ceiling) on the brightness control levels currently supported by 
    // the platform for the participant.
    //
    // Arguments: (0)
    //   None
    // Return Value:
    //   Index in Brightness level list
    //
    Method(DDPC, 0)
    {
      Return(BDHI)
    }

    // _BCL (Query List of Brightness Control Levels Supported)
    //
    // Arguments: (0)
    //   None
    // Return Value:
    //   A variable-length Package containing a list of Integers representing the supported brightness levels. 
    //   Each integer has 8 bits of significant data.
    //    List of supported brightness levels in the following sequence:
    //     Level when machine has full power.
    //     Level when machine is on batteries.
    //     Other supported levels.
    //     Package(){80, 50, 0, 1, 2, 3, 4, 5, ..., 96, 97, 98, 99, 100}
    //
    Method(_BCL,,,,PkgObj)
    {
      If(CondRefOf(\_SB.PCI0.GFX0.DD1F._BCL))
      {
        Return(\_SB.PCI0.GFX0.DD1F._BCL())
      } Else {
        Return(Package(){0})
      }
    }

    // _BCM (Set the Brightness Level)
    //
    // Arguments: (1)
    //   Arg0 - An Integer containing the new brightness level
    // Return Value:
    //   None
    //
    Method(_BCM,1)
    {
      If(CondRefOf(\_SB.PCI0.GFX0.DD1F._BCM))
      {
        \_SB.PCI0.GFX0.DD1F._BCM(Arg0)
      }
    }

    // _BQC (Brightness Query Current level)
    //
    // Arguments: (0)
    //   None
    // Return Value:
    //   An Integer containing the current brightness level (must be one of the values returned from the _BCL method)
    //
    Method(_BQC,0)
    {
      If(CondRefOf(\_SB.PCI0.GFX0.DD1F._BQC))
      {
        Return(\_SB.PCI0.GFX0.DD1F._BQC())
      } Else {
        Return(0x00)
      }
    }

    // _DCS (Return the Status of Output Device)
    //
    //Arguments: (0)
    //   None
    // Return Value:
    //   An Integer containing the device status (32 bits)
    //   Bit Definitions
    //   [0] - Output connector exists in the system now
    //   [1] - Output is activated
    //   [2] - Output is ready to switch
    //   [3] - Output is not defective (it is functioning properly)
    //   [4] - Device is attached (this is optional)
    //   [31:5] Reserved (must be zero)
    //
    Method(_DCS,0)
    {
      If(CondRefOf(\_SB.PCI0.GFX0.DD1F._DCS))
      {
        Return(\_SB.PCI0.GFX0.DD1F._DCS())
      } Else {
        Return(0x00)
      }
    }

  } // End DPLY Device
}// end Scope(\_SB.PCI0)