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 21

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

Line No. Rev Author Line
1 21 wfjm
// $Id: Rw11UnitDiskBase.ipp 515 2013-05-04 17:28:59Z mueller $
2 20 wfjm
//
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 21 wfjm
// 2013-05-03   515   1.1    use AttachDone(),DetachCleanup(),DetachDone()
17 20 wfjm
// 2013-04-14   506   1.0    Initial version
18
// 2013-02-22   490   0.1    First draft
19
// ---------------------------------------------------------------------------
20
 
21
/*!
22
  \file
23 21 wfjm
  \version $Id: Rw11UnitDiskBase.ipp 515 2013-05-04 17:28:59Z mueller $
24 20 wfjm
  \brief   Implemenation (inline) of Rw11UnitDiskBase.
25
*/
26
 
27
#include "Rw11UnitDiskBase.hpp"
28
 
29
/*!
30
  \class Retro::Rw11UnitDiskBase
31
  \brief FIXME_docs
32
*/
33
 
34
// all method definitions in namespace Retro
35
namespace Retro {
36
 
37
//------------------------------------------+-----------------------------------
38
//! Default constructor
39
 
40
template 
41
Rw11UnitDiskBase::Rw11UnitDiskBase(TC* pcntl, size_t index)
42
  : Rw11UnitDisk(pcntl, index),
43
    fpCntl(pcntl)
44
{}
45
 
46
//------------------------------------------+-----------------------------------
47
//! Destructor
48
 
49
template 
50
Rw11UnitDiskBase::~Rw11UnitDiskBase()
51
{}
52
 
53
//------------------------------------------+-----------------------------------
54
//! FIXME_docs
55
 
56
template 
57
inline TC& Rw11UnitDiskBase::Cntl() const
58
{
59
  return *fpCntl;
60
}
61
 
62
//------------------------------------------+-----------------------------------
63
//! FIXME_docs
64
 
65
template 
66
void Rw11UnitDiskBase::Dump(std::ostream& os, int ind,
67
                                const char* text) const
68
{
69
  RosFill bl(ind);
70
  os << bl << (text?text:"--") << "Rw11UnitDiskBase  @ " << this << std::endl;
71
  os << bl << "  fpCntl:          " << fpCntl   << std::endl;
72
  Rw11UnitDisk::Dump(os, ind, " ^");
73
  return;
74
}
75
 
76
//------------------------------------------+-----------------------------------
77
//! FIXME_docs
78
 
79
template 
80 21 wfjm
void  Rw11UnitDiskBase::AttachDone()
81 20 wfjm
{
82
  Virt()->Setup(BlockSize(), NBlock());
83
  Cntl().UnitSetup(Index());
84
  return;
85
}
86
 
87
 
88
//------------------------------------------+-----------------------------------
89
//! FIXME_docs
90
 
91
template 
92 21 wfjm
void  Rw11UnitDiskBase::DetachDone()
93 20 wfjm
{
94
  SetWProt(false);
95
  Cntl().UnitSetup(Index());
96
  return;
97
}
98
 
99
} // end namespace Retro

powered by: WebSVN 2.1.0

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