gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::Pl111 Class Reference

#include <pl111.hh>

Inheritance diagram for gem5::Pl111:
gem5::AmbaDmaDevice gem5::DmaDevice gem5::AmbaDevice gem5::PioDevice gem5::ClockedObject gem5::SimObject gem5::Clocked gem5::EventManager gem5::Serializable gem5::Drainable gem5::statistics::Group gem5::Named

Public Types

using Params = Pl111Params
 
- Public Types inherited from gem5::AmbaDmaDevice
typedef AmbaDmaDeviceParams Params
 
- Public Types inherited from gem5::DmaDevice
typedef DmaDeviceParams Params
 
- Public Types inherited from gem5::PioDevice
using Params = PioDeviceParams
 
- Public Types inherited from gem5::ClockedObject
using Params = ClockedObjectParams
 Parameters of ClockedObject.
 
- Public Types inherited from gem5::SimObject
typedef SimObjectParams Params
 

Public Member Functions

 Pl111 (const Params &p)
 
 ~Pl111 ()
 
Tick read (PacketPtr pkt) override
 Pure virtual function that the device must implement.
 
Tick write (PacketPtr pkt) override
 Pure virtual function that the device must implement.
 
void serialize (CheckpointOut &cp) const override
 Serialize an object.
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object.
 
AddrRangeList getAddrRanges () const override
 Determine the address ranges that this device responds to.
 
- Public Member Functions inherited from gem5::AmbaDmaDevice
 AmbaDmaDevice (const Params &p, Addr pio_size=0)
 
- Public Member Functions inherited from gem5::DmaDevice
 DmaDevice (const Params &p)
 
virtual ~DmaDevice ()=default
 
void dmaWrite (Addr addr, int size, Event *event, uint8_t *data, uint32_t sid, uint32_t ssid, Tick delay=0)
 
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, uint32_t sid, uint32_t ssid, 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.
 
Addr cacheBlockSize () const
 
PortgetPort (const std::string &if_name, PortID idx=InvalidPortID) override
 Get a port with a given name and index.
 
- Public Member Functions inherited from gem5::PioDevice
 PioDevice (const Params &p)
 
virtual ~PioDevice ()
 
void init () override
 init() is called after all C++ SimObjects have been created and all ports are connected.
 
PortgetPort (const std::string &if_name, PortID idx=InvalidPortID) override
 Get a port with a given name and index.
 
- Public Member Functions inherited from gem5::ClockedObject
 ClockedObject (const ClockedObjectParams &p)
 
- Public Member Functions inherited from gem5::SimObject
const Paramsparams () const
 
 SimObject (const Params &p)
 
virtual ~SimObject ()
 
virtual void loadState (CheckpointIn &cp)
 loadState() is called on each SimObject when restoring from a checkpoint.
 
virtual void initState ()
 initState() is called on each SimObject when not restoring from a checkpoint.
 
virtual void regProbePoints ()
 Register probe points for this object.
 
virtual void regProbeListeners ()
 Register probe listeners for this object.
 
ProbeManagergetProbeManager ()
 Get the probe manager for this object.
 
virtual void startup ()
 startup() is the final initialization call before simulation.
 
DrainState drain () override
 Provide a default implementation of the drain interface for objects that don't need draining.
 
virtual void memWriteback ()
 Write back dirty buffers to memory using functional writes.
 
virtual void memInvalidate ()
 Invalidate the contents of memory buffers.
 
void serialize (CheckpointOut &cp) const override
 Serialize an object.
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object.
 
- Public Member Functions inherited from gem5::EventManager
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)
 This function is not needed by the usual gem5 event loop but may be necessary in derived EventQueues which host gem5 on other schedulers.
 
void setCurTick (Tick newVal)
 
 EventManager (EventManager &em)
 Event manger manages events in the event queue.
 
 EventManager (EventManager *em)
 
 EventManager (EventQueue *eq)
 
- Public Member Functions inherited from gem5::Serializable
 Serializable ()
 
virtual ~Serializable ()
 
void serializeSection (CheckpointOut &cp, const char *name) const
 Serialize an object into a new section.
 
void serializeSection (CheckpointOut &cp, const std::string &name) const
 
