QNC.asi 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /** @file
  2. QNC devices
  3. Copyright (c) 2013-2015 Intel Corporation.
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef QNC_ASI
  7. #define QNC_ASI
  8. Device(IOCM) // I/O controller miscellaneous
  9. {
  10. Name(_HID,EISAID("PNP0C02")) // System board resources device node ID
  11. Name(CRS, ResourceTemplate()
  12. {
  13. // PCIEXBAR memory range
  14. Memory32Fixed(ReadOnly, 0, 0, FIX1)
  15. // RCRB memory range
  16. Memory32Fixed(ReadOnly, 0, 0, FIX2)
  17. // Option ROM shadow memory range
  18. Memory32Fixed(ReadOnly, 0x000C0000, 0x20000)
  19. // BIOS ROM shadow memory range
  20. Memory32Fixed(ReadOnly, 0x000E0000, 0x20000)
  21. // BIOS Firmware just below 4GByte of memory 8MBytes
  22. Memory32Fixed(ReadOnly, 0xFF800000, 0x800000)
  23. }
  24. )
  25. Method (_CRS, 0, NotSerialized) {
  26. CreateDWordField (CRS, ^FIX1._BAS, MBR0)
  27. Store(\PEXB, MBR0)
  28. CreateDWordField (CRS, ^FIX1._LEN, MBR1)
  29. Store(\PEXS, MBR1)
  30. CreateDWordField (CRS, ^FIX2._BAS, MBR2)
  31. Store(\RCBB, MBR2)
  32. CreateDWordField (CRS, ^FIX2._LEN, MBR3)
  33. Store(\RCBS, MBR3)
  34. Return (CRS)
  35. }
  36. }
  37. #endif