From 1e02e5b0ba8634758c128dcb43c67342c7219cd4 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Thu, 1 Apr 2021 18:01:03 -0400 Subject: Import ACPICA 20210331. --- source/compiler/aslresources.y | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'source/compiler/aslresources.y') diff --git a/source/compiler/aslresources.y b/source/compiler/aslresources.y index 00a0958b3a93..86c8981f79b6 100644 --- a/source/compiler/aslresources.y +++ b/source/compiler/aslresources.y @@ -190,7 +190,8 @@ ResourceMacroList ; ResourceMacroTerm - : DMATerm {} + : Csi2SerialBusTerm {} + | DMATerm {} | DWordIOTerm {} | DWordMemoryTerm {} | DWordSpaceTerm {} @@ -233,6 +234,23 @@ ResourceMacroTerm | WordSpaceTerm {} ; +Csi2SerialBusTerm + : PARSEOP_CSI2_SERIALBUS + PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_CSI2_SERIALBUS);} + OptionalSlaveMode_First {UtCheckIntegerRange ($4, 0x00, 0x01);} /* 04: SlaveMode */ + ',' ByteConstExpr {UtCheckIntegerRange ($7, 0x00, 0x03);} /* 07: PhyType */ + OptionalByteConstExpr {UtCheckIntegerRange ($9, 0x00, 0xFC);} /* 09: LocalPortInstance */ + ',' StringData /* 12: ResourceSource */ + ',' ByteConstExpr /* 14: ResourceSourceIndex */ + OptionalResourceType /* 15; ResourceType (ResourceUsage) */ + OptionalNameString /* 16: DescriptorName */ + OptionalBuffer_Last /* 17: VendorData */ + PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,8, + $4,$7,$9,$12,$14,$15,$16,$17);} + | PARSEOP_CSI2_SERIALBUS + PARSEOP_OPEN_PAREN + error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} + DMATerm : PARSEOP_DMA PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_DMA);} -- cgit v1.3