void unserializeSection (CheckpointIn &cp, const char *name)
 Unserialize an a child object.
 
void unserializeSection (CheckpointIn &cp, const std::string &name)
 
- Public Member Functions inherited from gem5::Drainable
DrainState drainState () const
 Return the current drain state of an object.
 
virtual void notifyFork ()
 Notify a child process of a fork.
 
- Public Member Functions inherited from gem5::statistics::Group
 Group (Group *parent, const char *name=nullptr)
 Construct a new statistics group.
 
virtual ~Group ()
 
virtual void regStats ()
 Callback to set stat parameters.
 
virtual void resetStats ()
 Callback to reset stats.
 
virtual void preDumpStats ()
 Callback before stats are dumped.
 
void addStat (statistics::Info *info)
 Register a stat with this group.
 
const std::map< std::string, Group * > & getStatGroups () const
 Get all child groups associated with this object.
 
const std::vector< Info * > & getStats () const
 Get all stats associated with this object.
 
void addStatGroup (const char *name, Group *block)
 Add a stat block as a child of this block.
 
const InforesolveStat (std::string name) const
 Resolve a stat by its name within this group.
 
void mergeStatGroup (Group *block)
 Merge the contents (stats & children) of a block to this block.
 
 Group ()=delete
 
 Group (const Group &)=delete
 
Groupoperator= (const Group &)=delete
 
- Public Member Functions inherited from gem5::Named
 Named (const std::string &name_)
 
virtual ~Named ()=default
 
virtual std::string name () const
 
- Public Member Functions inherited from gem5::Clocked
void updateClockPeriod ()
 Update the tick to the current tick.
 
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.
 
Cycles curCycle () const
 Determine the current cycle, corresponding to a tick aligned to a clock edge.
 
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.
 
uint64_t frequency () const
 
Tick clockPeriod () const
 
double voltage () const
 
Cycles ticksToCycles (Tick t) const
 
Tick cyclesToTicks (Cycles c) const
 

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
 
PixelConverter pixelConverter () const
 
void updateVideoParams ()
 Send updated parameters to the vnc server.
 
void readFramebuffer ()
 DMA framebuffer read.
 
void generateReadEvent ()
 Generate dma framebuffer read event.
 
void generateInterrupt ()
 Function to generate interrupt.
 
void fillFifo ()
 fillFIFO event
 
void startDma ()
 start the dmas off after power is enabled
 
void dmaDone ()
 DMA done event.
 
- Protected Member Functions inherited from gem5::Drainable
 Drainable ()
 
virtual ~Drainable ()
 
virtual void drainResume ()
 Resume execution after a successful drain.
 
void signalDrainDone () const
 Signal that an object is drained.
 
- Protected Member Functions inherited from gem5::Clocked
 Clocked (ClockDomain &clk_domain)
 Create a clocked object and set the clock domain based on the parameters.
 
 Clocked (Clocked &)=delete
 
Clockedoperator= (Clocked &)=delete
 
virtual ~Clocked ()
 Virtual destructor due to inheritance.
 
void resetClock () const
 Reset the object's clock using the current global tick value.
 
virtual void clockPeriodUpdated ()
 A hook subclasses can implement so they can do any extra work that's needed when the clock rate is changed.
 
- Protected Member Functions inherited from gem5::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
 
EndBitUnion(ControlReg) class DmaDoneEvent TimingReg0 lcdTiming0
 Event wrapper for dmaDone()
 
TimingReg1 lcdTiming1
 Vertical axis panel control register.
 
TimingReg2 lcdTiming2
 Clock and signal polarity control register.
 
TimingReg3 lcdTiming3
 Line end control register.
 
uint32_t lcdUpbase
 Upper panel frame base address register.
 
uint32_t lcdLpbase
 Lower panel frame base address register.
 
ControlReg lcdControl
 Control register.
 
InterruptReg lcdImsc
 Interrupt mask set/clear register.
 
InterruptReg lcdRis
 Raw interrupt status register - const.
 
InterruptReg lcdMis
 Masked interrupt status register.
 
uint32_t lcdPalette [LcdPaletteSize]
 256x16-bit color palette registers 256 palette entries organized as 128 locations of two entries per word
 
