gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Pl111 Class Reference

#include <pl111.hh>

Inheritance diagram for Pl111:
AmbaDmaDevice DmaDevice AmbaDevice PioDevice MemObject ClockedObject SimObject Clocked EventManager Serializable Drainable

Public Types

typedef Pl111Params Params
 
- Public Types inherited from AmbaDmaDevice
typedef AmbaDmaDeviceParams Params
 
- Public Types inherited from DmaDevice
typedef DmaDeviceParams Params
 
- Public Types inherited from PioDevice
typedef PioDeviceParams Params
 
- Public Types inherited from MemObject
typedef MemObjectParams Params
 
- Public Types inherited from ClockedObject
typedef ClockedObjectParams Params
 Parameters of ClockedObject. More...
 
- Public Types inherited from SimObject
typedef SimObjectParams Params
 

Public Member Functions

 DmaDoneEvent (Pl111 *_obj)
 Event wrapper for dmaDone() More...
 
void process ()
 
const std::string name () const
 
PixelConverter pixelConverter () const
 
void updateVideoParams ()
 Send updated parameters to the vnc server. More...
 
void readFramebuffer ()
 DMA framebuffer read. More...
 
void generateReadEvent ()
 Generate dma framebuffer read event. More...
 
void generateInterrupt ()
 Function to generate interrupt. More...
 
void fillFifo ()
 fillFIFO event More...
 
void startDma ()
 start the dmas off after power is enabled More...
 
void dmaDone ()
 DMA done event. More...
 
const Paramsparams () const
 
 Pl111 (const Params *p)
 
 ~Pl111 ()
 
Tick read (PacketPtr pkt) override
 Pure virtual function that the device must implement. More...
 
Tick write (PacketPtr pkt) override
 Pure virtual function that the device must implement. More...
 
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
 
AddrRangeList getAddrRanges () const override
 Determine the address ranges that this device responds to. More...
 
- Public Member Functions inherited from AmbaDmaDevice
 AmbaDmaDevice (const Params *p, Addr pio_size=0)
 
- Public Member Functions inherited from DmaDevice
 DmaDevice (const Params *p)
 
virtual ~DmaDevice ()
 
void dmaWrite (Addr addr, int size, Event *event, uint8_t *data, Tick delay=0)
 
void dmaRead (Addr addr, int size, Event *event, uint8_t *data, Tick delay=0)
 
bool dmaPending () const
 
void init () override
 init() is called after all C++ SimObjects have been created and all ports are connected. More...
 
unsigned int cacheBlockSize () const
 
BaseMasterPortgetMasterPort (const std::string &if_name, PortID idx=InvalidPortID) override
 Get a master port with a given name and index. More...
 
- Public Member Functions inherited from PioDevice
 PioDevice (const Params *p)
 
virtual ~PioDevice ()
 
const Paramsparams () const
 
virtual BaseSlavePortgetSlavePort (const std::string &if_name, PortID idx=InvalidPortID)
 Get a slave port with a given name and index. More...
 
- Public Member Functions inherited from MemObject
const Paramsparams () const
 
 MemObject (const Params *params)
 
- Public Member Functions inherited from ClockedObject
 ClockedObject (const ClockedObjectParams *p)
 
const Paramsparams () const
 
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
 
Enums::PwrState pwrState () const
 
std::string pwrStateName () const
 
std::vector< double > pwrStateWeights () const
 Returns the percentage residency for each power state. More...
 
void computeStats ()
 Record stats values like state residency by computing the time difference from previous update. More...
 
void pwrState (Enums::PwrState)
 
void regStats () override
 Register statistics for this object. More...
 
- Public Member Functions inherited from SimObject
const Paramsparams () const
 
 SimObject (const Params *_params)
 
virtual ~SimObject ()
 
virtual void loadState (CheckpointIn &cp)
 loadState() is called on each SimObject when restoring from a checkpoint. More...
 
virtual void initState ()
 initState() is called on each SimObject when not restoring from a checkpoint. More...
 
virtual void resetStats ()
 Reset statistics associated with this object. More...
 
virtual void regProbePoints ()
 Register probe points for this object. More...
 
virtual void regProbeListeners ()
 Register probe listeners for this object. More...
 
ProbeManagergetProbeManager ()
 Get the probe manager for this object. More...
 
virtual void startup ()
 startup() is the final initialization call before simulation. More...
 
DrainState drain () override
 Provide a default implementation of the drain interface for objects that don't need draining. More...
 
virtual void memWriteback ()
 Write back dirty buffers to memory using functional writes. More...
 
virtual void memInvalidate ()
 Invalidate the contents of memory buffers. More...
 
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
 
- Public Member Functions inherited from EventManager
 EventManager (EventManager &em)
 
 EventManager (EventManager *em)
 
 EventManager (EventQueue *eq)
 
