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 FixedACPIDescriptionTable 15 { FixedACPIDescriptionTableAntmicro.Renode.Core.ACPI.FixedACPIDescriptionTable16 public FixedACPIDescriptionTable(uint tableLength, uint extendedDSDTPointer) 17 { 18 Header = new SystemDescriptionTableHeader { 19 Signature = Encoding.ASCII.GetBytes("FACP"), 20 TableLength = tableLength 21 }; 22 23 ExtendedDSDTPointer = extendedDSDTPointer; 24 } 25 26 [PacketField] 27 public SystemDescriptionTableHeader Header; 28 29 // Rest of the fields are omitted, as they aren't currently needed. 30 31 [PacketField, Offset(bytes: 0x8c)] 32 public uint ExtendedDSDTPointer; 33 } 34 } 35