コード例 #1
0
 public AvailabilityBaseAttribute(PlatformName platform, Version version, PlatformArchitecture architecture, string message)
 {
     Platform     = platform;
     Version      = version;
     Message      = message;
     Architecture = architecture;
 }
コード例 #2
0
 public UnavailableAttribute(PlatformName platform,
                             PlatformArchitecture architecture = PlatformArchitecture.All,
                             string message = null)
     : base(AvailabilityKind.Unavailable,
            platform, null, architecture, message)
 {
 }
コード例 #3
0
 public ObsoletedAttribute(PlatformName platform, int majorVersion, int minorVersion, int subminorVersion,
                           PlatformArchitecture architecture = PlatformArchitecture.None,
                           string message = null)
     : base(AvailabilityKind.Obsoleted,
            platform, new Version(majorVersion, minorVersion, subminorVersion),
            architecture, message)
 {
 }
コード例 #4
0
 public Platform(PlatformName name,
                 PlatformArchitecture architecture = PlatformArchitecture.All,
                 byte major = 0, byte minor = 0, byte subminor = 0)
 {
     Name         = name;
     Architecture = architecture;
     Major        = major;
     Minor        = minor;
     Subminor     = subminor;
 }
コード例 #5
0
 internal AvailabilityBaseAttribute(
     AvailabilityKind availabilityKind,
     PlatformName platform,
     Version version,
     PlatformArchitecture architecture,
     string message)
 {
     AvailabilityKind = availabilityKind;
     Platform         = platform;
     Version          = version;
     Architecture     = architecture;
     Message          = message;
 }
コード例 #6
0
 internal AvailabilityBaseAttribute(
     AvailabilityKind availabilityKind,
     PlatformName platform,
     Version version,
     PlatformArchitecture architecture,
     string message)
 {
     AvailabilityKind = availabilityKind;
     Platform = platform;
     Version = version;
     Architecture = architecture;
     Message = message;
 }
コード例 #7
0
ファイル: Setup.cs プロジェクト: stjordanis/MOSA-Project
        public static DeviceManager Initialize(PlatformArchitecture platform, BaseHardwareAbstraction hardware)
        {
            // Create Device Manager
            var deviceManager = new DeviceManager(platform);

            deviceManager.RegisterDaemon(new DiskDeviceMountDeamon());

            // Set device driver system to the hardware HAL
            HAL.SetHardwareAbstraction(hardware);

            // Set the interrupt handler
            HAL.SetInterruptHandler(deviceManager.ProcessInterrupt);

            return(deviceManager);
        }
コード例 #8
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DeviceManager" /> class.
        /// </summary>
        /// <param name="platform">The platform.</param>
        public DeviceManager(PlatformArchitecture platform)
        {
            registry        = new List <DeviceDriverRegistryEntry>();
            devices         = new List <Device>();
            daemons         = new List <BaseMountDaemon>();
            pendingOnChange = new List <Device>();

            irqDispatch          = new List <Device> [MaxInterrupts];
            PlatformArchitecture = platform;

            for (int i = 0; i < MaxInterrupts; i++)
            {
                irqDispatch[i] = new List <Device>();
            }
        }
コード例 #9
0
 public DeprecatedAttribute(PlatformName platform, PlatformArchitecture architecture = PlatformArchitecture.None, string message = null)
     : base(platform, null, architecture, message)
 {
 }
コード例 #10
0
 public ObsoletedAttribute(PlatformName platform,
                           PlatformArchitecture architecture = PlatformArchitecture.None,
                           string message = null)
     : base(AvailabilityKind.Obsoleted, platform, null, architecture, message)
 {
 }
コード例 #11
0
ファイル: World.cs プロジェクト: charlierix/AsteroidMiner
 //NOTE:  The description is unclear of what is best (I'm guessing zero?)
 public void SetPlatformArchitecture(PlatformArchitecture mode)
 {
     Newton.NewtonSetPlatformArchitecture(_handle, (int)mode);
 }
コード例 #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeviceDriverRegistry"/> class.
 /// </summary>
 /// <param name="platformArchitecture">The platform architecture.</param>
 public DeviceDriverRegistry(PlatformArchitecture platformArchitecture)
 {
     this.platformArchitecture = platformArchitecture;
     deviceDrivers             = new LinkedList <DeviceDriver>();
 }
コード例 #13
0
ファイル: World.cs プロジェクト: kindex/labyrinth2
 public void SetPlatformArchitecture(PlatformArchitecture mode)
 {
     NativeAPI.SetPlatformArchitecture(handle, (int)mode);
 }
コード例 #14
0
 public MacAttribute(byte major, byte minor, PlatformArchitecture arch)
     : this(major, minor, 0, arch)
 {
 }
コード例 #15
0
        public UnavailableAttribute(PlatformName platform,
            PlatformArchitecture architecture = PlatformArchitecture.All,
            string message = null)
            : base(AvailabilityKind.Unavailable,
				platform, null, architecture, message)
        {
        }
コード例 #16
0
        public ObsoletedAttribute(PlatformName platform, int majorVersion, int minorVersion, int subminorVersion,
            PlatformArchitecture architecture = PlatformArchitecture.None,
            string message = null)
            : base(AvailabilityKind.Obsoleted,
				platform, new Version (majorVersion, minorVersion, subminorVersion),
				architecture, message)
        {
        }
コード例 #17
0
 public ObsoletedAttribute(PlatformName platform,
     PlatformArchitecture architecture = PlatformArchitecture.None,
     string message = null)
     : base(AvailabilityKind.Obsoleted, platform, null, architecture, message)
 {
 }
コード例 #18
0
 public IntroducedAttribute(PlatformName platform, int majorVersion, int minorVersion, int subminorVersion, PlatformArchitecture architecture = PlatformArchitecture.None, string message = null)
     : base(platform, new Version(majorVersion, minorVersion, subminorVersion), architecture, message)
 {
 }
コード例 #19
0
 public DeviceDriverRegistry(PlatformArchitecture platformArchitecture)
 {
     PlatformArchitecture = platformArchitecture;
 }
コード例 #20
0
ファイル: MsiInterop.cs プロジェクト: jkuemerle/MsiInterop
        public static extern MsiError MsiAdvertiseProductEx(string path,
			string script, string transforms, UInt16 langId,
			PlatformArchitecture platform, MsiAdvertismentOptions options);
コード例 #21
0
 public MacAttribute(byte major, byte minor, byte subminor, PlatformArchitecture arch)
     : base((Platform)((ulong)major << 48 | (ulong)minor << 40 | (ulong)subminor << 32) | (arch == PlatformArchitecture.Arch64 ? Platform.Mac_Arch64 : Platform.None))
 {
 }
コード例 #22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeviceDriverRegistry"/> class.
 /// </summary>
 /// <param name="platformArchitecture">The platform architecture.</param>
 public DeviceDriverRegistry(PlatformArchitecture platformArchitecture)
 {
     this.platformArchitecture = platformArchitecture;
     deviceDrivers = new LinkedList<DeviceDriver>();
 }