EventQueueeventQueue () const
 
void schedule (Event &event, Tick when)
 
void deschedule (Event &event)
 
void reschedule (Event &event, Tick when, bool always=false)
 
void schedule (Event *event, Tick when)
 
void deschedule (Event *event)
 
void reschedule (Event *event, Tick when, bool always=false)
 
void wakeupEventQueue (Tick when=(Tick)-1)
 
void setCurTick (Tick newVal)
 
- Public Member Functions inherited from Serializable
 Serializable ()
 
virtual ~Serializable ()
 
void serializeSection (CheckpointOut &cp, const char *name) const
 Serialize an object into a new section. More...
 
void serializeSection (CheckpointOut &cp, const std::string &name) const
 
void unserializeSection (CheckpointIn &cp, const char *name)
 Unserialize an a child object. More...
 
void unserializeSection (CheckpointIn &cp, const std::string &name)
 
- Public Member Functions inherited from Drainable
DrainState drainState () const
 Return the current drain state of an object. More...
 
virtual void notifyFork ()
 Notify a child process of a fork. More...
 
- Public Member Functions inherited from Clocked
void updateClockPeriod () const
 Update the tick to the current tick. More...
 
Tick clockEdge (Cycles cycles=Cycles(0)) const
 Determine the tick when a cycle begins, by default the current one, but the argument also enables the caller to determine a future cycle. More...
 
Cycles curCycle () const
 Determine the current cycle, corresponding to a tick aligned to a clock edge. More...
 
Tick nextCycle () const
 Based on the clock of the object, determine the start tick of the first cycle that is at least one cycle in the future. More...
 
uint64_t frequency () const
 
Tick clockPeriod () const
 
double voltage () const
 
Cycles ticksToCycles (Tick t) const
 
Tick cyclesToTicks (Cycles c) const
 

Public Attributes

TimingReg0 lcdTiming0
 Horizontal axis panel control register. More...
 
TimingReg1 lcdTiming1
 Vertical axis panel control register. More...
 
TimingReg2 lcdTiming2
 Clock and signal polarity control register. More...
 
TimingReg3 lcdTiming3
 Line end control register. More...
 
uint32_t lcdUpbase
 Upper panel frame base address register. More...
 
uint32_t lcdLpbase
 Lower panel frame base address register. More...
 
ControlReg lcdControl
 Control register. More...
 
InterruptReg lcdImsc
 Interrupt mask set/clear register. More...
 
InterruptReg lcdRis
 Raw interrupt status register - const. More...
 
InterruptReg lcdMis
 Masked interrupt status register. More...
 
uint32_t lcdPalette [LcdPaletteSize]
 256x16-bit color palette registers 256 palette entries organized as 128 locations of two entries per word More...
 
uint32_t cursorImage [CrsrImageSize]
 Cursor image RAM register 256-word wide values defining images overlaid by the hw cursor mechanism. More...
 
uint32_t clcdCrsrCtrl
 Cursor control register. More...
 
uint32_t clcdCrsrConfig
 Cursor configuration register. More...
 
uint32_t clcdCrsrPalette0
 Cursor palette registers. More...
 
uint32_t clcdCrsrPalette1
 
uint32_t clcdCrsrXY
 Cursor XY position register. More...
 
uint32_t clcdCrsrClip
 Cursor clip position register. More...
 
InterruptReg clcdCrsrImsc
 Cursor interrupt mask set/clear register. More...
 
InterruptReg clcdCrsrIcr
 Cursor interrupt clear register. More...
 
InterruptReg clcdCrsrRis
 Cursor raw interrupt status register - const. More...
 
InterruptReg clcdCrsrMis
 Cursor masked interrupt status register - const. More...
 
Tick pixelClock
 Pixel clock. More...
 
PixelConverter converter
 
FrameBuffer fb
 
VncInputvnc
 VNC server. More...
 
Bitmap bmp
 Helper to write out bitmaps. More...
 
OutputStreampic
 Picture of what the current frame buffer looks like. More...
 
uint16_t width
 Frame buffer width - pixels per line. More...
 
uint16_t height
 Frame buffer height - lines per panel. More...
 
uint8_t bytesPerPixel
 Bytes per pixel. More...
 
uint8_t * dmaBuffer
 CLCDC supports up to 1024x768. More...
 
Tick startTime
 Start time for frame buffer dma read. More...
 
Addr startAddr
 Frame buffer base address. More...
 
Addr maxAddr
 Frame buffer max address. More...
 
Addr curAddr
 Frame buffer current address. More...
 
uint32_t waterMark
 DMA FIFO watermark. More...
 
uint32_t dmaPendingNum
 Number of pending dma reads. More...
 
EventWrapper< Pl111,&Pl111::readFramebufferreadEvent
 DMA framebuffer read event. More...
 
