object_type.asl 443 B

12345678910111213141516171819
  1. DefinitionBlock("object_type.aml", "DSDT", 1, "RSACPI", "OBJTYP", 1) {
  2. Name(INT, 723)
  3. Name(STR, "Hello, World!")
  4. Name(BUFF, Buffer { 7, 2, 3, 5, 92, 6 })
  5. // TODO: more types
  6. Device(TYPS) {
  7. // This is just so it compiles
  8. Name (_HID, EisaId ("PNP0A03"))
  9. Name(INT, 0) // Should be `1`
  10. Name(STR, 0) // Should be `2`
  11. Name(BUFF, 0) // Should be `3`
  12. INT = ObjectType(\INT)
  13. STR = ObjectType(\STR)
  14. BUFF = ObjectType(\BUFF)
  15. }
  16. }