uint32_t cursorImage [CrsrImageSize]
 Cursor image RAM register 256-word wide values defining images overlaid by the hw cursor mechanism.
 
uint32_t clcdCrsrCtrl
 Cursor control register.
 
uint32_t clcdCrsrConfig
 Cursor configuration register.
 
uint32_t clcdCrsrPalette0
 Cursor palette registers.
 
uint32_t clcdCrsrPalette1
 
uint32_t clcdCrsrXY
 Cursor XY position register.
 
uint32_t clcdCrsrClip
 Cursor clip position register.
 
InterruptReg clcdCrsrImsc
 Cursor interrupt mask set/clear register.
 
InterruptReg clcdCrsrIcr
 Cursor interrupt clear register.
 
InterruptReg clcdCrsrRis
 Cursor raw interrupt status register - const.
 
InterruptReg clcdCrsrMis
 Cursor masked interrupt status register - const.
 
Tick pixelClock
 Pixel clock.
 
PixelConverter converter
 
FrameBuffer fb
 
VncInputvnc
 VNC server.
 
BmpWriter bmp
 Helper to write out bitmaps.
 
OutputStreampic
 Picture of what the current frame buffer looks like.
 
uint16_t width
 Frame buffer width - pixels per line.
 
uint16_t height
 Frame buffer height - lines per panel.
 
uint8_t bytesPerPixel
 Bytes per pixel.
 
uint8_t * dmaBuffer
 CLCDC supports up to 1024x768.
 
Tick startTime
 Start time for frame buffer dma read.
 
Addr startAddr
 Frame buffer base address.
 
Addr maxAddr
 Frame buffer max address.
 
Addr curAddr
 Frame buffer current address.
 
uint32_t waterMark
 DMA FIFO watermark.
 
uint32_t dmaPendingNum
 Number of pending dma reads.
 
EventFunctionWrapper readEvent
 DMA framebuffer read event.
 
EventFunctionWrapper fillFifoEvent
 Fill fifo.
 
EventFunctionWrapper intEvent
 Wrapper to create an event out of the interrupt.
 
bool enableCapture
 
std::vector< DmaDoneEvent > dmaDoneEventAll
 All pre-allocated DMA done events.
 
std::vector< DmaDoneEvent * > dmaDoneEventFree
 Unused DMA done events that are ready to be scheduled.
 
- Protected Attributes inherited from gem5::AmbaDmaDevice
uint64_t ambaId
 
Addr pioAddr
 
Addr pioSize
 
Tick pioDelay
 
ArmInterruptPin *const interrupt
 
- Protected Attributes inherited from gem5::DmaDevice
DmaPort dmaPort
 
- Protected Attributes inherited from gem5::PioDevice
Systemsys
 
PioPort< PioDevicepioPort
 The pioPort that handles the requests for us and provides us requests that it sees.
 
- Protected Attributes inherited from gem5::SimObject
const SimObjectParams & _params
 Cached copy of the object parameters.
 
- Protected Attributes inherited from gem5::EventManager
EventQueueeventq
 A pointer to this object's event queue.
 

Static Protected Attributes

static const uint64_t AMBA_ID = 0xb105f00d00141111ULL
 
static const int LcdTiming0 = 0x000
 ARM PL111 register map.
 
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 gem5::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 gem5::SimObject
static void serializeAll (const std::string &cpt_dir)
 Create a checkpoint by serializing all SimObjects in the system.
 
static SimObjectfind (const char *name)
 Find the SimObject with the given name and return a pointer to it.
 
static void setSimObjectResolver (SimObjectResolver *resolver)
 There is a single object name resolver, and it is only set when simulation is restoring from checkpoints.
 
static SimObjectResolvergetSimObjectResolver ()
 There is a single object name resolver, and it is only set when simulation is restoring from checkpoints.
 
- Static Public Member Functions inherited from gem5::Serializable
static const std::string & currentSection ()
 Gets the fully-qualified name of the active section.
 
static void generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream)
 Generate a checkpoint file so that the serialization can be routed to it.
 
- Public Attributes inherited from gem5::ClockedObject
PowerStatepowerState
 

Detailed Description

