1 /* 2 * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without modification, 6 * are permitted provided that the following conditions are met: 7 * 8 * Redistributions of source code must retain the above copyright notice, 9 * this list of conditions and the following disclaimer. 10 * Redistributions in binary form must reproduce the above copyright notice, 11 * this list of conditions and the following disclaimer in the documentation 12 * and/or other materials provided with the distribution. 13 * Neither the name of Intel Corporation nor the names of its contributors 14 * may be used to endorse or promote products derived from this software 15 * without specific prior written permission. 16 * 17 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 /* 29 * Resource Descriptor macros 30 * 31 * I2cSerialBus Resource Descriptor Macro 32 */ 33 Device (I2C) 34 { 35 } 36 37 Name (P456, Package (0x12) 38 { 39 ResourceTemplate () 40 { 41 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 42 AddressingMode7Bit, "\\I2C", 43 0xEE, ResourceConsumer, , Shared, 44 RawDataBuffer (0x04) // Vendor Data 45 { 46 0xB1, 0xB2, 0xB3, 0xB4 47 }) 48 }, 49 50 ResourceTemplate () 51 { 52 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 53 AddressingMode10Bit, "\\I2C", 54 0xEE, ResourceConsumer, , Shared, 55 RawDataBuffer (0x04) // Vendor Data 56 { 57 0xB1, 0xB2, 0xB3, 0xB4 58 }) 59 }, 60 61 ResourceTemplate () 62 { 63 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 64 AddressingMode7Bit, "\\I2C", 65 0xEE, ResourceConsumer, , Shared, 66 RawDataBuffer (0x04) // Vendor Data 67 { 68 0xB1, 0xB2, 0xB3, 0xB4 69 }) 70 }, 71 72 ResourceTemplate () 73 { 74 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 75 AddressingMode10Bit, "\\I2C", 76 0xEE, ResourceConsumer, , Shared, 77 RawDataBuffer (0x04) // Vendor Data 78 { 79 0xB1, 0xB2, 0xB3, 0xB4 80 }) 81 }, 82 83 ResourceTemplate () 84 { 85 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 86 AddressingMode7Bit, "\\I2C", 87 0xEE, ResourceProducer, , Shared, 88 RawDataBuffer (0x04) // Vendor Data 89 { 90 0xB1, 0xB2, 0xB3, 0xB4 91 }) 92 }, 93 94 ResourceTemplate () 95 { 96 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 97 AddressingMode10Bit, "\\I2C", 98 0xEE, ResourceProducer, , Shared, 99 RawDataBuffer (0x04) // Vendor Data 100 { 101 0xB1, 0xB2, 0xB3, 0xB4 102 }) 103 }, 104 105 ResourceTemplate () 106 { 107 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 108 AddressingMode7Bit, "\\I2C", 109 0xEE, ResourceProducer, , Shared, 110 RawDataBuffer (0x04) // Vendor Data 111 { 112 0xB1, 0xB2, 0xB3, 0xB4 113 }) 114 }, 115 116 ResourceTemplate () 117 { 118 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 119 AddressingMode10Bit, "\\I2C", 120 0xEE, ResourceProducer, , Shared, 121 RawDataBuffer (0x04) // Vendor Data 122 { 123 0xB1, 0xB2, 0xB3, 0xB4 124 }) 125 }, 126 127 ResourceTemplate () 128 { 129 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 130 AddressingMode7Bit, "\\I2C", 131 0xEE, ResourceConsumer, , Shared, 132 ) 133 }, 134 135 ResourceTemplate () 136 { 137 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 138 AddressingMode10Bit, "\\I2C", 139 0xEE, ResourceConsumer, , Exclusive, 140 ) 141 }, 142 143 ResourceTemplate () 144 { 145 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 146 AddressingMode7Bit, "\\I2C", 147 0xEE, ResourceConsumer, , Exclusive, 148 ) 149 }, 150 151 ResourceTemplate () 152 { 153 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 154 AddressingMode10Bit, "\\I2C", 155 0xEE, ResourceConsumer, , Exclusive, 156 ) 157 }, 158 159 ResourceTemplate () 160 { 161 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 162 AddressingMode7Bit, "\\I2C", 163 0xEE, ResourceProducer, , Shared, 164 ) 165 }, 166 167 ResourceTemplate () 168 { 169 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 170 AddressingMode10Bit, "\\I2C", 171 0xEE, ResourceProducer, , Exclusive, 172 ) 173 }, 174 175 ResourceTemplate () 176 { 177 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 178 AddressingMode7Bit, "\\I2C", 179 0xEE, ResourceProducer, , Exclusive, 180 ) 181 }, 182 183 ResourceTemplate () 184 { 185 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 186 AddressingMode10Bit, "\\I2C", 187 0xEE, ResourceProducer, , Shared, 188 ) 189 }, 190 191 ResourceTemplate () 192 { 193 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 194 AddressingMode7Bit, "\\I2C", 195 0x00, ResourceConsumer, , Exclusive, 196 ) 197 }, 198 199 ResourceTemplate () 200 { 201 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 202 AddressingMode10Bit, "\\I2C", 203 0xEE, ResourceProducer, , Shared, 204 RawDataBuffer (0x168) // Vendor Data 205 { 206 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 207 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 208 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 209 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 210 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 211 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 212 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 213 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 214 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 215 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 216 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 217 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 218 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 219 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 220 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 221 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 222 0xB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5, 0xB6, 0xB7, 0xB8, 243 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 244 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 245 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 246 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 247 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 248 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 249 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 250 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8 251 }) 252 } 253 }) 254 Name (P457, Package (0x12) 255 { 256 ResourceTemplate () 257 { 258 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 259 AddressingMode7Bit, "\\I2C", 260 0xEE, ResourceConsumer, , Shared, 261 RawDataBuffer (0x04) // Vendor Data 262 { 263 0xB1, 0xB2, 0xB3, 0xB4 264 }) 265 }, 266 267 ResourceTemplate () 268 { 269 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 270 AddressingMode10Bit, "\\I2C", 271 0xEE, ResourceConsumer, , Shared, 272 RawDataBuffer (0x04) // Vendor Data 273 { 274 0xB1, 0xB2, 0xB3, 0xB4 275 }) 276 }, 277 278 ResourceTemplate () 279 { 280 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 281 AddressingMode7Bit, "\\I2C", 282 0xEE, ResourceConsumer, , Shared, 283 RawDataBuffer (0x04) // Vendor Data 284 { 285 0xB1, 0xB2, 0xB3, 0xB4 286 }) 287 }, 288 289 ResourceTemplate () 290 { 291 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 292 AddressingMode10Bit, "\\I2C", 293 0xEE, ResourceConsumer, , Shared, 294 RawDataBuffer (0x04) // Vendor Data 295 { 296 0xB1, 0xB2, 0xB3, 0xB4 297 }) 298 }, 299 300 ResourceTemplate () 301 { 302 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 303 AddressingMode7Bit, "\\I2C", 304 0xEE, ResourceProducer, , Shared, 305 RawDataBuffer (0x04) // Vendor Data 306 { 307 0xB1, 0xB2, 0xB3, 0xB4 308 }) 309 }, 310 311 ResourceTemplate () 312 { 313 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 314 AddressingMode10Bit, "\\I2C", 315 0xEE, ResourceProducer, , Shared, 316 RawDataBuffer (0x04) // Vendor Data 317 { 318 0xB1, 0xB2, 0xB3, 0xB4 319 }) 320 }, 321 322 ResourceTemplate () 323 { 324 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 325 AddressingMode7Bit, "\\I2C", 326 0xEE, ResourceProducer, , Shared, 327 RawDataBuffer (0x04) // Vendor Data 328 { 329 0xB1, 0xB2, 0xB3, 0xB4 330 }) 331 }, 332 333 ResourceTemplate () 334 { 335 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 336 AddressingMode10Bit, "\\I2C", 337 0xEE, ResourceProducer, , Shared, 338 RawDataBuffer (0x04) // Vendor Data 339 { 340 0xB1, 0xB2, 0xB3, 0xB4 341 }) 342 }, 343 344 ResourceTemplate () 345 { 346 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 347 AddressingMode7Bit, "\\I2C", 348 0xEE, ResourceConsumer, , Shared, 349 ) 350 }, 351 352 ResourceTemplate () 353 { 354 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 355 AddressingMode10Bit, "\\I2C", 356 0xEE, ResourceConsumer, , Exclusive, 357 ) 358 }, 359 360 ResourceTemplate () 361 { 362 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 363 AddressingMode7Bit, "\\I2C", 364 0xEE, ResourceConsumer, , Exclusive, 365 ) 366 }, 367 368 ResourceTemplate () 369 { 370 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 371 AddressingMode10Bit, "\\I2C", 372 0xEE, ResourceConsumer, , Exclusive, 373 ) 374 }, 375 376 ResourceTemplate () 377 { 378 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 379 AddressingMode7Bit, "\\I2C", 380 0xEE, ResourceProducer, , Shared, 381 ) 382 }, 383 384 ResourceTemplate () 385 { 386 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 387 AddressingMode10Bit, "\\I2C", 388 0xEE, ResourceProducer, , Exclusive, 389 ) 390 }, 391 392 ResourceTemplate () 393 { 394 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 395 AddressingMode7Bit, "\\I2C", 396 0xEE, ResourceProducer, , Exclusive, 397 ) 398 }, 399 400 ResourceTemplate () 401 { 402 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 403 AddressingMode10Bit, "\\I2C", 404 0xEE, ResourceProducer, , Shared, 405 ) 406 }, 407 408 ResourceTemplate () 409 { 410 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 411 AddressingMode7Bit, "\\I2C", 412 0x00, ResourceConsumer, , Exclusive, 413 ) 414 }, 415 416 ResourceTemplate () 417 { 418 I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, 419 AddressingMode10Bit, "\\I2C", 420 0xEE, ResourceProducer, , Shared, 421 RawDataBuffer (0x168) // Vendor Data 422 { 423 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 424 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 425 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 426 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 427 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 428 0xB1, 0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DR (__METHOD__, "I2cSerialBus Resource Descriptor Macro", "i2cserialbus.asl") 476 /* The main test packages must have the same number of entries */ 477 478 If ((SizeOf (P456) != SizeOf (P457))) 479 { 480 ERR (__METHOD__, 0xB4, __LINE__, 0x00, 0x00, 0x00, "Incorrect package length") 481 Return (Zero) 482 } 483 484 /* Main test case for packages above */ 485 486 M330 (__METHOD__, SizeOf (P456), "p456", P456, P457) 487 /* Check resource descriptor tag offsets */ 488 489 Local0 = ResourceTemplate () 490 { 491 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 492 AddressingMode10Bit, "\\I2C", 493 0xEE, ResourceConsumer, , Exclusive, 494 RawDataBuffer (0x04) // Vendor Data 495 { 496 0xB1, 0xB2, 0xB3, 0xB4 497 }) 498 I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, 499 AddressingMode10Bit, "\\I2C", 500 0xEE, ResourceConsumer, , Exclusive, 501 RawDataBuffer (0x04) // Vendor Data 502 { 503 0xB1, 0xB2, 0xB3, 0xB4 504 }) 505 } 506 M331 (__METHOD__, 0x01, 0x30, 0x30, 0x0108, 0x0108, "_SLV") 507 M331 (__METHOD__, 0x02, 0x38, 0x38, 0x0110, 0x0110, "_MOD") 508 M331 (__METHOD__, 0x03, 0x60, 0x60, 0x0138, 0x0138, "_SPE") 509 M331 (__METHOD__, 0x04, 0x80, 0x80, 0x0158, 0x0158, "_ADR") 510 M331 (__METHOD__, 0x05, 0x90, 0x90, 0x0168, 0x0168, "_VEN") 511 } 512