49 #ifndef __DEV_ARM_PL011_H__
50 #define __DEV_ARM_PL011_H__
61 Pl011(
const Pl011Params *
p);
187 #endif //__DEV_ARM_PL011_H__
static const int UART_IFLS
static const int UART_FBRD
static const int UART_FR_TXFE
uint16_t ibrd
integer baud rate divisor.
static const int UART_RIS
static const uint16_t UART_BEINTR
uint16_t lcrh
Line control register.
static const int UART_IBRD
static const uint16_t UART_RTINTR
uint16_t ifls
interrupt fifo level register.
static const int UART_FR_CTS
static const int UART_IMSC
void setInterruptMask(uint16_t mask)
Convenience function to update the interrupt mask.
static const uint64_t AMBA_ID
static const int UART_FR_RXFE
const int intNum
Interrupt number to generate.
static const uint16_t UART_RIINTR
void unserialize(CheckpointIn &cp) override
Unserialize an object.
static const uint16_t UART_CTSINTR
void clearInterrupts(uint16_t ints)
Convenience function to clear interrupts.
static const uint16_t UART_RXINTR
static const int UART_ICR
void setInterrupts(uint16_t ints, uint16_t mask)
Assign new interrupt values and update interrupt signals.
const Tick intDelay
Delay before interrupting.
This is a base class for AMBA devices that have to respond to Device and Implementer ID calls...
void serialize(CheckpointOut &cp) const override
Serialize an object.
uint64_t Tick
Tick count type.
uint16_t rawInt
raw interrupt status register
static const uint16_t UART_DSRINTR
void raiseInterrupts(uint16_t ints)
Convenience function to raise a new interrupt.
BaseGic *const gic
Gic to use for interrupting.
static const uint16_t UART_OEINTR
#define ULL(N)
uint64_t constant
A Packet is used to encapsulate a transfer between two objects in the memory system (e...
static const int UART_FR_TXFF
static const uint16_t UART_CDCINTR
static const uint16_t UART_TXINTR
Pl011(const Pl011Params *p)
static const uint16_t UART_PEINTR
uint16_t imsc
interrupt mask register.
std::ostream CheckpointOut
void generateInterrupt()
Function to generate interrupt.
EventWrapper< Pl011,&Pl011::generateInterrupt > intEvent
Wrapper to create an event out of the thing.
uint16_t maskInt() const
Masked interrupt status register.
static const int UART_FR_RXFF
static const int UART_MIS
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
void dataAvailable() override
Inform the uart that there is data available.
Tick read(PacketPtr pkt) override
Pure virtual function that the device must implement.
uint16_t fbrd
fractional baud rate divisor.
const bool endOnEOT
Should the simulation end on an EOT.
static const uint16_t UART_FEINTR
static const int UART_LCRH