gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::Uart8250::Registers::BankedRegister Class Reference

#include <uart8250.hh>

Inheritance diagram for gem5::Uart8250::Registers::BankedRegister:
gem5::Uart8250::Registers::PairedRegister

Public Member Functions

 BankedRegister (RegisterBase &reg1, RegisterBase &reg2)
 
void select (bool second)
 
const std::string & name () const override
 
void read (void *buf) override
 
void read (void *buf, off_t offset, size_t bytes) override
 
void write (const void *buf) override
 
void write (const void *buf, off_t offset, size_t bytes) override
 
- Public Member Functions inherited from gem5::Uart8250::Registers::PairedRegister
 PairedRegister (RegisterBase &reg1, RegisterBase &reg2)
 
void serialize (std::ostream &os) const override
 
bool unserialize (const std::string &s) override
 
void reset () override
 

Private Attributes

RegisterBaseselected = nullptr
 

Additional Inherited Members

- Protected Attributes inherited from gem5::Uart8250::Registers::PairedRegister
RegisterBase_reg1
 
RegisterBase_reg2
 

Detailed Description

Definition at line 125 of file uart8250.hh.

Constructor & Destructor Documentation

◆ BankedRegister()

gem5::Uart8250::Registers::BankedRegister::BankedRegister ( RegisterBase & reg1,
RegisterBase & reg2 )
inline

Definition at line 131 of file uart8250.hh.

Member Function Documentation

◆ name()

const std::string & gem5::Uart8250::Registers::BankedRegister::name ( ) const
inlineoverride

Definition at line 138 of file uart8250.hh.

References selected.

◆ read() [1/2]

void gem5::Uart8250::Registers::BankedRegister::read ( void * buf)
inlineoverride

Definition at line 143 of file uart8250.hh.

References selected.

◆ read() [2/2]

void gem5::Uart8250::Registers::BankedRegister::read ( void * buf,
off_t offset,
size_t bytes )
inlineoverride

Definition at line 145 of file uart8250.hh.

References gem5::ArmISA::offset, and selected.

◆ select()

void gem5::Uart8250::Registers::BankedRegister::select ( bool second)
inline

◆ write() [1/2]

void gem5::Uart8250::Registers::BankedRegister::write ( const void * buf)
inlineoverride

Definition at line 149 of file uart8250.hh.

References selected.

◆ write() [2/2]

void gem5::Uart8250::Registers::BankedRegister::write ( const void * buf,
off_t offset,
size_t bytes )
inlineoverride

Definition at line 151 of file uart8250.hh.

References gem5::ArmISA::offset, and selected.

Member Data Documentation

◆ selected

RegisterBase* gem5::Uart8250::Registers::BankedRegister::selected = nullptr
private

Definition at line 128 of file uart8250.hh.

Referenced by name(), read(), read(), select(), write(), and write().


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

Generated on Tue Jun 18 2024 16:24:15 for gem5 by doxygen 1.11.0