EventWrapper< Pl111,&Pl111::fillFifofillFifoEvent
 Fill fifo. More...
 
EventWrapper< Pl111,&Pl111::generateInterruptintEvent
 Wrapper to create an event out of the interrupt. More...
 
bool enableCapture
 
std::vector< DmaDoneEventdmaDoneEventAll
 All pre-allocated DMA done events. More...
 
std::vector< DmaDoneEvent * > dmaDoneEventFree
 Unused DMA done events that are ready to be scheduled. More...
 

Protected Types

enum  LcdMode {
  bpp1 = 0, bpp2, bpp4, bpp8,
  bpp16, bpp24, bpp16m565, bpp12
}
 

Protected Member Functions

 BitUnion8 (InterruptReg) Bitfield< 1 > underflow
 
 EndBitUnion (InterruptReg) BitUnion32(TimingReg0) Bitfield<7
 
 EndBitUnion (TimingReg0) BitUnion32(TimingReg1) Bitfield<9
 
 EndBitUnion (TimingReg1) BitUnion32(TimingReg2) Bitfield<4
 
 EndBitUnion (TimingReg2) BitUnion32(TimingReg3) Bitfield<6
 
 EndBitUnion (TimingReg3) BitUnion32(ControlReg) Bitfield< 0 > lcden
 
- Protected Member Functions inherited from Drainable
 Drainable ()
 
virtual ~Drainable ()
 
virtual void drainResume ()
 Resume execution after a successful drain. More...
 
void signalDrainDone () const
 Signal that an object is drained. More...
 
- Protected Member Functions inherited from Clocked
 Clocked (ClockDomain &clk_domain)
 Create a clocked object and set the clock domain based on the parameters. More...
 
 Clocked (Clocked &)=delete
 
Clockedoperator= (Clocked &)=delete
 
virtual ~Clocked ()
 Virtual destructor due to inheritance. More...
 
void resetClock () const
 Reset the object's clock using the current global tick value. More...
 
- Protected Member Functions inherited from AmbaDevice
bool readId (PacketPtr pkt, uint64_t amba_id, Addr pio_addr)
 

Protected Attributes

Bitfield< 2 > baseaddr
 
Bitfield< 3 > vcomp
 
Bitfield< 4 > ahbmaster
 
 ppl
 
Bitfield< 15, 8 > hsw
 
Bitfield< 23, 16 > hfp
 
Bitfield< 31, 24 > hbp
 
 lpp
 
Bitfield< 15, 10 > vsw
 
Bitfield< 23, 16 > vfp
 
Bitfield< 31, 24 > vbp
 
 pcdlo
 
Bitfield< 5 > clksel
 
Bitfield< 10, 6 > acb
 
Bitfield< 11 > avs
 
Bitfield< 12 > ihs
 
Bitfield< 13 > ipc
 
Bitfield< 14 > ioe
 
Bitfield< 25, 16 > cpl
 
Bitfield< 26 > bcd
 
Bitfield< 31, 27 > pcdhi
 
 led
 
Bitfield< 16 > lee
 
Bitfield< 3, 1 > lcdbpp
 
Bitfield< 4 > lcdbw
 
Bitfield< 5 > lcdtft
 
Bitfield< 6 > lcdmono8
 
Bitfield< 7 > lcddual
 
Bitfield< 8 > bgr
 
Bitfield< 9 > bebo
 
Bitfield< 10 > bepo
 
Bitfield< 11 > lcdpwr
 
Bitfield< 13, 12 > lcdvcomp
 
Bitfield< 16 > watermark
 
- Protected Attributes inherited from AmbaDmaDevice
uint64_t ambaId
 
Addr pioAddr
 
Addr pioSize
 
Tick pioDelay
 
int intNum
 
BaseGicgic
 
- Protected Attributes inherited from DmaDevice
DmaPort dmaPort
 
- Protected Attributes inherited from PioDevice
Systemsys
 
PioPort pioPort
 The pioPort that handles the requests for us and provides us requests that it sees. More...
 
- Protected Attributes inherited from ClockedObject
Enums::PwrState _currPwrState
 To keep track of the current power state. More...
 
Tick prvEvalTick
 
Stats::Scalar numPwrStateTransitions
 
Stats::Distribution pwrStateClkGateDist
 
Stats::Vector pwrStateResidencyTicks
 
- Protected Attributes inherited from SimObject
const SimObjectParams * _params
 Cached copy of the object parameters. More...
 
- Protected Attributes inherited from EventManager
EventQueueeventq
 A pointer to this object's event queue. More...
 

Static Protected Attributes

static const uint64_t AMBA_ID = ULL(0xb105f00d00141111)
 
static const int LcdTiming0 = 0x000
 ARM PL111 register map. More...
 
static const int LcdTiming1 = 0x004
 
