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

Subversion Repositories w11

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 20 wfjm
// $Id: Rw11UnitRK11.cpp 509 2013-04-21 20:46:20Z mueller $
2
//
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
  \version $Id: Rw11UnitRK11.cpp 509 2013-04-21 20:46:20Z mueller $
23
  \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
  fNCyl    = 203;
53
  fNHead   =   2;
54
  fNSect   =  12;
55
  fBlksize = 512;
56
  fNBlock  = fNCyl*fNHead*fNSect;
57
}
58
 
59
//------------------------------------------+-----------------------------------
60
//! Destructor
61
 
62
Rw11UnitRK11::~Rw11UnitRK11()
63
{}
64
 
65
//------------------------------------------+-----------------------------------
66
//! FIXME_docs
67
 
68
void Rw11UnitRK11::Dump(std::ostream& os, int ind, const char* text) const
69
{
70
  RosFill bl(ind);
71
  os << bl << (text?text:"--") << "Rw11UnitRK11 @ " << this << endl;
72
  os << bl << "  fRkds:           " << fRkds    << endl;
73
 
74
  Rw11UnitDiskBase<Rw11CntlRK11>::Dump(os, ind, " ^");
75
  return;
76
}
77
 
78
} // end namespace Retro

powered by: WebSVN 2.1.0

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