Go to the documentation of this file.
18 #include <FreeNOS/User.h>
19 #include <FreeNOS/Config.h>
26 return new i8250(4, 0x3f8);
32 m_io.setPortBase(base);
virtual FileSystem::Result read(IOBuffer &buffer, Size &size, const Size offset)
Read bytes from the device.
Arch::IO m_io
I/O instance.
virtual FileSystem::Result initialize()
Initializes the i8250 serial UART.
FileSystem::Result bufferedWrite(const void *buffer, const Size size)
Buffered write bytes to the I/O buffer.
C uint isKernel
Non-zero if this executable is linked as the kernel.
API::Result ProcessCtl(const ProcessID proc, const ProcessOperation op, const Address addr=0, const Address output=0)
Prototype for user applications.
unsigned short u16
Unsigned 16-bit number.
Abstract Input/Output buffer.
unsigned int u32
Unsigned 32-bit number.
unsigned int Size
Any sane size indicator cannot go negative.
static T * create()
Abstract function to create an instance of T.
Provides sequential byte stream of incoming (RX) and outgoing (TX) data.
String m_identifier
Unique identifier for this Device.
Result
Result code for filesystem Actions.
unsigned char u8
Unsigned 8-bit number.
virtual FileSystem::Result interrupt(const Size vector)
Called when an interrupt has been triggered for this device.
i8250(const u32 irq, const u16 base)
Constructor function.
const u32 m_irq
interrupt vector
virtual FileSystem::Result write(IOBuffer &buffer, Size &size, const Size offset)
Write bytes to the device.