static const int LcdTiming2 = 0x008
 
static const int LcdTiming3 = 0x00C
 
static const int LcdUpBase = 0x010
 
static const int LcdLpBase = 0x014
 
static const int LcdControl = 0x018
 
static const int LcdImsc = 0x01C
 
static const int LcdRis = 0x020
 
static const int LcdMis = 0x024
 
static const int LcdIcr = 0x028
 
static const int LcdUpCurr = 0x02C
 
static const int LcdLpCurr = 0x030
 
static const int LcdPalette = 0x200
 
static const int CrsrImage = 0x800
 
static const int ClcdCrsrCtrl = 0xC00
 
static const int ClcdCrsrConfig = 0xC04
 
static const int ClcdCrsrPalette0 = 0xC08
 
static const int ClcdCrsrPalette1 = 0xC0C
 
static const int ClcdCrsrXY = 0xC10
 
static const int ClcdCrsrClip = 0xC14
 
static const int ClcdCrsrImsc = 0xC20
 
static const int ClcdCrsrIcr = 0xC24
 
static const int ClcdCrsrRis = 0xC28
 
static const int ClcdCrsrMis = 0xC2C
 
static const int LcdPaletteSize = 128
 
static const int CrsrImageSize = 256
 
static const int LcdMaxWidth = 1024
 
static const int LcdMaxHeight = 768
 
static const int dmaSize = 8
 
static const int maxOutstandingDma = 16
 
static const int buffer_size = LcdMaxWidth * LcdMaxHeight * sizeof(uint32_t)
 
- Static Protected Attributes inherited from AmbaDevice
static const int AMBA_PER_ID0 = 0xFE0
 
static const int AMBA_PER_ID1 = 0xFE4
 
static const int AMBA_PER_ID2 = 0xFE8
 
static const int AMBA_PER_ID3 = 0xFEC
 
static const int AMBA_CEL_ID0 = 0xFF0
 
static const int AMBA_CEL_ID1 = 0xFF4
 
static const int AMBA_CEL_ID2 = 0xFF8
 
static const int AMBA_CEL_ID3 = 0xFFC
 

Additional Inherited Members

- Static Public Member Functions inherited from SimObject
static void serializeAll (CheckpointOut &cp)
 Serialize all SimObjects in the system. More...
 
static SimObjectfind (const char *name)
 Find the SimObject with the given name and return a pointer to it. More...
 
- Static Public Member Functions inherited from Serializable
static const std::string & currentSection ()
 Get the fully-qualified name of the active section. More...
 
static void serializeAll (const std::string &cpt_dir)
 
static void unserializeGlobals (CheckpointIn &cp)
 
- Static Public Attributes inherited from Serializable
static int ckptCount = 0
 
static int ckptMaxCount = 0
 
static int ckptPrevCount = -1
 

Detailed Description

Definition at line 61 of file pl111.hh.

Member Typedef Documentation

typedef Pl111Params Pl111::Params

Definition at line 362 of file pl111.hh.

Member Enumeration Documentation

enum Pl111::LcdMode
protected
Enumerator
bpp1 
bpp2 
bpp4 
bpp8 
bpp16 
bpp24 
bpp16m565 
bpp12 

Definition at line 103 of file pl111.hh.

Constructor & Destructor Documentation

Pl111::Pl111 ( const Params p)
Pl111::~Pl111 ( )

Definition at line 91 of file pl111.cc.

References dmaBuffer.

Member Function Documentation

Pl111::BitUnion8 ( InterruptReg  )
protected
void Pl111::dmaDone ( )
Pl111::DmaDoneEvent ( Pl111 _obj)
inline

Event wrapper for dmaDone()

This event calls pushes its this pointer onto the freeDoneEvent vector and calls dmaDone() when triggered.

Definition at line 180 of file pl111.hh.

Referenced by fillFifo().

Pl111::EndBitUnion ( InterruptReg  )
protected
Pl111::EndBitUnion ( TimingReg0  )
protected
Pl111::EndBitUnion ( TimingReg1  )
protected
Pl111::EndBitUnion ( TimingReg2  )
protected
Pl111::EndBitUnion ( TimingReg3  )
protected
void Pl111::fillFifo ( )
void Pl111::generateInterrupt ( )

Function to generate interrupt.

Definition at line 755 of file pl111.cc.

References DPRINTF, AmbaDmaDevice::gic, AmbaDmaDevice::intNum, lcdImsc, lcdMis, lcdRis, and BaseGic::sendInt().

void Pl111::generateReadEvent ( )

Generate dma framebuffer read event.

AddrRangeList Pl111::getAddrRanges ( ) const
overridevirtual

Determine the address ranges that this device responds to.

Returns
a list of non-overlapping address ranges

Implements PioDevice.

