IBMPC::VDD_Floppy Class Reference

#include <floppy.h>

Inheritance diagram for IBMPC::VDD_Floppy:

Inheritance graph
[legend]
Collaboration diagram for IBMPC::VDD_Floppy:

Collaboration graph
[legend]
List of all members.

Detailed Description

Virtual Device driver to emulate Floppy Drive Controller built around Intel 8272A chip.

Definition at line 20 of file floppy.h.

Public Member Functions

 VDD_Floppy ()
 Create instance of Floppy driver.
 ~VDD_Floppy ()
 Destroy instance of Floppy driver.
virtual void init ()
 Start the driver.
virtual void done ()
 Stop the driver.
virtual uint8 mem_read8 (unsigned int addr)
 Perform memory read on mem pages reserved to the driver.
virtual void mem_write8 (unsigned int addr, uint8 value)
 Perform memory write on mem pages reserved to the driver.
virtual uint8 port_read8 (unsigned int port_index)
 Intercept port reads by the CPU to ports reserved to the driver.
virtual void port_write8 (unsigned int port_index, uint8 value)
 Intercept port writes by the CPU to ports reserved to the driver.
virtual void irq_ack ()
 Intercept interrupt acknowledge for interrupts reserved for this driver.
Coreget_core ()
 Return reference to core.
void set_name (std::string name)
 Sets name for this virtual driver.
std::string Device::get_name ()
 Returns name of this virtual driver.


Constructor & Destructor Documentation

IBMPC::VDD_Floppy::VDD_Floppy (  ) 

Create instance of Floppy driver.

Definition at line 8 of file floppy.cpp.

IBMPC::VDD_Floppy::~VDD_Floppy (  ) 

Destroy instance of Floppy driver.

Definition at line 13 of file floppy.cpp.


Member Function Documentation

void IBMPC::VDD_Floppy::init (  )  [virtual]

Start the driver.

Implements IBMPC::Device.

Definition at line 19 of file floppy.cpp.

void IBMPC::VDD_Floppy::done (  )  [virtual]

Stop the driver.

Implements IBMPC::Device.

Definition at line 28 of file floppy.cpp.

uint8 IBMPC::VDD_Floppy::mem_read8 ( unsigned int  addr  )  [virtual]

Perform memory read on mem pages reserved to the driver.

Implements IBMPC::Device.

Definition at line 35 of file floppy.cpp.

void IBMPC::VDD_Floppy::mem_write8 ( unsigned int  addr,
uint8  value 
) [virtual]

Perform memory write on mem pages reserved to the driver.

Implements IBMPC::Device.

Definition at line 40 of file floppy.cpp.

uint8 IBMPC::VDD_Floppy::port_read8 ( unsigned int  port_index  )  [virtual]

Intercept port reads by the CPU to ports reserved to the driver.

Implements IBMPC::Device.

Definition at line 80 of file floppy.cpp.

void IBMPC::VDD_Floppy::port_write8 ( unsigned int  port_index,
uint8  value 
) [virtual]

Intercept port writes by the CPU to ports reserved to the driver.

Implements IBMPC::Device.

Definition at line 44 of file floppy.cpp.

void IBMPC::VDD_Floppy::irq_ack (  )  [virtual]

Intercept interrupt acknowledge for interrupts reserved for this driver.

Implements IBMPC::Device.

Definition at line 101 of file floppy.cpp.

Core* IBMPC::Device::get_core (  )  [inline, inherited]

Return reference to core.

Definition at line 433 of file ibmpc.h.

Referenced by IBMPC::VDD_Video_CGA_6845::done(), IBMPC::VDD_SYS_PPI_8255A::done(), done(), IBMPC::VDD_DMA::done(), IBMPC::VDD_Video_CGA_6845::init(), IBMPC::VDD_SYS_PPI_8255A::init(), init(), IBMPC::VDD_DMA::init(), port_write8(), IBMPC::VDD_DMA::read_next_word(), and IBMPC::VDD_DMA::write_next_word().

void IBMPC::Device::set_name ( std::string  name  )  [inherited]

Sets name for this virtual driver.

Definition at line 270 of file ibmpc.cpp.

Referenced by IBMPC::VDD_DMA::VDD_DMA(), VDD_Floppy(), IBMPC::VDD_SYS_PPI_8255A::VDD_SYS_PPI_8255A(), and IBMPC::VDD_Video_CGA_6845::VDD_Video_CGA_6845().

std::string IBMPC::Device::Device::get_name (  )  [inherited]

Returns name of this virtual driver.


The documentation for this class was generated from the following files:
Generated on Sat Sep 9 03:50:54 2006 for Openem APIs by  doxygen 1.4.7