C# Class Mosa.HardwareSystem.HAL

Mostra file Open project: tgiphil/MOSA-Project Class Usage Examples

Public Methods

Method 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

Method 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 method

Aborts with the specified message.
public static Abort ( string message ) : void
message string The message.
return void

AllocateMemory() public static method

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

DebugWrite() public static method

Debugs the write.
public static DebugWrite ( string message ) : void
message string The message.
return void

DebugWriteLine() public static method

Debugs the write line.
public static DebugWriteLine ( string message ) : void
message string The message.
return void

GetPhysicalAddress() public static method

Gets the physical address.
public static GetPhysicalAddress ( IMemory memory ) : uint
memory IMemory The memory.
return uint

ProcessInterrupt() public static method

Processes the interrupt.
public static ProcessInterrupt ( byte irq ) : void
irq byte The irq.
return void

SetHardwareAbstraction() public static method

Sets the hardware abstraction.
public static SetHardwareAbstraction ( IHardwareAbstraction hardwareAbstraction ) : void
hardwareAbstraction IHardwareAbstraction The hardware abstraction.
return void

SetInterruptHandler() public static method

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

Sleep() public static method

Sleeps the specified milliseconds.
public static Sleep ( uint milliseconds ) : void
milliseconds uint The milliseconds.
return void