Definition at line 768 of file pl111.cc.

References AmbaDmaDevice::pioAddr, AmbaDmaDevice::pioSize, and RangeSize().

const std::string Pl111::name ( ) const
inlinevirtual

Reimplemented from SimObject.

Definition at line 188 of file pl111.hh.

References name().

Referenced by name().

const Params* Pl111::params ( ) const
inline

Definition at line 365 of file pl111.hh.

References SimObject::_params.

PixelConverter Pl111::pixelConverter ( ) const

Definition at line 384 of file pl111.cc.

References bpp16m565, bpp24, bytesPerPixel, lcdControl, LittleEndianByteOrder, panic, and ArmISA::rw.

Referenced by updateVideoParams().

void Pl111::process ( )
inline

Definition at line 183 of file pl111.hh.

References dmaDone(), and dmaDoneEventFree.

Tick Pl111::read ( PacketPtr  pkt)
overridevirtual
void Pl111::readFramebuffer ( )
void Pl111::serialize ( CheckpointOut cp) const
overridevirtual
void Pl111::startDma ( )

start the dmas off after power is enabled

Definition at line 446 of file pl111.cc.

References dmaPendingNum, readEvent, readFramebuffer(), and Event::scheduled().

Referenced by write().

void Pl111::unserialize ( CheckpointIn cp)
overridevirtual
void Pl111::updateVideoParams ( )

Send updated parameters to the vnc server.

Definition at line 426 of file pl111.cc.

References bpp16m565, bpp24, bytesPerPixel, converter, fb, height, lcdControl, pixelConverter(), FrameBuffer::resize(), VncInput::setFrameBuffer(), vnc, and width.

Referenced by unserialize(), and write().

Tick Pl111::write ( PacketPtr  pkt)
overridevirtual

Member Data Documentation

Bitfield<10,6> Pl111::acb
protected

Definition at line 138 of file pl111.hh.

Bitfield<4> Pl111::ahbmaster
protected

Definition at line 118 of file pl111.hh.

const uint64_t Pl111::AMBA_ID = ULL(0xb105f00d00141111)
staticprotected

Definition at line 64 of file pl111.hh.

Referenced by read().

Bitfield<11> Pl111::avs
protected

Definition at line 139 of file pl111.hh.

Bitfield<2> Pl111::baseaddr
protected

Definition at line 116 of file pl111.hh.

Bitfield<26> Pl111::bcd
protected

Definition at line 144 of file pl111.hh.

Bitfield<9> Pl111::bebo
protected

Definition at line 161 of file pl111.hh.

Bitfield<10> Pl111::bepo
protected

Definition at line 162 of file pl111.hh.

Bitfield<8> Pl111::bgr
protected

Definition at line 160 of file pl111.hh.

Bitmap Pl111::bmp

Helper to write out bitmaps.

Definition at line 269 of file pl111.hh.

Referenced by dmaDone().

const int Pl111::buffer_size = LcdMaxWidth * LcdMaxHeight * sizeof(uint32_t)
staticprotected

Definition at line 101 of file pl111.hh.

Referenced by Pl111(), serialize(), and unserialize().

uint8_t Pl111::bytesPerPixel

Bytes per pixel.

Definition at line 281 of file pl111.hh.

Referenced by pixelConverter(), readFramebuffer(), serialize(), unserialize(), and updateVideoParams().

const int Pl111::ClcdCrsrClip = 0xC14
staticprotected

Definition at line 86 of file pl111.hh.

Referenced by read(), and write().

uint32_t Pl111::clcdCrsrClip

Cursor clip position register.

Definition at line 245 of file pl111.hh.

Referenced by read(), serialize(), unserialize(), and write().

const int Pl111::ClcdCrsrConfig = 0xC04
staticprotected

Definition at line 82 of file pl111.hh.

Referenced by read(), and write().

uint32_t Pl111::clcdCrsrConfig

Cursor configuration register.

Definition at line 235 of file pl111.hh.

Referenced by read(), serialize(), unserialize(), and write().

const int Pl111::ClcdCrsrCtrl = 0xC00
staticprotected

Definition at line 81 of file pl111.hh.

Referenced by read(), and write().

uint32_t Pl111::clcdCrsrCtrl

Cursor control register.

Definition at line 232 of file pl111.hh.

Referenced by read(), serialize(), unserialize(), and write().

const int Pl111::ClcdCrsrIcr = 0xC24
staticprotected

Definition at line 88 of file pl111.hh.

Referenced by read(), and write().

InterruptReg Pl111::clcdCrsrIcr

Cursor interrupt clear register.

Definition at line 251 of file pl111.hh.

Referenced by serialize(), unserialize(), and write().

const int Pl111::ClcdCrsrImsc = 0xC20
staticprotected

Definition at line 87 of file pl111.hh.