Definition at line 61 of file pl111.hh.

Member Typedef Documentation

◆ Params

using gem5::Pl111::Params = Pl111Params

Definition at line 363 of file pl111.hh.

Member Enumeration Documentation

◆ LcdMode

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

Definition at line 103 of file pl111.hh.

Constructor & Destructor Documentation

◆ Pl111()

gem5::Pl111::Pl111 ( const Params & p)

Definition at line 59 of file pl111.cc.

References readFramebuffer().

◆ ~Pl111()

gem5::Pl111::~Pl111 ( )

Definition at line 92 of file pl111.cc.

References dmaBuffer.

Member Function Documentation

◆ BitUnion8()

gem5::Pl111::BitUnion8 ( InterruptReg )
protected

◆ dmaDone()

◆ EndBitUnion() [1/5]

gem5::Pl111::EndBitUnion ( InterruptReg )
protected

◆ EndBitUnion() [2/5]

gem5::Pl111::EndBitUnion ( TimingReg0 )
protected

◆ EndBitUnion() [3/5]

gem5::Pl111::EndBitUnion ( TimingReg1 )
protected

◆ EndBitUnion() [4/5]

gem5::Pl111::EndBitUnion ( TimingReg2 )
protected

◆ EndBitUnion() [5/5]

gem5::Pl111::EndBitUnion ( TimingReg3 )
protected

◆ fillFifo()

◆ generateInterrupt()

void gem5::Pl111::generateInterrupt ( )
protected

Function to generate interrupt.

Definition at line 727 of file pl111.cc.

References DPRINTF, gem5::AmbaDmaDevice::interrupt, lcdImsc, lcdMis, lcdRis, and gem5::ArmInterruptPin::raise().

◆ generateReadEvent()

void gem5::Pl111::generateReadEvent ( )
protected

Generate dma framebuffer read event.

◆ getAddrRanges()

AddrRangeList gem5::Pl111::getAddrRanges ( ) const
overridevirtual

Determine the address ranges that this device responds to.

Returns
a list of non-overlapping address ranges

Implements gem5::PioDevice.

Definition at line 740 of file pl111.cc.

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

◆ pixelConverter()

PixelConverter gem5::Pl111::pixelConverter ( ) const
protected

Definition at line 356 of file pl111.cc.

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

Referenced by updateVideoParams().

◆ read()

◆ readFramebuffer()

void gem5::Pl111::readFramebuffer ( )
protected

◆ serialize()

◆ startDma()

void gem5::Pl111::startDma ( )
protected

start the dmas off after power is enabled

Definition at line 418 of file pl111.cc.

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

Referenced by write().

◆ unserialize()

◆ updateVideoParams()

void gem5::Pl111::updateVideoParams ( )
protected

Send updated parameters to the vnc server.

Definition at line 398 of file pl111.cc.

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

Referenced by unserialize(), and write().

◆ write()

Member Data Documentation

◆ acb

Bitfield<10,6> gem5::Pl111::acb
protected

Definition at line 139 of file pl111.hh.

◆ ahbmaster

Bitfield<4> gem5::Pl111::ahbmaster
protected

Definition at line 119 of file pl111.hh.

◆ AMBA_ID

const uint64_t gem5::Pl111::AMBA_ID = 0xb105f00d00141111ULL
staticprotected

Definition at line 64 of file pl111.hh.

Referenced by read().

◆ avs

Bitfield<11> gem5::Pl111::avs
protected

Definition at line 140 of file pl111.hh.

◆ baseaddr

Bitfield<2> gem5::Pl111::baseaddr
protected

Definition at line 117 of file pl111.hh.

◆ bcd

Bitfield<26> gem5::Pl111::bcd
protected

Definition at line 145 of file pl111.hh.

◆ bebo

Bitfield<9> gem5::Pl111::bebo
protected

Definition at line 162 of file pl111.hh.

◆ bepo

Bitfield<10> gem5::Pl111::bepo
protected

Definition at line 163 of file pl111.hh.

◆ bgr

Bitfield<8> gem5::Pl111::bgr
protected

Definition at line 161 of file pl111.hh.

◆ bmp

BmpWriter gem5::Pl111::bmp
protected

