1 //
2 // Copyright (c) 2010-2024 Antmicro
3 //
4 // This file is licensed under the MIT License.
5 // Full license text is available in 'licenses/MIT.txt'.
6 //
7 
8 using System.Text;
9 using Antmicro.Renode.Utilities.Packets;
10 
11 namespace Antmicro.Renode.Core.ACPI
12 {
13     [LeastSignificantByteFirst]
14     public struct RootSystemDescriptionTable
15     {
RootSystemDescriptionTableAntmicro.Renode.Core.ACPI.RootSystemDescriptionTable16         public RootSystemDescriptionTable(uint pointerToOtherSystemDescriptionTable0, uint pointerToOtherSystemDescriptionTable1)
17         {
18             Header = new SystemDescriptionTableHeader {
19                 Signature = Encoding.ASCII.GetBytes("RSDT"),
20                 TableLength = (uint)Packet.CalculateLength<RootSystemDescriptionTable>()
21             };
22             PointerToOtherSystemDescriptionTable0 = pointerToOtherSystemDescriptionTable0;
23             PointerToOtherSystemDescriptionTable1 = pointerToOtherSystemDescriptionTable1;
24         }
25 
26         [PacketField]
27         public SystemDescriptionTableHeader Header;
28         [PacketField]
29         public uint PointerToOtherSystemDescriptionTable0;
30         [PacketField]
31         public uint PointerToOtherSystemDescriptionTable1;
32     }
33 }
34