Referenced by read(), and write().

InterruptReg Pl111::clcdCrsrImsc

Cursor interrupt mask set/clear register.

Definition at line 248 of file pl111.hh.

Referenced by read(), serialize(), unserialize(), and write().

const int Pl111::ClcdCrsrMis = 0xC2C
staticprotected

Definition at line 90 of file pl111.hh.

Referenced by read(), and write().

InterruptReg Pl111::clcdCrsrMis

Cursor masked interrupt status register - const.

Definition at line 257 of file pl111.hh.

Referenced by read(), serialize(), and unserialize().

const int Pl111::ClcdCrsrPalette0 = 0xC08
staticprotected

Definition at line 83 of file pl111.hh.

Referenced by read(), and write().

uint32_t Pl111::clcdCrsrPalette0

Cursor palette registers.

Definition at line 238 of file pl111.hh.

Referenced by read(), serialize(), unserialize(), and write().

const int Pl111::ClcdCrsrPalette1 = 0xC0C
staticprotected

Definition at line 84 of file pl111.hh.

Referenced by read(), and write().

uint32_t Pl111::clcdCrsrPalette1

Definition at line 239 of file pl111.hh.

Referenced by read(), serialize(), unserialize(), and write().

const int Pl111::ClcdCrsrRis = 0xC28
staticprotected

Definition at line 89 of file pl111.hh.

Referenced by read(), and write().

InterruptReg Pl111::clcdCrsrRis

Cursor raw interrupt status register - const.

Definition at line 254 of file pl111.hh.

Referenced by read(), serialize(), and unserialize().

const int Pl111::ClcdCrsrXY = 0xC10
staticprotected

Definition at line 85 of file pl111.hh.

Referenced by read(), and write().

uint32_t Pl111::clcdCrsrXY

Cursor XY position register.

Definition at line 242 of file pl111.hh.

Referenced by read(), serialize(), unserialize(), and write().

Bitfield<5> Pl111::clksel
protected

Definition at line 137 of file pl111.hh.

PixelConverter Pl111::converter

Definition at line 262 of file pl111.hh.

Referenced by dmaDone(), unserialize(), and updateVideoParams().

Bitfield<25,16> Pl111::cpl
protected

Definition at line 143 of file pl111.hh.

const int Pl111::CrsrImage = 0x800
staticprotected

Definition at line 80 of file pl111.hh.

Referenced by read(), and write().

const int Pl111::CrsrImageSize = 256
staticprotected

Definition at line 93 of file pl111.hh.

Referenced by serialize(), and unserialize().

Addr Pl111::curAddr

Frame buffer current address.

Definition at line 296 of file pl111.hh.

Referenced by dmaDone(), fillFifo(), read(), readFramebuffer(), serialize(), and unserialize().

uint32_t Pl111::cursorImage[CrsrImageSize]

Cursor image RAM register 256-word wide values defining images overlaid by the hw cursor mechanism.

Definition at line 229 of file pl111.hh.

Referenced by Pl111(), read(), serialize(), unserialize(), and write().

uint8_t* Pl111::dmaBuffer

CLCDC supports up to 1024x768.

Definition at line 284 of file pl111.hh.

Referenced by dmaDone(), fillFifo(), Pl111(), serialize(), unserialize(), and ~Pl111().

std::vector<DmaDoneEvent> Pl111::dmaDoneEventAll

All pre-allocated DMA done events.

The PL111 model preallocates maxOutstandingDma number of DmaDoneEvents to avoid having to heap allocate every single event when it is needed. In order to keep track of which events are in flight and which are ready to be used, we use two different vectors. dmaDoneEventAll contains all DmaDoneEvents that the object may use, while dmaDoneEventFree contains a list of currently unused events. When an event needs to be scheduled, the last element of the dmaDoneEventFree is used and removed from the list. When an event fires, it is added to the end of the dmaEventFreeList. dmaDoneEventAll is never used except for in initialization and serialization.

Definition at line 350 of file pl111.hh.

Referenced by Pl111(), serialize(), and unserialize().

std::vector<DmaDoneEvent *> Pl111::dmaDoneEventFree

Unused DMA done events that are ready to be scheduled.

Definition at line 353 of file pl111.hh.

Referenced by fillFifo(), Pl111(), process(), and unserialize().

uint32_t Pl111::dmaPendingNum

Number of pending dma reads.

Definition at line 302 of file pl111.hh.

Referenced by dmaDone(), fillFifo(), serialize(), startDma(), and unserialize().

const int Pl111::dmaSize = 8
staticprotected

Definition at line 98 of file pl111.hh.

Referenced by fillFifo().

bool Pl111::enableCapture

Definition at line 359 of file pl111.hh.

Referenced by dmaDone().

FrameBuffer Pl111::fb

Definition at line 263 of file pl111.hh.