Helper to write out bitmaps.

Definition at line 270 of file pl111.hh.

Referenced by dmaDone().

◆ buffer_size

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

Definition at line 101 of file pl111.hh.

Referenced by serialize(), and unserialize().

◆ bytesPerPixel

uint8_t gem5::Pl111::bytesPerPixel
protected

Bytes per pixel.

Definition at line 282 of file pl111.hh.

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

◆ ClcdCrsrClip

const int gem5::Pl111::ClcdCrsrClip = 0xC14
staticprotected

Definition at line 86 of file pl111.hh.

Referenced by read(), and write().

◆ clcdCrsrClip

uint32_t gem5::Pl111::clcdCrsrClip
protected

Cursor clip position register.

Definition at line 246 of file pl111.hh.

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

◆ ClcdCrsrConfig

const int gem5::Pl111::ClcdCrsrConfig = 0xC04
staticprotected

Definition at line 82 of file pl111.hh.

Referenced by read(), and write().

◆ clcdCrsrConfig

uint32_t gem5::Pl111::clcdCrsrConfig
protected

Cursor configuration register.

Definition at line 236 of file pl111.hh.

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

◆ ClcdCrsrCtrl

const int gem5::Pl111::ClcdCrsrCtrl = 0xC00
staticprotected

Definition at line 81 of file pl111.hh.

Referenced by read(), and write().

◆ clcdCrsrCtrl

uint32_t gem5::Pl111::clcdCrsrCtrl
protected

Cursor control register.

Definition at line 233 of file pl111.hh.

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

◆ ClcdCrsrIcr

const int gem5::Pl111::ClcdCrsrIcr = 0xC24
staticprotected

Definition at line 88 of file pl111.hh.

Referenced by read(), and write().

◆ clcdCrsrIcr

InterruptReg gem5::Pl111::clcdCrsrIcr
protected

Cursor interrupt clear register.

Definition at line 252 of file pl111.hh.

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

◆ ClcdCrsrImsc

const int gem5::Pl111::ClcdCrsrImsc = 0xC20
staticprotected

Definition at line 87 of file pl111.hh.

Referenced by read(), and write().

◆ clcdCrsrImsc

InterruptReg gem5::Pl111::clcdCrsrImsc
protected

Cursor interrupt mask set/clear register.

Definition at line 249 of file pl111.hh.

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

◆ ClcdCrsrMis

const int gem5::Pl111::ClcdCrsrMis = 0xC2C
staticprotected

Definition at line 90 of file pl111.hh.

Referenced by read(), and write().

◆ clcdCrsrMis

InterruptReg gem5::Pl111::clcdCrsrMis
protected

Cursor masked interrupt status register - const.

Definition at line 258 of file pl111.hh.

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

◆ ClcdCrsrPalette0

const int gem5::Pl111::ClcdCrsrPalette0 = 0xC08
staticprotected

Definition at line 83 of file pl111.hh.

Referenced by read(), and write().

◆ clcdCrsrPalette0

uint32_t gem5::Pl111::clcdCrsrPalette0
protected

Cursor palette registers.

Definition at line 239 of file pl111.hh.

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

◆ ClcdCrsrPalette1

const int gem5::Pl111::ClcdCrsrPalette1 = 0xC0C
staticprotected

Definition at line 84 of file pl111.hh.

Referenced by read(), and write().

◆ clcdCrsrPalette1

uint32_t gem5::Pl111::clcdCrsrPalette1
protected

Definition at line 240 of file pl111.hh.

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

◆ ClcdCrsrRis

const int gem5::Pl111::ClcdCrsrRis = 0xC28
staticprotected

Definition at line 89 of file pl111.hh.

Referenced by read(), and write().

◆ clcdCrsrRis

InterruptReg gem5::Pl111::clcdCrsrRis
protected

Cursor raw interrupt status register - const.

Definition at line 255 of file pl111.hh.

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

◆ ClcdCrsrXY

const int gem5::Pl111::ClcdCrsrXY = 0xC10
staticprotected

Definition at line 85 of file pl111.hh.

Referenced by read(), and write().

◆ clcdCrsrXY

uint32_t gem5::Pl111::clcdCrsrXY
protected

