Subversion Repositories Kolibri OS

Rev

Rev 1498 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1498 Rev 2216
Line 114... Line 114...
114
        // Method MTH2 above does not always return a value
114
        // Method MTH2 above does not always return a value
Line 115... Line 115...
115
 
115
 
116
        Store (MTH2 (), Local0)
116
        Store (MTH2 (), Local0)
Line 117... Line 117...
117
    }
117
    }
Line -... Line 118...
-
 
118
 
-
 
119
    // Method MTH4 does not explicitly return a value
-
 
120
    
-
 
121
    Method (MTH4) {Return}
-
 
122
    Method (MTH5) {Store (MTH4(), Local0)}
-
 
123
    
-
 
124
    // Invalid _HID values
118
 
125
 
-
 
126
    Device (H1)
-
 
127
    {
-
 
128
        Name (_HID, "*PNP0C0A")     // Illegal leading asterisk
-
 
129
    }
-
 
130
    Device (H2)
-
 
131
    {
-
 
132
        Name (_HID, "PNP")          // Too short, must be 7 or 8 chars
-
 
133
    }
-
 
134
    Device (H3)
-
 
135
    {
-
 
136
        Name (_HID, "MYDEVICE01")   // Too long, must be 7 or 8 chars
-
 
137
    }
-
 
138
    Device (H4)
-
 
139
    {
-
 
140
        Name (_HID, "acpi0001")     // non-hex chars must be uppercase
-
 
141
    }
-
 
142
    Device (H5)
-
 
143
    {
-
 
144
        Name (_HID, "PNP-123")      // HID must be alphanumeric
-
 
145
    }
-
 
146
    Device (H6)
-
 
147
    {
Line 119... Line 148...
119
    // Invalid _HID value
148
        Name (_HID, "")             // Illegal Null HID
Line 120... Line 149...
120
 
149
        Name (_CID, "")             // Illegal Null CID
121
    Name (_HID, "*PNP0C0A")
150
    }
Line 139... Line 168...
139
    Name (_Q03, 3)
168
    Name (_Q03, 3)
140
    Name (_ON,  0)
169
    Name (_ON,  0)
141
    Name (_INI, 1)
170
    Name (_INI, 1)
142
    Name (_PTP, 2)
171
    Name (_PTP, 2)
Line -... Line 172...
-
 
172
 
-
 
173
    // GPE methods that cause type collision (L vs. E)
-
 
174
 
-
 
175
    Scope (\_GPE)
-
 
176
    {
-
 
177
        Method (_L1D)
-
 
178
        {
-
 
179
        }
-
 
180
        Method (_E1D)
-
 
181
        {
-
 
182
        }
-
 
183
    }
-
 
184
 
-
 
185
    // Predefined names that should not have a return value
-
 
186
 
-
 
187
    Method (_FDM, 1)
-
 
188
    {
-
 
189
        Return (Buffer(1){0x33})
-
 
190
    }
-
 
191
    Method (_Q22)
-
 
192
    {
-
 
193
        Return ("Unexpected Return Value")
-
 
194
    }
-
 
195
 
-
 
196
    // _REG must have a corresponding Operation Region declaration
-
 
197
    // within the same scope
-
 
198
 
-
 
199
    Device (EC)
-
 
200
    {
-
 
201
        Method (_REG, 2)
-
 
202
        {
-
 
203
        }
-
 
204
    }
143
 
205
 
144
    /*
206
    /*
145
     * Resource Descriptor error checking
207
     * Resource Descriptor error checking
146
     */
208
     */
147
    Name (RSC1, ResourceTemplate ()
209
    Name (RSC1, ResourceTemplate ()
Line 285... Line 347...
285
            0x000C8FFF,         // Range Maximum
347
            0x000C8FFF,         // Range Maximum
286
            0x00000000,         // Translation Offset
348
            0x00000000,         // Translation Offset
287
            0x00001000,         // Length
349
            0x00001000,         // Length
288
            ,, )
350
            ,, )
Line -... Line 351...
-
 
351
 
-
 
352
        // Null descriptor (intended to be modified at runtime) must
-
 
353
        // have a resource tag (to allow it to be modified at runtime)
-
 
354
        DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
-
 
355
            0x00000000,         // Granularity
-
 
356
            0x00000000,         // Range Minimum
-
 
357
            0x00000000,         // Range Maximum
-
 
358
            0x00000000,         // Translation Offset
-
 
359
            0x00000000,         // Length
-
 
360
            ,, )
289
 
361
 
Line 290... Line 362...
290
        // Missing StartDependentFn macro
362
        // Missing StartDependentFn macro
291
 
363
 
292
        EndDependentFn ()
364
        EndDependentFn ()