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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librw11/] [Rw11CntlPC11.hpp] - Blame information for rev 40

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

Line No. Rev Author Line
1 21 wfjm
// $Id: Rw11CntlPC11.hpp 515 2013-05-04 17:28:59Z 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-05-03   515   1.0    Initial version
17
// ---------------------------------------------------------------------------
18
 
19
 
20
/*!
21
  \file
22
  \version $Id: Rw11CntlPC11.hpp 515 2013-05-04 17:28:59Z mueller $
23
  \brief   Declaration of class Rw11CntlPC11.
24
*/
25
 
26
#ifndef included_Retro_Rw11CntlPC11
27
#define included_Retro_Rw11CntlPC11 1
28
 
29
#include "Rw11CntlBase.hpp"
30
#include "Rw11UnitPC11.hpp"
31
 
32
namespace Retro {
33
 
34
  class Rw11CntlPC11 : public Rw11CntlBase<Rw11UnitPC11,2> {
35
    public:
36
 
37
                    Rw11CntlPC11();
38
                   ~Rw11CntlPC11();
39
 
40
      void          Config(const std::string& name, uint16_t base, int lam);
41
 
42
      virtual void  Start();
43
 
44
      virtual bool  BootCode(size_t unit, std::vector<uint16_t>& code,
45
                             uint16_t& aload, uint16_t& astart);
46
 
47
      virtual void  UnitSetup(size_t ind);
48
 
49
      virtual void  Dump(std::ostream& os, int ind=0, const char* text=0) const;
50
 
51
    // some constants (also defined in cpp)
52
      static const uint16_t kIbaddr = 0177550; //!< PC11 default address
53
      static const int      kLam    = 10;      //!< PC11 default lam 
54
 
55
      static const uint16_t kRCSR = 000;  //!< RCSR register address offset
56
      static const uint16_t kRBUF = 002;  //!< RBUF register address offset
57
      static const uint16_t kPCSR = 004;  //!< PCSR register address offset
58
      static const uint16_t kPBUF = 006;  //!< PBUF register address offset
59
 
60
      static const uint16_t kUnit_PR   = 0;   //<! unit number of paper reader 
61
      static const uint16_t kUnit_PP   = 1;   //<! unit number of paper puncher 
62
 
63
      static const uint16_t kProbeOff = kRCSR; //!< probe address offset (rcsr)
64
      static const bool     kProbeInt = true;  //!< probe int active
65
      static const bool     kProbeRem = true;  //!< probr rem active
66
 
67
      static const uint16_t kRCSR_M_ERROR = kWBit15;
68
      static const uint16_t kPCSR_M_ERROR = kWBit15;
69
      static const uint16_t kPBUF_M_RBUSY = kWBit09;
70
      static const uint16_t kPBUF_M_PVAL  = kWBit08;
71
      static const uint16_t kPBUF_M_BUF   = 0377;
72
 
73
    protected:
74
      int           AttnHandler(const RlinkServer::AttnArgs& args);
75
      void          SetOnline(size_t ind, bool online);
76
 
77
    protected:
78
      size_t        fPC_pbuf;               //!< PrimClist: pbuf index
79
  };
80
 
81
} // end namespace Retro
82
 
83
//#include "Rw11CntlPC11.ipp"
84
 
85
#endif

powered by: WebSVN 2.1.0

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