【龙芯固件】ACPI表中GPIO资源

一、LS3A6000桥片GPIO资源

  Device (GPO1)
  {
    Name (_HID, "LOON0007")  // _HID: Hardware ID
    Name (_ADR, Zero)  // _ADR: Address
    Name (_UID, 1)  // _UID: Unique ID
    Name (_CRS, ResourceTemplate ()  // _CRS: Current Resource Settings
    {
      QWordMemory (ResourceConsumer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
        0x0000000000000000, // Granularity
        0x000000001fe00500, // Range Minimum
        0x000000001fe00517, // Range Maximum
        0x0000000000000000, // Translation Offset
        0x0000000000000018, // Length
        ,, , AddressRangeMemory, TypeStatic)
      Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
      {
       0x00000010,
       0x00000011,
       0x00000012,
       0x00000013,
       0x00000014,
       0x00000015,
       0x00000016,
       0x00000017,
      }
    })
    Name (_DSD, Package (0x02)  // _DSD: Device-Specific Data
    {
      ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301") /* Device Properties for _DSD */,
      Package (0x07)
      {
        Package (0x02)
        {
          "conf_offset",
          0x0
        },

        Package (0x02)
        {
          "out_offset",
          0x08
        },

        Package (0x02)
        {
          "in_offset",
          0x0c
        },

        Package (0x02)
        {
          "gpio_base",
          0x00
        },

	Package (0x02)
        {
          "in_start_bit",
          0
        },

        Package (0x02)
        {
          "ngpios",
          16
        },

        Package (0x02)
        {
          "gsi_idx_map",
          Package (0x10)
          {
            0x0000,
            0x0001,
            0x0002,
            0x0003,
            0x0004,
            0x0005,
            0x0006,
            0x0007,
	    0x0000,
            0x0001,
            0x0002,
            0x0003,
            0x0004,
            0x0005,
            0x0006,
            0x0007,
          }
        }
      }
    })
  }

二、LS7A2000桥片GPIO资源

  Device (GPO0)
  {
    Name (_HID, "LOON0002")  // _HID: Hardware ID
    Name (_ADR, Zero)  // _ADR: Address
    Name (_UID, One)  // _UID: Unique ID
    Name (_CRS, ResourceTemplate ()  // _CRS: Current Resource Settings
    {
      QWordMemory (ResourceConsumer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
        0x0000000000000000, // Granularity
        0x00000000100E0000, // Range Minimum
        0x00000000100E0BFF, // Range Maximum
        0x0000000000000000, // Translation Offset
        0x0000000000000C00, // Length
        ,, , AddressRangeMemory, TypeStatic)
      Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
      {
       0x0000007C,
       0x0000007D,
       0x0000007E,
       0x0000007F,
       0x0000007B,
      }
    })
    Name (_DSD, Package (0x02)  // _DSD: Device-Specific Data
    {
      ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301") /* Device Properties for _DSD */,
      Package (0x06)
      {
        Package (0x02)
        {
          "conf_offset",
          0x800
        },

        Package (0x02)
        {
          "out_offset",
          0x900
        },

        Package (0x02)
        {
          "in_offset",
          0xa00
        },

        Package (0x02)
        {
          "gpio_base",
          32
        },

        Package (0x02)
        {
          "ngpios",
          57
        },

        Package (0x02)
        {
          "gsi_idx_map",
          Package (0x39)
          {
            0x0000,
            0x0001,
            0x0002,
            0x0003,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004,
            0x0004
          }
        }
      }
    })
  }

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

大、猫

感谢支持!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值