Referenced by dmaDone(), Pl111(), unserialize(), and updateVideoParams().

EventWrapper<Pl111, &Pl111::fillFifo> Pl111::fillFifoEvent

Fill fifo.

Definition at line 331 of file pl111.hh.

Referenced by dmaDone(), serialize(), and unserialize().

Bitfield<31,24> Pl111::hbp
protected

Definition at line 125 of file pl111.hh.

uint16_t Pl111::height

Frame buffer height - lines per panel.

Definition at line 278 of file pl111.hh.

Referenced by dmaDone(), readFramebuffer(), serialize(), unserialize(), updateVideoParams(), and write().

Bitfield<23,16> Pl111::hfp
protected

Definition at line 124 of file pl111.hh.

Bitfield<15,8> Pl111::hsw
protected

Definition at line 123 of file pl111.hh.

Bitfield<12> Pl111::ihs
protected

Definition at line 140 of file pl111.hh.

Wrapper to create an event out of the interrupt.

Definition at line 357 of file pl111.hh.

Referenced by dmaDone(), readFramebuffer(), serialize(), and unserialize().

Bitfield<14> Pl111::ioe
protected

Definition at line 142 of file pl111.hh.

Bitfield<13> Pl111::ipc
protected

Definition at line 141 of file pl111.hh.

Bitfield<3,1> Pl111::lcdbpp
protected

Definition at line 155 of file pl111.hh.

Bitfield<4> Pl111::lcdbw
protected

Definition at line 156 of file pl111.hh.

const int Pl111::LcdControl = 0x018
staticprotected

Definition at line 72 of file pl111.hh.

Referenced by read(), and write().

ControlReg Pl111::lcdControl

Control register.

Definition at line 212 of file pl111.hh.

Referenced by dmaDone(), pixelConverter(), read(), serialize(), unserialize(), updateVideoParams(), and write().

Bitfield<7> Pl111::lcddual
protected

Definition at line 159 of file pl111.hh.

const int Pl111::LcdIcr = 0x028
staticprotected

Definition at line 76 of file pl111.hh.

Referenced by read(), and write().

const int Pl111::LcdImsc = 0x01C
staticprotected

Definition at line 73 of file pl111.hh.

Referenced by read(), and write().

InterruptReg Pl111::lcdImsc

Interrupt mask set/clear register.

Definition at line 215 of file pl111.hh.

Referenced by generateInterrupt(), read(), serialize(), unserialize(), and write().

const int Pl111::LcdLpBase = 0x014
staticprotected

Definition at line 71 of file pl111.hh.

Referenced by read(), and write().

uint32_t Pl111::lcdLpbase

Lower panel frame base address register.

Definition at line 209 of file pl111.hh.

Referenced by read(), serialize(), unserialize(), and write().

const int Pl111::LcdLpCurr = 0x030
staticprotected

Definition at line 78 of file pl111.hh.

Referenced by read(), and write().

const int Pl111::LcdMaxHeight = 768
staticprotected

Definition at line 96 of file pl111.hh.

const int Pl111::LcdMaxWidth = 1024
staticprotected

Definition at line 95 of file pl111.hh.

const int Pl111::LcdMis = 0x024
staticprotected

Definition at line 75 of file pl111.hh.

Referenced by read(), and write().

InterruptReg Pl111::lcdMis

Masked interrupt status register.

Definition at line 221 of file pl111.hh.

Referenced by generateInterrupt(), read(), serialize(), unserialize(), and write().

Bitfield<6> Pl111::lcdmono8
protected

Definition at line 158 of file pl111.hh.

const int Pl111::LcdPalette = 0x200
staticprotected

Definition at line 79 of file pl111.hh.

Referenced by read(), and write().

uint32_t Pl111::lcdPalette[LcdPaletteSize]

256x16-bit color palette registers 256 palette entries organized as 128 locations of two entries per word

Definition at line 225 of file pl111.hh.

Referenced by Pl111(), read(), serialize(), unserialize(), and write().

const int Pl111::LcdPaletteSize = 128
staticprotected

Definition at line 92 of file pl111.hh.

Referenced by serialize(), and unserialize().

Bitfield<11> Pl111::lcdpwr
protected

Definition at line 163 of file pl111.hh.

const int Pl111::LcdRis = 0x020
staticprotected

Definition at line 74 of file pl111.hh.

Referenced by read(), and write().

InterruptReg Pl111::lcdRis

Raw interrupt status register - const.

Definition at line 218 of file pl111.hh.

Referenced by dmaDone(), generateInterrupt(), read(), readFramebuffer(), serialize(), unserialize(), and write().

Bitfield<5> Pl111::lcdtft
protected

Definition at line 157 of file pl111.hh.

const int Pl111::LcdTiming0 = 0x000
staticprotected

