C# Class Mosa.HardwareSystem.HAL

Afficher le fichier Open project: tgiphil/MOSA-Project Class Usage Examples

Méthodes publiques

Méthode Description
Abort ( string message ) : void

Aborts with the specified message.

AllocateMemory ( uint size, uint alignment ) : IMemory

Allocates the memory.

DebugWrite ( string message ) : void

Debugs the write.

DebugWriteLine ( string message ) : void

Debugs the write line.

GetPhysicalAddress ( IMemory memory ) : uint

Gets the physical address.

ProcessInterrupt ( byte irq ) : void

Processes the interrupt.

SetHardwareAbstraction ( IHardwareAbstraction hardwareAbstraction ) : void

Sets the hardware abstraction.

SetInterruptHandler ( HandleInterrupt handleInterrupt ) : void

Sets the interrupt handler.

Sleep ( uint milliseconds ) : void

Sleeps the specified milliseconds.

Private Methods

Méthode Description
DisableAllInterrupts ( ) : void

Disables all interrupts.

EnableAllInterrupts ( ) : void

Enables all interrupts.

RequestIOPort ( ushort port ) : IReadWriteIOPort

Requests an IO read/write port interface from the kernel

RequestPhysicalMemory ( uint address, uint size ) : IMemory

Requests a block of memory from the kernel

Method Details

Abort() public static méthode

Aborts with the specified message.
public static Abort ( string message ) : void
message string The message.
Résultat void

AllocateMemory() public static méthode

Allocates the memory.
public static AllocateMemory ( uint size, uint alignment ) : IMemory
size uint The size.
alignment uint The alignment.
Résultat IMemory

DebugWrite() public static méthode

Debugs the write.
public static DebugWrite ( string message ) : void
message string The message.
Résultat void

DebugWriteLine() public static méthode

Debugs the write line.
public static DebugWriteLine ( string message ) : void
message string The message.
Résultat void

GetPhysicalAddress() public static méthode

Gets the physical address.
public static GetPhysicalAddress ( IMemory memory ) : uint
memory IMemory The memory.
Résultat uint

ProcessInterrupt() public static méthode

Processes the interrupt.
public static ProcessInterrupt ( byte irq ) : void
irq byte The irq.
Résultat void

SetHardwareAbstraction() public static méthode

Sets the hardware abstraction.
public static SetHardwareAbstraction ( IHardwareAbstraction hardwareAbstraction ) : void
hardwareAbstraction IHardwareAbstraction The hardware abstraction.
Résultat void

SetInterruptHandler() public static méthode

Sets the interrupt handler.
public static SetInterruptHandler ( HandleInterrupt handleInterrupt ) : void
handleInterrupt HandleInterrupt The handle interrupt.
Résultat void

Sleep() public static méthode

Sleeps the specified milliseconds.
public static Sleep ( uint milliseconds ) : void
milliseconds uint The milliseconds.
Résultat void