Cursor XY position register.

Definition at line 243 of file pl111.hh.

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

◆ clksel

Bitfield<5> gem5::Pl111::clksel
protected

Definition at line 138 of file pl111.hh.

◆ converter

PixelConverter gem5::Pl111::converter
protected

Definition at line 263 of file pl111.hh.

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

◆ cpl

Bitfield<25,16> gem5::Pl111::cpl
protected

Definition at line 144 of file pl111.hh.

◆ CrsrImage

const int gem5::Pl111::CrsrImage = 0x800
staticprotected

Definition at line 80 of file pl111.hh.

Referenced by read(), and write().

◆ CrsrImageSize

const int gem5::Pl111::CrsrImageSize = 256
staticprotected

Definition at line 93 of file pl111.hh.

Referenced by serialize(), and unserialize().

◆ curAddr

Addr gem5::Pl111::curAddr
protected

Frame buffer current address.

Definition at line 297 of file pl111.hh.

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

◆ cursorImage

uint32_t gem5::Pl111::cursorImage[CrsrImageSize]
protected

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

Definition at line 230 of file pl111.hh.

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

◆ dmaBuffer

uint8_t* gem5::Pl111::dmaBuffer
protected

CLCDC supports up to 1024x768.

Definition at line 285 of file pl111.hh.

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

◆ dmaDoneEventAll

std::vector<DmaDoneEvent> gem5::Pl111::dmaDoneEventAll
protected

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 351 of file pl111.hh.

Referenced by serialize(), and unserialize().

◆ dmaDoneEventFree

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

Unused DMA done events that are ready to be scheduled.

Definition at line 354 of file pl111.hh.

Referenced by fillFifo(), and unserialize().

◆ dmaPendingNum

uint32_t gem5::Pl111::dmaPendingNum
protected

Number of pending dma reads.

Definition at line 303 of file pl111.hh.

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

◆ dmaSize

const int gem5::Pl111::dmaSize = 8
staticprotected

Definition at line 98 of file pl111.hh.

Referenced by fillFifo().

◆ enableCapture

bool gem5::Pl111::enableCapture
protected

Definition at line 360 of file pl111.hh.

Referenced by dmaDone().

◆ fb

FrameBuffer gem5::Pl111::fb
protected

Definition at line 264 of file pl111.hh.

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

◆ fillFifoEvent

EventFunctionWrapper gem5::Pl111::fillFifoEvent
protected

Fill fifo.

Definition at line 332 of file pl111.hh.

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

◆ hbp

Bitfield<31,24> gem5::Pl111::hbp
protected

Definition at line 126 of file pl111.hh.

◆ height

uint16_t gem5::Pl111::height
protected

Frame buffer height - lines per panel.

Definition at line 279 of file pl111.hh.

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

◆ hfp

Bitfield<23,16> gem5::Pl111::hfp
protected

Definition at line 125 of file pl111.hh.

◆ hsw

Bitfield<15,8> gem5::Pl111::hsw
protected

Definition at line 124 of file pl111.hh.

◆ ihs

Bitfield<12> gem5::Pl111::ihs
protected

Definition at line 141 of file pl111.hh.

◆ intEvent

EventFunctionWrapper gem5::Pl111::intEvent
protected

Wrapper to create an event out of the interrupt.

Definition at line 358 of file pl111.hh.

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

◆ ioe

Bitfield<14> gem5::Pl111::ioe
protected

Definition at line 143 of file pl111.hh.

◆ ipc

Bitfield<13> gem5::Pl111::ipc
protected

Definition at line 142 of file pl111.hh.

◆ lcdbpp

Bitfield<3,1> gem5::Pl111::lcdbpp
protected

Definition at line 156 of file pl111.hh.

◆ lcdbw

Bitfield<4> gem5::Pl111::lcdbw
protected

Definition at line 157 of file pl111.hh.

◆ LcdControl

const int gem5::Pl111::LcdControl = 0x018
staticprotected

Definition at line 72 of file pl111.hh.

Referenced by read(), and write().

◆ lcdControl

ControlReg gem5::Pl111::lcdControl
protected

Control register.

Definition at line 213 of file pl111.hh.

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

◆ lcddual