ARM PL111 register map.

Definition at line 66 of file pl111.hh.

Referenced by read(), and write().

TimingReg0 Pl111::lcdTiming0

Horizontal axis panel control register.

Definition at line 191 of file pl111.hh.

Referenced by read(), serialize(), unserialize(), and write().

const int Pl111::LcdTiming1 = 0x004
staticprotected

Definition at line 67 of file pl111.hh.

Referenced by read(), and write().

TimingReg1 Pl111::lcdTiming1

Vertical axis panel control register.

Definition at line 197 of file pl111.hh.

Referenced by read(), serialize(), unserialize(), and write().

const int Pl111::LcdTiming2 = 0x008
staticprotected

Definition at line 68 of file pl111.hh.

Referenced by read(), and write().

TimingReg2 Pl111::lcdTiming2

Clock and signal polarity control register.

Definition at line 200 of file pl111.hh.

Referenced by dmaDone(), read(), serialize(), unserialize(), and write().

const int Pl111::LcdTiming3 = 0x00C
staticprotected

Definition at line 69 of file pl111.hh.

Referenced by read(), and write().

TimingReg3 Pl111::lcdTiming3

Line end control register.

Definition at line 203 of file pl111.hh.

Referenced by read(), serialize(), unserialize(), and write().

const int Pl111::LcdUpBase = 0x010
staticprotected

Definition at line 70 of file pl111.hh.

Referenced by read(), and write().

uint32_t Pl111::lcdUpbase

Upper panel frame base address register.

Definition at line 206 of file pl111.hh.

Referenced by read(), readFramebuffer(), serialize(), unserialize(), and write().

const int Pl111::LcdUpCurr = 0x02C
staticprotected

Definition at line 77 of file pl111.hh.

Referenced by read(), and write().

Bitfield<13,12> Pl111::lcdvcomp
protected

Definition at line 164 of file pl111.hh.

Pl111::led
protected

Definition at line 149 of file pl111.hh.

Bitfield<16> Pl111::lee
protected

Definition at line 150 of file pl111.hh.

Pl111::lpp
protected

Definition at line 129 of file pl111.hh.

Addr Pl111::maxAddr

Frame buffer max address.

Definition at line 293 of file pl111.hh.

Referenced by dmaDone(), fillFifo(), readFramebuffer(), serialize(), and unserialize().

const int Pl111::maxOutstandingDma = 16
staticprotected

Definition at line 99 of file pl111.hh.

Referenced by dmaDone(), fillFifo(), Pl111(), serialize(), and unserialize().

Bitfield<31,27> Pl111::pcdhi
protected

Definition at line 145 of file pl111.hh.

Pl111::pcdlo
protected

Definition at line 136 of file pl111.hh.

OutputStream* Pl111::pic

Picture of what the current frame buffer looks like.

Definition at line 272 of file pl111.hh.

Referenced by dmaDone().

Tick Pl111::pixelClock

Pixel clock.

Definition at line 260 of file pl111.hh.

Referenced by dmaDone().

Pl111::ppl
protected

Definition at line 122 of file pl111.hh.

DMA framebuffer read event.

Definition at line 328 of file pl111.hh.

Referenced by dmaDone(), serialize(), startDma(), and unserialize().

Addr Pl111::startAddr

Frame buffer base address.

Definition at line 290 of file pl111.hh.

Referenced by fillFifo(), readFramebuffer(), serialize(), and unserialize().

Tick Pl111::startTime

Start time for frame buffer dma read.

Definition at line 287 of file pl111.hh.

Referenced by dmaDone(), readFramebuffer(), serialize(), and unserialize().

Bitfield<31,24> Pl111::vbp
protected

Definition at line 132 of file pl111.hh.

Bitfield<3> Pl111::vcomp
protected

Definition at line 117 of file pl111.hh.

Bitfield<23,16> Pl111::vfp
protected

Definition at line 131 of file pl111.hh.

VncInput* Pl111::vnc

VNC server.

Definition at line 266 of file pl111.hh.

Referenced by dmaDone(), Pl111(), unserialize(), and updateVideoParams().

Bitfield<15,10> Pl111::vsw
protected

Definition at line 130 of file pl111.hh.

Bitfield<16> Pl111::watermark
protected

Definition at line 165 of file pl111.hh.

uint32_t Pl111::waterMark

DMA FIFO watermark.

Definition at line 299 of file pl111.hh.

Referenced by dmaDone(), serialize(), unserialize(), and write().

uint16_t Pl111::width

Frame buffer width - pixels per line.

Definition at line 275 of file pl111.hh.

Referenced by readFramebuffer(), serialize(), unserialize(), updateVideoParams(), and write().


The documentation for this class was generated from the following files:

Generated on Fri Jun 9 2017 13:04:16 for gem5 by doxygen 1.8.6