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

Subversion Repositories w11

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

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

Line No. Rev Author Line
1 19 wfjm
// $Id: Rw11CntlDL11.hpp 504 2013-04-13 15:37:24Z 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-03-06   495   1.0    Initial version
17
// 2013-02-05   483   0.1    First draft
18
// ---------------------------------------------------------------------------
19
 
20
 
21
/*!
22
  \file
23
  \version $Id: Rw11CntlDL11.hpp 504 2013-04-13 15:37:24Z mueller $
24
  \brief   Declaration of class Rw11CntlDL11.
25
*/
26
 
27
#ifndef included_Retro_Rw11CntlDL11
28
#define included_Retro_Rw11CntlDL11 1
29
 
30
#include "Rw11CntlBase.hpp"
31
#include "Rw11UnitDL11.hpp"
32
 
33
namespace Retro {
34
 
35
  class Rw11CntlDL11 : public Rw11CntlBase<Rw11UnitDL11,1> {
36
    public:
37
 
38
                    Rw11CntlDL11();
39
                   ~Rw11CntlDL11();
40
 
41
      void          Config(const std::string& name, uint16_t base, int lam);
42
 
43
      virtual void  Start();
44
 
45
      void          Wakeup();
46
 
47
      virtual void  Dump(std::ostream& os, int ind=0, const char* text=0) const;
48
 
49
    // some constants (also defined in cpp)
50
      static const uint16_t kIbaddr = 0177560; //!< RK11 default address
51
      static const int      kLam    = 1;       //!< RK11 default lam 
52
 
53
      static const uint16_t kRCSR = 000; //!< RCSR register address offset
54
      static const uint16_t kRBUF = 002; //!< RBUF register address offset
55
      static const uint16_t kXCSR = 004; //!< XCSR register address offset
56
      static const uint16_t kXBUF = 006; //!< XBUF register address offset
57
 
58
      static const uint16_t kProbeOff = kRCSR; //!< probe address offset (rcsr)
59
      static const bool     kProbeInt = true;  //!< probe int active
60
      static const bool     kProbeRem = true;  //!< probr rem active
61
 
62
      static const uint16_t kRCSR_M_RDONE = kWBit07;
63
      static const uint16_t kXCSR_M_XRDY  = kWBit07;
64
      static const uint16_t kXBUF_M_RRDY  = kWBit09;
65
      static const uint16_t kXBUF_M_XVAL  = kWBit08;
66
      static const uint16_t kXBUF_M_XBUF  = 0xff;
67
 
68
    protected:
69
      int           AttnHandler(const RlinkServer::AttnArgs& args);
70
 
71
    protected:
72
      size_t        fPC_xbuf;               //!< PrimClist: xbuf index
73
  };
74
 
75
} // end namespace Retro
76
 
77
//#include "Rw11CntlDL11.ipp"
78
 
79
#endif

powered by: WebSVN 2.1.0

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