20 #include "pedigree/kernel/Log.h" 21 #include "pedigree/kernel/machine/Machine.h" 22 #include "pedigree/kernel/machine/types.h" 23 #include "pedigree/kernel/utilities/StaticString.h" 24 #include <machine/malta/Serial.h> 41 while (!(
m_pRegs->lstat & 0x20))
43 m_pRegs->rxtx =
static_cast<uint8_t
>(c);
52 return static_cast<char>(
m_pRegs->rxtx);
55 char MaltaSerial::readNonBlock()
65 bool MaltaSerial::isConnected()
68 uint8_t nStatus =
m_pRegs->mstat;
71 if ((nStatus & 0x30) && nStatus != 0xFF)
virtual void setBase(uintptr_t nBaseAddr)
virtual void write(char c)
volatile serial * m_pRegs