mainboard.asl 786 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. /* Power Button */
  7. Device (PWRB)
  8. {
  9. Name(_HID, EISAID("PNP0C0C"))
  10. }
  11. /* PS/2 keyboard and mouse */
  12. Scope (\_SB.PCI0.LPCB)
  13. {
  14. /* 8042 Keyboard */
  15. Device (PS2K)
  16. {
  17. Name(_HID, EISAID("PNP0303"))
  18. Name(_CRS, ResourceTemplate()
  19. {
  20. IO(Decode16, 0x60, 0x60, 0x00, 0x01)
  21. IO(Decode16, 0x64, 0x64, 0x00, 0x01)
  22. IRQNoFlags() { 1 }
  23. })
  24. Method(_STA, 0, Serialized)
  25. {
  26. Return (STA_VISIBLE)
  27. }
  28. }
  29. /* 8042 Mouse */
  30. Device (PS2M)
  31. {
  32. Name(_HID, EISAID("PNP0F03"))
  33. Name(_CRS, ResourceTemplate()
  34. {
  35. IO(Decode16, 0x60, 0x60, 0x00, 0x01)
  36. IO(Decode16, 0x64, 0x64, 0x00, 0x01)
  37. IRQNoFlags() { 12 }
  38. })
  39. Method(_STA, 0, Serialized)
  40. {
  41. Return (STA_VISIBLE)
  42. }
  43. }
  44. }