CDMA Class Reference

#include <DMA.h>

Inheritance diagram for CDMA:

Inheritance graph
[legend]
Collaboration diagram for CDMA:

Collaboration graph
[legend]

Detailed Description

Emulated DMA controller.

Definition at line 45 of file DMA.h.


Public Member Functions

 CDMA (CConfigurator *cfg, CSystem *c)
 Constructor.
virtual ~CDMA ()
 Destructor.
virtual int DoClock ()
virtual void WriteMem (int index, u64 address, int dsize, u64 data)
virtual u64 ReadMem (int index, u64 address, int dsize)
virtual int SaveState (FILE *f)
 Save state to a Virtual Machine State file.
virtual int RestoreState (FILE *f)
 Restore state from a Virtual Machine State file.

Private Attributes

struct CDMA::SDMA_state state

Data Structures

struct  SDMA_state
 The state structure contains all elements that need to be saved to the statefile. More...

Constructor & Destructor Documentation

CDMA::CDMA ( CConfigurator cfg,
CSystem c 
)

CDMA::~CDMA (  )  [virtual]

Destructor.

Definition at line 76 of file DMA.cpp.


Member Function Documentation

int CDMA::DoClock (  )  [virtual]

Definition at line 78 of file DMA.cpp.

void CDMA::WriteMem ( int  index,
u64  address,
int  dsize,
u64  data 
) [virtual]

u64 CDMA::ReadMem ( int  index,
u64  address,
int  dsize 
) [virtual]

int CDMA::SaveState ( FILE *  f  )  [virtual]

Save state to a Virtual Machine State file.

Implements CSystemComponent.

Definition at line 383 of file DMA.cpp.

References dma_magic1, dma_magic2, and state.

int CDMA::RestoreState ( FILE *  f  )  [virtual]

Restore state from a Virtual Machine State file.

Implements CSystemComponent.

Definition at line 398 of file DMA.cpp.

References dma_magic1, dma_magic2, and state.


Field Documentation

struct CDMA::SDMA_state CDMA::state [private]


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

SourceForge.net Logo
Project space on SourceForge.net