44 lines
1.0 KiB
C#
44 lines
1.0 KiB
C#
|
///////////////////////////////////////////////////////////////////////////////
|
||
|
//
|
||
|
// Microsoft Research Singularity
|
||
|
//
|
||
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
//
|
||
|
// File: IHalMemory.cs
|
||
|
//
|
||
|
//
|
||
|
// Note:
|
||
|
//
|
||
|
|
||
|
using System;
|
||
|
|
||
|
namespace Microsoft.Singularity.Hal
|
||
|
{
|
||
|
[CLSCompliant(false)]
|
||
|
public abstract class IHalMemory
|
||
|
{
|
||
|
|
||
|
public struct ProcessorAffinity
|
||
|
{
|
||
|
public uint domain;
|
||
|
public uint apicId;
|
||
|
public uint flagIgnore;
|
||
|
|
||
|
}
|
||
|
public struct MemoryAffinity
|
||
|
{
|
||
|
public uint domain;
|
||
|
public ulong baseAddress;
|
||
|
public ulong endAddress;
|
||
|
public ulong memorySize;
|
||
|
public uint flagIgnore;
|
||
|
public uint flagHotPluggable;
|
||
|
public uint flagNonVolatile;
|
||
|
|
||
|
}
|
||
|
|
||
|
public abstract ProcessorAffinity[] GetProcessorAffinity();
|
||
|
public abstract MemoryAffinity[] GetMemoryAffinity();
|
||
|
}
|
||
|
}
|