OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librw11/] [Rw11UnitDiskBase.ipp] - Blame information for rev 20

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 20 wfjm
// $Id: Rw11UnitDiskBase.ipp 509 2013-04-21 20:46:20Z mueller $
2
//
3
// Copyright 2013- by Walter F.J. Mueller 
4
//
5
// This program is free software; you may redistribute and/or modify it under
6
// the terms of the GNU General Public License as published by the Free
7
// Software Foundation, either version 2, or at your option any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
11
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12
// for complete details.
13
//
14
// Revision History:
15
// Date         Rev Version  Comment
16
// 2013-04-14   506   1.0    Initial version
17
// 2013-02-22   490   0.1    First draft
18
// ---------------------------------------------------------------------------
19
 
20
/*!
21
  \file
22
  \version $Id: Rw11UnitDiskBase.ipp 509 2013-04-21 20:46:20Z mueller $
23
  \brief   Implemenation (inline) of Rw11UnitDiskBase.
24
*/
25
 
26
#include "Rw11UnitDiskBase.hpp"
27
 
28
/*!
29
  \class Retro::Rw11UnitDiskBase
30
  \brief FIXME_docs
31
*/
32
 
33
// all method definitions in namespace Retro
34
namespace Retro {
35
 
36
//------------------------------------------+-----------------------------------
37
//! Default constructor
38
 
39
template 
40
Rw11UnitDiskBase::Rw11UnitDiskBase(TC* pcntl, size_t index)
41
  : Rw11UnitDisk(pcntl, index),
42
    fpCntl(pcntl)
43
{}
44
 
45
//------------------------------------------+-----------------------------------
46
//! Destructor
47
 
48
template 
49
Rw11UnitDiskBase::~Rw11UnitDiskBase()
50
{}
51
 
52
//------------------------------------------+-----------------------------------
53
//! FIXME_docs
54
 
55
template 
56
inline TC& Rw11UnitDiskBase::Cntl() const
57
{
58
  return *fpCntl;
59
}
60
 
61
//------------------------------------------+-----------------------------------
62
//! FIXME_docs
63
 
64
template 
65
void Rw11UnitDiskBase::Dump(std::ostream& os, int ind,
66
                                const char* text) const
67
{
68
  RosFill bl(ind);
69
  os << bl << (text?text:"--") << "Rw11UnitDiskBase  @ " << this << std::endl;
70
  os << bl << "  fpCntl:          " << fpCntl   << std::endl;
71
  Rw11UnitDisk::Dump(os, ind, " ^");
72
  return;
73
}
74
 
75
//------------------------------------------+-----------------------------------
76
//! FIXME_docs
77
 
78
template 
79
void  Rw11UnitDiskBase::AttachSetup()
80
{
81
  Virt()->Setup(BlockSize(), NBlock());
82
  Cntl().UnitSetup(Index());
83
  return;
84
}
85
 
86
 
87
//------------------------------------------+-----------------------------------
88
//! FIXME_docs
89
 
90
template 
91
void  Rw11UnitDiskBase::DetachCleanup()
92
{
93
  SetWProt(false);
94
  Cntl().UnitSetup(Index());
95
  return;
96
}
97
 
98
} // end namespace Retro

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.