gem5
v20.1.0.0
|
#include <hdlcd.hh>
Classes | |
class | DmaEngine |
class | PixelPump |
Public Member Functions | |
HDLcd (const HDLcdParams *p) | |
~HDLcd () | |
void | regStats () override |
Callback to set stat parameters. More... | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
void | drainResume () override |
Resume execution after a successful drain. More... | |
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... | |
AddrRangeList | getAddrRanges () const override |
Every PIO device is obliged to provide an implementation that returns the address ranges the device responds to. More... | |
bool | pxlNext (Pixel &p) |
void | pxlVSyncBegin () |
void | pxlVSyncEnd () |
void | pxlUnderrun () |
void | pxlFrameDone () |
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, 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. More... | |
unsigned int | cacheBlockSize () const |
Port & | getPort (const std::string &if_name, PortID idx=InvalidPortID) override |
Get a port with a given name and index. More... | |
Public Member Functions inherited from PioDevice | |
PioDevice (const Params *p) | |
virtual | ~PioDevice () |
const Params * | params () const |
void | init () override |
init() is called after all C++ SimObjects have been created and all ports are connected. More... | |
Port & | getPort (const std::string &if_name, PortID idx=InvalidPortID) override |
Get a port with a given name and index. More... | |
Public Member Functions inherited from ClockedObject | |
ClockedObject (const ClockedObjectParams *p) | |
const Params * | params () const |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
Public Member Functions inherited from SimObject | |
const Params * | params () const |
SimObject (const Params *_params) | |
virtual | ~SimObject () |
virtual const std::string | name () const |
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 | regProbePoints () |
Register probe points for this object. More... | |
virtual void | regProbeListeners () |
Register probe listeners for this object. More... | |
ProbeManager * | getProbeManager () |
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 | |
EventQueue * | eventQueue () 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. More... | |
void | setCurTick (Tick newVal) |
EventManager (EventManager &em) | |
Event manger manages events in the event queue. More... | |
EventManager (EventManager *em) | |
EventManager (EventQueue *eq) | |
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 Stats::Group | |
Group (Group *parent, const char *name=nullptr) | |
Construct a new statistics group. More... | |
virtual | ~Group () |
virtual void | resetStats () |
Callback to reset stats. More... | |
virtual void | preDumpStats () |
Callback before stats are dumped. More... | |
void | addStat (Stats::Info *info) |
Register a stat with this group. More... | |
const std::map< std::string, Group * > & | getStatGroups () const |
Get all child groups associated with this object. More... | |
const std::vector< Info * > & | getStats () const |
Get all stats associated with this object. More... | |
void | addStatGroup (const char *name, Group *block) |
Add a stat block as a child of this block. More... | |
const Info * | resolveStat (std::string name) const |
Resolve a stat by its name within this group. More... | |
Group ()=delete | |
Group (const Group &)=delete | |
Group & | operator= (const Group &)=delete |
Public Member Functions inherited from Clocked | |
void | updateClockPeriod () |
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 |
Protected Types | |
enum | RegisterOffset { Version = 0x0000, Int_RawStat = 0x0010, Int_Clear = 0x0014, Int_Mask = 0x0018, Int_Status = 0x001C, Fb_Base = 0x0100, Fb_Line_Length = 0x0104, Fb_Line_Count = 0x0108, Fb_Line_Pitch = 0x010C, Bus_Options = 0x0110, V_Sync = 0x0200, V_Back_Porch = 0x0204, V_Data = 0x0208, V_Front_Porch = 0x020C, H_Sync = 0x0210, H_Back_Porch = 0x0214, H_Data = 0x0218, H_Front_Porch = 0x021C, Polarities = 0x0220, Command = 0x0230, Pixel_Format = 0x0240, Red_Select = 0x0244, Green_Select = 0x0248, Blue_Select = 0x024C } |
ARM HDLcd register offsets. More... | |
Protected Member Functions | |
uint32_t | readReg (Addr offset) |
void | writeReg (Addr offset, uint32_t value) |
PixelConverter | pixelConverter () const |
DisplayTimings | displayTimings () const |
void | createDmaEngine () |
void | cmdEnable () |
void | cmdDisable () |
bool | enabled () const |
void | setInterrupts (uint32_t ints, uint32_t mask) |
Assign new interrupt values and update interrupt signals. More... | |
void | intMask (uint32_t mask) |
Convenience function to update the interrupt mask. More... | |
void | intRaise (uint32_t ints) |
Convenience function to raise a new interrupt. More... | |
void | intClear (uint32_t ints) |
Convenience function to clear interrupts. More... | |
uint32_t | intStatus () const |
Masked interrupt status register. More... | |
void | virtRefresh () |
Handler for fast frame refresh in KVM-mode. More... | |
Protected Member Functions inherited from Drainable | |
Drainable () | |
virtual | ~Drainable () |
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 | |
Clocked & | operator= (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... | |
virtual void | clockPeriodUpdated () |
A hook subclasses can implement so they can do any extra work that's needed when the clock rate is changed. More... | |
Protected Member Functions inherited from AmbaDevice | |
bool | readId (PacketPtr pkt, uint64_t amba_id, Addr pio_addr) |
Protected Attributes | |
VncInput * | vnc |
const bool | workaroundSwapRB |
const bool | workaroundDmaLineCount |
const AddrRangeList | addrRanges |
const bool | enableCapture |
const Addr | pixelBufferSize |
const Tick | virtRefreshRate |
EventFunctionWrapper | virtRefreshEvent |
std::unique_ptr< ImgWriter > | imgWriter |
Helper to write out bitmaps. More... | |
Enums::ImageFormat | imgFormat |
Image Format. More... | |
OutputStream * | pic |
Picture of what the current frame buffer looks like. More... | |
PixelConverter | conv |
Cached pixel converter, set when the converter is enabled. More... | |
PixelPump | pixelPump |
std::unique_ptr< DmaEngine > | dmaEngine |
struct { | |
Stats::Scalar underruns | |
} | stats |
HDLCDRegisters | |
HDLCD register contents. | |
uint32_t | int_rawstat |
Interrupt raw status register. More... | |
uint32_t | int_mask |
Interrupt mask register. More... | |
uint32_t | fb_base |
Frame buffer base address register. More... | |
uint32_t | fb_line_length |
Frame buffer Line length register. More... | |
FbLineCountReg | fb_line_count |
Frame buffer Line count register. More... | |
int32_t | fb_line_pitch |
Frame buffer Line pitch register. More... | |
BusOptsReg | bus_options |
Bus options register. More... | |
TimingReg | v_sync |
Vertical sync width register. More... | |
TimingReg | v_back_porch |
Vertical back porch width register. More... | |
TimingReg | v_data |
Vertical data width register. More... | |
TimingReg | v_front_porch |
Vertical front porch width register. More... | |
TimingReg | h_sync |
Horizontal sync width register. More... | |
TimingReg | h_back_porch |
Horizontal back porch width register. More... | |
TimingReg | h_data |
Horizontal data width register. More... | |
TimingReg | h_front_porch |
Horizontal front porch width reg. More... | |
PolaritiesReg | polarities |
Polarities register. More... | |
CommandReg | command |
Command register. More... | |
PixelFormatReg | pixel_format |
Pixel format register. More... | |
ColorSelectReg | red_select |
Red color select register. More... | |
ColorSelectReg | green_select |
Green color select register. More... | |
ColorSelectReg | blue_select |
Blue color select register. More... | |
Protected Attributes inherited from AmbaDmaDevice | |
uint64_t | ambaId |
Addr | pioAddr |
Addr | pioSize |
Tick | pioDelay |
ArmInterruptPin *const | interrupt |
Protected Attributes inherited from DmaDevice | |
DmaPort | dmaPort |
Protected Attributes inherited from PioDevice | |
System * | sys |
PioPort< PioDevice > | pioPort |
The pioPort that handles the requests for us and provides us requests that it sees. More... | |
Protected Attributes inherited from SimObject | |
const SimObjectParams * | _params |
Cached copy of the object parameters. More... | |
Protected Attributes inherited from EventManager | |
EventQueue * | eventq |
A pointer to this object's event queue. More... | |
Static Protected Attributes | |
static constexpr size_t | BUS_OPTIONS_RESETV = 0x408 |
Reset value for Bus_Options register. More... | |
static constexpr size_t | VERSION_RESETV = 0x1CDC0000 |
Reset value for Version register. More... | |
static constexpr size_t | AXI_PORT_WIDTH = 8 |
AXI port width in bytes. More... | |
static constexpr size_t | MAX_BURST_LEN = 16 |
max number of beats delivered in one dma burst More... | |
static constexpr size_t | MAX_PIXEL_SIZE = 4 |
Maximum number of bytes per pixel. More... | |
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 |
RegisterFieldLayouts | |
version_minor | |
Bitfield< 15, 8 > | version_major |
Bitfield< 31, 16 > | product_id |
fb_line_count | |
Bitfield< 31, 12 > | reserved_31_12 |
burst_len | |
Bitfield< 7, 5 > | reserved_7_5 |
Bitfield< 11, 8 > | max_outstanding |
val | |
Bitfield< 1 > | hsync_polarity |
Bitfield< 2 > | dataen_polarity |
Bitfield< 3 > | data_polarity |
Bitfield< 4 > | pxlclk_polarity |
Bitfield< 31, 5 > | reserved_31_5 |
Bitfield< 31, 1 > | reserved_31_1 |
reserved_2_0 | |
Bitfield< 4, 3 > | bytes_per_pixel |
Bitfield< 30, 5 > | reserved_30_5 |
Bitfield< 31 > | big_endian |
offset | |
Bitfield< 11, 8 > | size |
Bitfield< 15, 12 > | reserved_15_12 |
Bitfield< 23, 16 > | default_color |
Bitfield< 31, 24 > | reserved_31_24 |
static constexpr uint32_t | INT_BUS_ERROR = (1UL << 1) |
static constexpr uint32_t | INT_VSYNC = (1UL << 2) |
static constexpr uint32_t | INT_UNDERRUN = (1UL << 3) |
BitUnion32 (VersionReg) Bitfield< 7 | |
EndBitUnion (VersionReg) static const expr uint32_t INT_DMA_END | |
BitUnion32 (FbLineCountReg) Bitfield< 11 | |
EndBitUnion (FbLineCountReg) BitUnion32(BusOptsReg) Bitfield< 4 | |
EndBitUnion (BusOptsReg) BitUnion32(TimingReg) Bitfield< 11 | |
EndBitUnion (TimingReg) BitUnion32(PolaritiesReg) Bitfield< 0 > vsync_polarity | |
EndBitUnion (PolaritiesReg) BitUnion32(CommandReg) Bitfield< 0 > enable | |
EndBitUnion (CommandReg) BitUnion32(PixelFormatReg) Bitfield< 2 | |
EndBitUnion (PixelFormatReg) BitUnion32(ColorSelectReg) Bitfield< 4 | |
Additional Inherited Members | |
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 ClockedObject | |
typedef ClockedObjectParams | Params |
Parameters of ClockedObject. More... | |
Public Types inherited from SimObject | |
typedef SimObjectParams | Params |
Static Public Member Functions inherited from SimObject | |
static void | serializeAll (CheckpointOut &cp) |
Serialize all SimObjects in the system. More... | |
static SimObject * | find (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 () |
Gets the fully-qualified name of the active section. More... | |
static void | serializeAll (const std::string &cpt_dir) |
Serializes all the SimObjects. More... | |
static void | unserializeGlobals (CheckpointIn &cp) |
Public Attributes inherited from ClockedObject | |
PowerState * | powerState |
|
protected |
ARM HDLcd register offsets.
HDLcd::HDLcd | ( | const HDLcdParams * | p | ) |
Definition at line 57 of file hdlcd.cc.
References AmbaDmaDevice::pioAddr, AmbaDmaDevice::pioSize, and RangeSize().
|
protected |
|
protected |
|
protected |
Definition at line 509 of file hdlcd.cc.
References System::bypassCaches(), EventManager::deschedule(), dmaEngine, pixelPump, Event::scheduled(), BasePixelPump::stop(), PioDevice::sys, and virtRefreshEvent.
Referenced by drainResume(), and writeReg().
|
protected |
Definition at line 493 of file hdlcd.cc.
References System::bypassCaches(), Clocked::clockEdge(), conv, createDmaEngine(), displayTimings(), pixelConverter(), pixelPump, EventManager::schedule(), BasePixelPump::start(), PioDevice::sys, BasePixelPump::updateTimings(), and virtRefreshEvent.
Referenced by drainResume(), and writeReg().
|
protected |
Definition at line 466 of file hdlcd.cc.
References AXI_PORT_WIDTH, bus_options, dmaEngine, fb_line_count, fb_line_length, fb_line_pitch, findMsbSet(), MAX_BURST_LEN, pixelBufferSize, warn, and workaroundDmaLineCount.
Referenced by cmdEnable(), and unserialize().
|
protected |
Definition at line 457 of file hdlcd.cc.
References h_back_porch, h_data, h_front_porch, h_sync, v_back_porch, v_data, v_front_porch, and v_sync.
Referenced by cmdEnable().
|
overridevirtual |
Resume execution after a successful drain.
Reimplemented from Drainable.
Definition at line 202 of file hdlcd.cc.
References BasePixelPump::active(), System::bypassCaches(), cmdDisable(), cmdEnable(), Drainable::drainResume(), enabled(), pixelPump, VncInput::setDirty(), PioDevice::sys, and vnc.
|
inlineprotected |
Definition at line 266 of file hdlcd.hh.
References command.
Referenced by drainResume(), serialize(), and unserialize().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inlineoverridevirtual |
Every PIO device is obliged to provide an implementation that returns the address ranges the device responds to.
Implements PioDevice.
Definition at line 107 of file hdlcd.hh.
References addrRanges.
|
inlineprotected |
Convenience function to clear interrupts.
ints | Set of interrupts to clear |
Definition at line 313 of file hdlcd.hh.
References int_mask, int_rawstat, and setInterrupts().
Referenced by writeReg().
|
inlineprotected |
Convenience function to update the interrupt mask.
mask | New interrupt mask |
Definition at line 295 of file hdlcd.hh.
References int_rawstat, ArmISA::mask, and setInterrupts().
Referenced by writeReg().
|
inlineprotected |
Convenience function to raise a new interrupt.
ints | Set of interrupts to raise |
Definition at line 303 of file hdlcd.hh.
References int_mask, int_rawstat, and setInterrupts().
Referenced by pxlUnderrun(), pxlVSyncBegin(), and writeReg().
|
inlineprotected |
Masked interrupt status register.
Definition at line 318 of file hdlcd.hh.
References int_mask, and int_rawstat.
Referenced by readReg(), and setInterrupts().
|
protected |
Definition at line 434 of file hdlcd.cc.
References blue_select, green_select, pixel_format, red_select, and workaroundSwapRB.
Referenced by cmdEnable(), and unserialize().
void HDLcd::pxlFrameDone | ( | ) |
Definition at line 557 of file hdlcd.cc.
References OutputDirectory::create(), csprintf(), dmaEngine, DPRINTF, HDLcd::PixelPump::dumpSettings(), enableCapture, imgWriter, SimObject::name(), pic, pixelPump, VncInput::setDirty(), simout, OutputStream::stream(), PioDevice::sys, vnc, and warn.
Referenced by HDLcd::PixelPump::onFrameDone().
bool HDLcd::pxlNext | ( | Pixel & | p | ) |
Definition at line 521 of file hdlcd.cc.
References conv, dmaEngine, PixelConverter::length, MAX_PIXEL_SIZE, MipsISA::p, and PixelConverter::toPixel().
Referenced by HDLcd::PixelPump::nextPixel().
void HDLcd::pxlUnderrun | ( | ) |
Definition at line 548 of file hdlcd.cc.
References dmaEngine, DPRINTF, INT_UNDERRUN, intRaise(), and stats.
Referenced by HDLcd::PixelPump::onUnderrun().
void HDLcd::pxlVSyncBegin | ( | ) |
Definition at line 534 of file hdlcd.cc.
References DPRINTF, INT_VSYNC, and intRaise().
Referenced by HDLcd::PixelPump::onVSyncBegin().
void HDLcd::pxlVSyncEnd | ( | ) |
Pure virtual function that the device must implement.
Called when a read command is recieved by the port.
pkt | Packet describing this request |
Implements PioDevice.
Definition at line 235 of file hdlcd.cc.
References data, DPRINTF, Packet::getAddr(), Packet::getSize(), Packet::makeAtomicResponse(), panic_if, AmbaDmaDevice::pioAddr, AmbaDmaDevice::pioDelay, AmbaDmaDevice::pioSize, readReg(), and Packet::setLE().
|
protected |
Definition at line 274 of file hdlcd.cc.
References Blue_Select, blue_select, Bus_Options, bus_options, Command, command, Fb_Base, fb_base, Fb_Line_Count, fb_line_count, Fb_Line_Length, fb_line_length, Fb_Line_Pitch, fb_line_pitch, Green_Select, green_select, H_Back_Porch, h_back_porch, H_Data, h_data, H_Front_Porch, h_front_porch, H_Sync, h_sync, Int_Clear, Int_Mask, int_mask, Int_RawStat, int_rawstat, Int_Status, intStatus(), offset, panic, Pixel_Format, pixel_format, Polarities, polarities, Red_Select, red_select, V_Back_Porch, v_back_porch, V_Data, v_data, V_Front_Porch, v_front_porch, V_Sync, v_sync, and Version.
Referenced by read().
|
overridevirtual |
Callback to set stat parameters.
This callback is typically used for complex stats (e.g., distributions) that need parameters in addition to a name and a description. Stat names and descriptions should typically be set from the constructor usingo from the constructor using the ADD_STAT macro.
Reimplemented from Stats::Group.
Definition at line 100 of file hdlcd.cc.
References SimObject::name(), Stats::nozero, Stats::Group::regStats(), and stats.
|
overridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 114 of file hdlcd.cc.
References blue_select, bus_options, command, dmaEngine, DPRINTF, enabled(), fb_base, fb_line_count, fb_line_length, fb_line_pitch, green_select, h_back_porch, h_data, h_front_porch, h_sync, int_mask, int_rawstat, pixel_format, pixelPump, polarities, red_select, SERIALIZE_OBJ, SERIALIZE_SCALAR, v_back_porch, v_data, v_front_porch, and v_sync.
|
protected |
Assign new interrupt values and update interrupt signals.
A new interrupt is scheduled signalled if the set of unmasked interrupts goes empty to non-empty. Conversely, if the set of unmasked interrupts goes from non-empty to empty, the interrupt signal is cleared.
ints | New raw interrupt status |
mask | New interrupt mask |
Definition at line 587 of file hdlcd.cc.
References ArmInterruptPin::clear(), int_mask, int_rawstat, AmbaDmaDevice::interrupt, intStatus(), ArmISA::mask, and ArmInterruptPin::raise().
Referenced by intClear(), intMask(), and intRaise().
|
overridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 151 of file hdlcd.cc.
References blue_select, bus_options, command, conv, createDmaEngine(), Serializable::currentSection(), dmaEngine, DPRINTF, enabled(), fb_base, fb_line_count, fb_line_length, fb_line_pitch, green_select, h_back_porch, h_data, h_front_porch, h_sync, int_mask, int_rawstat, pixel_format, pixelConverter(), pixelPump, polarities, red_select, BasePixelPump::unserialize(), UNSERIALIZE_SCALAR, v_back_porch, v_data, v_front_porch, and v_sync.
|
protected |
Handler for fast frame refresh in KVM-mode.
Definition at line 227 of file hdlcd.cc.
References curTick(), pixelPump, BasePixelPump::renderFrame(), EventManager::schedule(), virtRefreshEvent, and virtRefreshRate.
Pure virtual function that the device must implement.
Called when a write command is recieved by the port.
pkt | Packet describing this request |
Implements PioDevice.
Definition at line 255 of file hdlcd.cc.
References data, DPRINTF, Packet::getAddr(), Packet::getLE(), Packet::getSize(), Packet::makeAtomicResponse(), panic_if, AmbaDmaDevice::pioAddr, AmbaDmaDevice::pioDelay, AmbaDmaDevice::pioSize, and writeReg().
|
protected |
Definition at line 313 of file hdlcd.cc.
References Blue_Select, blue_select, burst_len, Bus_Options, bus_options, cmdDisable(), cmdEnable(), Command, command, DPRINTF, Fb_Base, fb_base, Fb_Line_Count, fb_line_count, Fb_Line_Length, fb_line_length, Fb_Line_Pitch, fb_line_pitch, Green_Select, green_select, H_Back_Porch, h_back_porch, H_Data, h_data, H_Front_Porch, h_front_porch, H_Sync, h_sync, Int_Clear, Int_Mask, Int_RawStat, Int_Status, intClear(), intMask(), intRaise(), max_outstanding, offset, panic, Pixel_Format, pixel_format, Polarities, polarities, Red_Select, red_select, V_Back_Porch, v_back_porch, V_Data, v_data, V_Front_Porch, v_front_porch, V_Sync, v_sync, and Version.
Referenced by write().
|
protected |
Definition at line 113 of file hdlcd.hh.
Referenced by getAddrRanges().
|
staticconstexprprotected |
|
protected |
Blue color select register.
Definition at line 252 of file hdlcd.hh.
Referenced by pixelConverter(), readReg(), serialize(), unserialize(), and writeReg().
|
protected |
Definition at line 184 of file hdlcd.hh.
Referenced by writeReg().
|
protected |
Bus options register.
Definition at line 238 of file hdlcd.hh.
Referenced by createDmaEngine(), readReg(), serialize(), unserialize(), and writeReg().
|
staticconstexprprotected |
|
protected |
Command register.
Definition at line 248 of file hdlcd.hh.
Referenced by enabled(), readReg(), serialize(), unserialize(), and writeReg().
|
protected |
Cached pixel converter, set when the converter is enabled.
Definition at line 359 of file hdlcd.hh.
Referenced by cmdEnable(), pxlNext(), and unserialize().
|
protected |
Definition at line 391 of file hdlcd.hh.
Referenced by cmdDisable(), createDmaEngine(), pxlFrameDone(), pxlNext(), pxlUnderrun(), pxlVSyncEnd(), serialize(), and unserialize().
|
protected |
Definition at line 114 of file hdlcd.hh.
Referenced by pxlFrameDone().
|
protected |
Frame buffer base address register.
Definition at line 234 of file hdlcd.hh.
Referenced by pxlVSyncEnd(), readReg(), serialize(), HDLcd::DmaEngine::startFrame(), unserialize(), and writeReg().
|
protected |
Definition at line 179 of file hdlcd.hh.
Referenced by createDmaEngine(), readReg(), serialize(), unserialize(), and writeReg().
|
protected |
|
protected |
Frame buffer Line length register.
Definition at line 235 of file hdlcd.hh.
Referenced by createDmaEngine(), readReg(), serialize(), unserialize(), and writeReg().
|
protected |
Frame buffer Line pitch register.
Definition at line 237 of file hdlcd.hh.
Referenced by createDmaEngine(), readReg(), serialize(), unserialize(), and writeReg().
|
protected |
Green color select register.
Definition at line 251 of file hdlcd.hh.
Referenced by pixelConverter(), readReg(), serialize(), unserialize(), and writeReg().
|
protected |
Horizontal back porch width register.
Definition at line 244 of file hdlcd.hh.
Referenced by displayTimings(), readReg(), serialize(), unserialize(), and writeReg().
|
protected |
Horizontal data width register.
Definition at line 245 of file hdlcd.hh.
Referenced by displayTimings(), readReg(), serialize(), unserialize(), and writeReg().
|
protected |
Horizontal front porch width reg.
Definition at line 246 of file hdlcd.hh.
Referenced by displayTimings(), readReg(), serialize(), unserialize(), and writeReg().
|
protected |
Horizontal sync width register.
Definition at line 243 of file hdlcd.hh.
Referenced by displayTimings(), readReg(), serialize(), unserialize(), and writeReg().
|
protected |
|
protected |
|
staticconstexprprotected |
|
protected |
Interrupt mask register.
Definition at line 233 of file hdlcd.hh.
Referenced by intClear(), intRaise(), intStatus(), readReg(), serialize(), setInterrupts(), and unserialize().
|
protected |
Interrupt raw status register.
Definition at line 232 of file hdlcd.hh.
Referenced by intClear(), intMask(), intRaise(), intStatus(), readReg(), serialize(), setInterrupts(), and unserialize().
|
staticconstexprprotected |
Definition at line 176 of file hdlcd.hh.
Referenced by pxlUnderrun().
|
staticconstexprprotected |
Definition at line 175 of file hdlcd.hh.
Referenced by pxlVSyncBegin().
|
staticconstexprprotected |
max number of beats delivered in one dma burst
Definition at line 157 of file hdlcd.hh.
Referenced by createDmaEngine().
|
protected |
Definition at line 186 of file hdlcd.hh.
Referenced by writeReg().
|
staticconstexprprotected |
|
protected |
Definition at line 217 of file hdlcd.hh.
Referenced by readReg(), and writeReg().
|
protected |
Picture of what the current frame buffer looks like.
Definition at line 356 of file hdlcd.hh.
Referenced by pxlFrameDone().
|
protected |
Pixel format register.
Definition at line 249 of file hdlcd.hh.
Referenced by pixelConverter(), readReg(), serialize(), unserialize(), and writeReg().
|
protected |
Definition at line 115 of file hdlcd.hh.
Referenced by createDmaEngine().
|
protected |
Definition at line 361 of file hdlcd.hh.
Referenced by cmdDisable(), cmdEnable(), drainResume(), pxlFrameDone(), serialize(), unserialize(), and virtRefresh().
|
protected |
Polarities register.
Definition at line 247 of file hdlcd.hh.
Referenced by readReg(), serialize(), unserialize(), and writeReg().
|
protected |
Red color select register.
Definition at line 250 of file hdlcd.hh.
Referenced by pixelConverter(), readReg(), serialize(), unserialize(), and writeReg().
struct { ... } HDLcd::stats |
Referenced by pxlUnderrun(), and regStats().
Stats::Scalar HDLcd::underruns |
|
protected |
Vertical back porch width register.
Definition at line 240 of file hdlcd.hh.
Referenced by displayTimings(), readReg(), serialize(), unserialize(), and writeReg().
|
protected |
Vertical data width register.
Definition at line 241 of file hdlcd.hh.
Referenced by displayTimings(), readReg(), serialize(), unserialize(), and writeReg().
|
protected |
Vertical front porch width register.
Definition at line 242 of file hdlcd.hh.
Referenced by displayTimings(), readReg(), serialize(), unserialize(), and writeReg().
|
protected |
Vertical sync width register.
Definition at line 239 of file hdlcd.hh.
Referenced by displayTimings(), readReg(), serialize(), unserialize(), and writeReg().
|
staticconstexprprotected |
|
protected |
Definition at line 347 of file hdlcd.hh.
Referenced by cmdDisable(), cmdEnable(), and virtRefresh().
|
protected |
Definition at line 116 of file hdlcd.hh.
Referenced by virtRefresh().
|
protected |
Definition at line 110 of file hdlcd.hh.
Referenced by drainResume(), and pxlFrameDone().
|
protected |
Definition at line 112 of file hdlcd.hh.
Referenced by createDmaEngine().
|
protected |
Definition at line 111 of file hdlcd.hh.
Referenced by pixelConverter().