LpcB.asl 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /** @file
  2. ACPI DSDT table
  3. Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. // LPC Bridge - Device 31, Function 0
  7. scope (\_SB.PCI0.LPCB) {
  8. Include ("LPC_DEV.ASL")
  9. // Define the KBC_COMMAND_REG-64, KBC_DATA_REG-60 Registers as an ACPI Operating
  10. // Region. These registers will be used to skip kbd mouse
  11. // resource settings if not present.
  12. OperationRegion(PKBS, SystemIO, 0x60, 0x05)
  13. Field(PKBS, ByteAcc, Lock, Preserve)
  14. {
  15. PKBD, 8,
  16. , 8,
  17. , 8,
  18. , 8,
  19. PKBC, 8
  20. }
  21. Device(PS2K) // PS2 Keyboard
  22. {
  23. Name(_HID,"MSFT0001")
  24. Name(_CID,EISAID("PNP0303"))
  25. Method(_STA)
  26. {
  27. If (P2MK) //Ps2 Keyboard and Mouse Enable
  28. {
  29. Return(0x000F)
  30. }
  31. Return(0x0000)
  32. }
  33. Name(_CRS,ResourceTemplate()
  34. {
  35. IO(Decode16,0x60,0x60,0x01,0x01)
  36. IO(Decode16,0x64,0x64,0x01,0x01)
  37. IRQ(Edge,ActiveHigh,Exclusive){0x01}
  38. })
  39. Name(_PRS, ResourceTemplate(){
  40. StartDependentFn(0, 0) {
  41. FixedIO(0x60,0x01)
  42. FixedIO(0x64,0x01)
  43. IRQNoFlags(){1}
  44. }
  45. EndDependentFn()
  46. })
  47. }
  48. Device(PS2M) // PS/2 Mouse
  49. {
  50. Name(_HID,"MSFT0003")
  51. Name(_CID,EISAID("PNP0F03"))
  52. Method(_STA)
  53. {
  54. If (P2ME) //Ps2 Mouse Enable
  55. {
  56. If (P2MK) //Ps2 Keyboard and Mouse Enable
  57. {
  58. Return(0x000F)
  59. }
  60. }
  61. Return(0x0000)
  62. }
  63. Name(_CRS,ResourceTemplate()
  64. {
  65. IRQ(Edge,ActiveHigh,Exclusive){0x0C}
  66. })
  67. Name(_PRS, ResourceTemplate(){
  68. StartDependentFn(0, 0) {
  69. IRQNoFlags(){12}
  70. }
  71. EndDependentFn()
  72. })
  73. }
  74. }