Rev 1498 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1498 | Rev 2216 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | Name (PATH, Buffer() {"\_SB_.PCI2._CRS"}) |
33 | Name (PATH, Buffer() {"\_SB_.PCI2._CRS"}) |
Line 34... | Line 34... | ||
34 | 34 | ||
Line 35... | Line 35... | ||
35 | // Invalid hex escape sequence |
35 | // Invalid hex escape sequence |
36 | 36 | ||
37 | Name (ESC1, "abcdefg\x00hijklmn") |
37 | Name (ESC1, "abcdefg\x00hijklmn") |
Line 38... | Line 38... | ||
38 | 38 | ||
39 | // Field access beyond region bounds |
39 | // Field access beyond region bounds |
40 | 40 | ||
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 -... | Line 117... | ||
- | 117 | } |
|
- | 118 | ||
- | 119 | // Method MTH4 does not explicitly return a value |
|
- | 120 | ||
- | 121 | Method (MTH4) {Return} |
|
117 | } |
122 | Method (MTH5) {Store (MTH4(), Local0)} |
Line -... | Line 123... | ||
- | 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 () |
148 | { |
210 | { |
Line 149... | Line 211... | ||
149 | // Illegal nested StartDependent macros |
211 | // Illegal nested StartDependent macros |
150 | 212 | ||
151 | StartDependentFn (0, 0) |
213 | StartDependentFn (0, 0) |
152 | { |
214 | { |
153 | StartDependentFn (0, 0) |
215 | StartDependentFn (0, 0) |
154 | { |
216 | { |
Line 155... | Line 217... | ||
155 | } |
217 | } |
156 | } |
218 | } |
Line 157... | Line 219... | ||
157 | 219 | ||
158 | // Missing EndDependentFn macro |
220 | // Missing EndDependentFn macro |
159 | }) |
221 | }) |
Line 189... | Line 251... | ||
189 | 0xFFFF, // Address |
251 | 0xFFFF, // Address |
190 | 0x20, // Length |
252 | 0x20, // Length |
191 | ) |
253 | ) |
Line 192... | Line 254... | ||
192 | 254 | ||
193 | // Invalid AccessSize parameter |
255 | // Invalid AccessSize parameter |
194 | Register (SystemIO, |
256 | Register (SystemIO, |
195 | 0x08, // Bit Width |
257 | 0x08, // Bit Width |
196 | 0x00, // Bit Offset |
258 | 0x00, // Bit Offset |
197 | 0x0000000000000100, // Address |
259 | 0x0000000000000100, // Address |
198 | 0x05 // Access Size |
260 | 0x05 // Access Size |
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 () |