Bitfield<7> gem5::Pl111::lcddual
protected

Definition at line 160 of file pl111.hh.

◆ LcdIcr

const int gem5::Pl111::LcdIcr = 0x028
staticprotected

Definition at line 76 of file pl111.hh.

Referenced by read(), and write().

◆ LcdImsc

const int gem5::Pl111::LcdImsc = 0x01C
staticprotected

Definition at line 73 of file pl111.hh.

Referenced by read(), and write().

◆ lcdImsc

InterruptReg gem5::Pl111::lcdImsc
protected

Interrupt mask set/clear register.

Definition at line 216 of file pl111.hh.

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

◆ LcdLpBase

const int gem5::Pl111::LcdLpBase = 0x014
staticprotected

Definition at line 71 of file pl111.hh.

Referenced by read(), and write().

◆ lcdLpbase

uint32_t gem5::Pl111::lcdLpbase
protected

Lower panel frame base address register.

Definition at line 210 of file pl111.hh.

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

◆ LcdLpCurr

const int gem5::Pl111::LcdLpCurr = 0x030
staticprotected

Definition at line 78 of file pl111.hh.

Referenced by read(), and write().

◆ LcdMaxHeight

const int gem5::Pl111::LcdMaxHeight = 768
staticprotected

Definition at line 96 of file pl111.hh.

◆ LcdMaxWidth

const int gem5::Pl111::LcdMaxWidth = 1024
staticprotected

Definition at line 95 of file pl111.hh.

◆ LcdMis

const int gem5::Pl111::LcdMis = 0x024
staticprotected

Definition at line 75 of file pl111.hh.

Referenced by read(), and write().

◆ lcdMis

InterruptReg gem5::Pl111::lcdMis
protected

Masked interrupt status register.

Definition at line 222 of file pl111.hh.

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

◆ lcdmono8

Bitfield<6> gem5::Pl111::lcdmono8
protected

Definition at line 159 of file pl111.hh.

◆ LcdPalette

const int gem5::Pl111::LcdPalette = 0x200
staticprotected

Definition at line 79 of file pl111.hh.

Referenced by read(), and write().

◆ lcdPalette

uint32_t gem5::Pl111::lcdPalette[LcdPaletteSize]
protected

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

Definition at line 226 of file pl111.hh.

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

◆ LcdPaletteSize

const int gem5::Pl111::LcdPaletteSize = 128
staticprotected

Definition at line 92 of file pl111.hh.

Referenced by serialize(), and unserialize().

◆ lcdpwr

Bitfield<11> gem5::Pl111::lcdpwr
protected

Definition at line 164 of file pl111.hh.

◆ LcdRis

const int gem5::Pl111::LcdRis = 0x020
staticprotected

Definition at line 74 of file pl111.hh.

Referenced by read(), and write().

◆ lcdRis

InterruptReg gem5::Pl111::lcdRis
protected

Raw interrupt status register - const.

Definition at line 219 of file pl111.hh.

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

◆ lcdtft

Bitfield<5> gem5::Pl111::lcdtft
protected

Definition at line 158 of file pl111.hh.

◆ LcdTiming0

const int gem5::Pl111::LcdTiming0 = 0x000
staticprotected

ARM PL111 register map.

Definition at line 66 of file pl111.hh.

Referenced by read(), and write().

◆ lcdTiming0

EndBitUnion (ControlReg) class DmaDoneEvent TimingReg0 gem5::Pl111::lcdTiming0
protected

Event wrapper for dmaDone()

This event calls pushes its this pointer onto the freeDoneEvent vector and calls dmaDone() when triggered. Horizontal axis panel control register

Definition at line 195 of file pl111.hh.

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

◆ LcdTiming1

const int gem5::Pl111::LcdTiming1 = 0x004
staticprotected

Definition at line 67 of file pl111.hh.

Referenced by read(), and write().

◆ lcdTiming1

TimingReg1 gem5::Pl111::lcdTiming1
protected

Vertical axis panel control register.

Definition at line 198 of file pl111.hh.

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

◆ LcdTiming2

const int gem5::Pl111::LcdTiming2 = 0x008
staticprotected

Definition at line 68 of file pl111.hh.

