singrdk/base/Kernel/Singularity/SmapInfo.cs

68 lines
2.4 KiB
C#
Raw Permalink Normal View History

2008-03-05 09:52:00 -05:00
///////////////////////////////////////////////////////////////////////////////
//
// Microsoft Research Singularity
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// File: SmapInfo.sg
//
// Note:
// Section 14 System Address Map Interfaces,
// ACPI revision 3.0, September 2, 2004
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
namespace Microsoft.Singularity
{
[StructLayout(LayoutKind.Sequential)]
2008-11-17 18:29:00 -05:00
[CLSCompliant(false)]
[AccessedByRuntime("referenced from c++")]
public struct SMAPINFO
2008-03-05 09:52:00 -05:00
{
[AccessedByRuntime("referenced from c++")]
2008-11-17 18:29:00 -05:00
public const uint AddressTypeFree = 1;
2008-03-05 09:52:00 -05:00
[AccessedByRuntime("referenced from c++")]
2008-11-17 18:29:00 -05:00
public const uint AddressTypeReserved = 2;
2008-03-05 09:52:00 -05:00
[AccessedByRuntime("referenced from c++")]
2008-11-17 18:29:00 -05:00
public const uint AddressTypeACPI = 3;
2008-03-05 09:52:00 -05:00
[AccessedByRuntime("referenced from c++")]
2008-11-17 18:29:00 -05:00
public const uint AddressTypeNVS = 4;
2008-03-05 09:52:00 -05:00
[AccessedByRuntime("referenced from c++")]
2008-11-17 18:29:00 -05:00
public const uint AddressTypeUnusable = 5;
2008-03-05 09:52:00 -05:00
[AccessedByRuntime("referenced from c++")]
2008-11-17 18:29:00 -05:00
public const uint AddressTypeKernelNonGc = 6;
[AccessedByRuntime("referenced from c++")]
public const uint AddressTypeKernelStack = 7;
[AccessedByRuntime("referenced from c++")]
public const uint AddressTypeMax = 7;
2008-03-05 09:52:00 -05:00
[AccessedByRuntime("referenced from c++")]
2008-11-17 18:29:00 -05:00
public const uint ExtendedAttributeRangeEnabled = 1;
2008-03-05 09:52:00 -05:00
[AccessedByRuntime("referenced from c++")]
2008-11-17 18:29:00 -05:00
public const uint ExtendedAttributeRangeNV = 2;
2008-03-05 09:52:00 -05:00
[AccessedByRuntime("referenced from c++")]
2008-11-17 18:29:00 -05:00
public ulong addr;
2008-03-05 09:52:00 -05:00
[AccessedByRuntime("referenced from c++")]
2008-11-17 18:29:00 -05:00
public ulong size;
2008-03-05 09:52:00 -05:00
[AccessedByRuntime("referenced from c++")]
2008-11-17 18:29:00 -05:00
public uint type;
2008-03-05 09:52:00 -05:00
[AccessedByRuntime("referenced from c++")]
2008-11-17 18:29:00 -05:00
public uint extendedAttributes;
2008-03-05 09:52:00 -05:00
2008-11-17 18:29:00 -05:00
public enum AddressType : uint
2008-03-05 09:52:00 -05:00
{
Free = AddressTypeFree,
Reserved = AddressTypeReserved,
ACPI = AddressTypeACPI,
NVS = AddressTypeNVS,
Unusable = AddressTypeUnusable,
2008-11-17 18:29:00 -05:00
KernelNonGc = AddressTypeKernelNonGc,
KernelStack = AddressTypeKernelStack,
2008-03-05 09:52:00 -05:00
Max = AddressTypeMax
}
}
}