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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [tools/] [src/] [librw11/] [Rw11UnitRK11.cpp] - Blame information for rev 33

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 wfjm
// $Id: Rw11UnitRK11.cpp 659 2015-03-22 23:15:51Z mueller $
2 20 wfjm
//
3
// Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
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-20   508   1.0    Initial version
17
// 2013-02-05   483   0.1    First draft
18
// ---------------------------------------------------------------------------
19
 
20
/*!
21
  \file
22 30 wfjm
  \version $Id: Rw11UnitRK11.cpp 659 2015-03-22 23:15:51Z mueller $
23 20 wfjm
  \brief   Implemenation of Rw11UnitRK11.
24
*/
25
 
26
#include "boost/bind.hpp"
27
 
28
#include "librtools/RosFill.hpp"
29
#include "Rw11CntlRK11.hpp"
30
 
31
#include "Rw11UnitRK11.hpp"
32
 
33
using namespace std;
34
 
35
/*!
36
  \class Retro::Rw11UnitRK11
37
  \brief FIXME_docs
38
*/
39
 
40
// all method definitions in namespace Retro
41
namespace Retro {
42
 
43
//------------------------------------------+-----------------------------------
44
//! Constructor
45
 
46
Rw11UnitRK11::Rw11UnitRK11(Rw11CntlRK11* pcntl, size_t index)
47
  : Rw11UnitDiskBase<Rw11CntlRK11>(pcntl, index),
48
    fRkds(0)
49
{
50
  // setup disk geometry: only rk05 supported, no rk05f !
51
  fType    = "rk05";
52 30 wfjm
  fEnabled = true;
53 20 wfjm
  fNCyl    = 203;
54
  fNHead   =   2;
55
  fNSect   =  12;
56
  fBlksize = 512;
57
  fNBlock  = fNCyl*fNHead*fNSect;
58
}
59
 
60
//------------------------------------------+-----------------------------------
61
//! Destructor
62
 
63
Rw11UnitRK11::~Rw11UnitRK11()
64
{}
65
 
66
//------------------------------------------+-----------------------------------
67
//! FIXME_docs
68
 
69
void Rw11UnitRK11::Dump(std::ostream& os, int ind, const char* text) const
70
{
71
  RosFill bl(ind);
72
  os << bl << (text?text:"--") << "Rw11UnitRK11 @ " << this << endl;
73
  os << bl << "  fRkds:           " << fRkds    << endl;
74
 
75
  Rw11UnitDiskBase<Rw11CntlRK11>::Dump(os, ind, " ^");
76
  return;
77
}
78
 
79
} // end namespace Retro

powered by: WebSVN 2.1.0

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