Referenced by read(), and write().

◆ lcdTiming2

TimingReg2 gem5::Pl111::lcdTiming2
protected

Clock and signal polarity control register.

Definition at line 201 of file pl111.hh.

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

◆ LcdTiming3

const int gem5::Pl111::LcdTiming3 = 0x00C
staticprotected

Definition at line 69 of file pl111.hh.

Referenced by read(), and write().

◆ lcdTiming3

TimingReg3 gem5::Pl111::lcdTiming3
protected

Line end control register.

Definition at line 204 of file pl111.hh.

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

◆ LcdUpBase

const int gem5::Pl111::LcdUpBase = 0x010
staticprotected

Definition at line 70 of file pl111.hh.

Referenced by read(), and write().

◆ lcdUpbase

uint32_t gem5::Pl111::lcdUpbase
protected

Upper panel frame base address register.

Definition at line 207 of file pl111.hh.

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

◆ LcdUpCurr

const int gem5::Pl111::LcdUpCurr = 0x02C
staticprotected

Definition at line 77 of file pl111.hh.

Referenced by read(), and write().

◆ lcdvcomp

Bitfield<13,12> gem5::Pl111::lcdvcomp
protected

Definition at line 165 of file pl111.hh.

◆ led

gem5::Pl111::led
protected

Definition at line 150 of file pl111.hh.

◆ lee

Bitfield<16> gem5::Pl111::lee
protected

Definition at line 151 of file pl111.hh.

◆ lpp

gem5::Pl111::lpp
protected

Definition at line 130 of file pl111.hh.

◆ maxAddr

Addr gem5::Pl111::maxAddr
protected

Frame buffer max address.

Definition at line 294 of file pl111.hh.

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

◆ maxOutstandingDma

const int gem5::Pl111::maxOutstandingDma = 16
staticprotected

Definition at line 99 of file pl111.hh.

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

◆ pcdhi

Bitfield<31,27> gem5::Pl111::pcdhi
protected

Definition at line 146 of file pl111.hh.

◆ pcdlo

gem5::Pl111::pcdlo
protected

Definition at line 137 of file pl111.hh.

◆ pic

OutputStream* gem5::Pl111::pic
protected

Picture of what the current frame buffer looks like.

Definition at line 273 of file pl111.hh.

Referenced by dmaDone().

◆ pixelClock

Tick gem5::Pl111::pixelClock
protected

Pixel clock.

Definition at line 261 of file pl111.hh.

Referenced by dmaDone().

◆ ppl

gem5::Pl111::ppl
protected

Definition at line 123 of file pl111.hh.

◆ readEvent

EventFunctionWrapper gem5::Pl111::readEvent
protected

DMA framebuffer read event.

Definition at line 329 of file pl111.hh.

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

◆ startAddr

Addr gem5::Pl111::startAddr
protected

Frame buffer base address.

Definition at line 291 of file pl111.hh.

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

◆ startTime

Tick gem5::Pl111::startTime
protected

Start time for frame buffer dma read.

Definition at line 288 of file pl111.hh.

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

◆ vbp

Bitfield<31,24> gem5::Pl111::vbp
protected

Definition at line 133 of file pl111.hh.

◆ vcomp

Bitfield<3> gem5::Pl111::vcomp
protected

Definition at line 118 of file pl111.hh.

◆ vfp

Bitfield<23,16> gem5::Pl111::vfp
protected

Definition at line 132 of file pl111.hh.

◆ vnc

VncInput* gem5::Pl111::vnc
protected

VNC server.

Definition at line 267 of file pl111.hh.

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

◆ vsw

Bitfield<15,10> gem5::Pl111::vsw
protected

Definition at line 131 of file pl111.hh.

◆ waterMark

uint32_t gem5::Pl111::waterMark
protected

DMA FIFO watermark.

Definition at line 300 of file pl111.hh.

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

◆ watermark

Bitfield<16> gem5::Pl111::watermark
protected

Definition at line 166 of file pl111.hh.

◆ width

uint16_t gem5::Pl111::width
protected

Frame buffer width - pixels per line.

Definition at line 276 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 Tue Jun 18 2024 16:24:13 for gem5 by doxygen 1.11.0