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

Subversion Repositories w11

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 wfjm
// $Id: Rw11CntlDL11.hpp 665 2015-04-07 07:13:49Z mueller $
2 19 wfjm
//
3 28 wfjm
// Copyright 2013-2014 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4 19 wfjm
//
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 28 wfjm
// 2014-12-29   623   1.1    adopt to Rlink V4 attn logic
17 21 wfjm
// 2013-05-04   516   1.0.1  add RxRlim support (receive interrupt rate limit)
18 19 wfjm
// 2013-03-06   495   1.0    Initial version
19
// 2013-02-05   483   0.1    First draft
20
// ---------------------------------------------------------------------------
21
 
22
 
23
/*!
24
  \file
25 30 wfjm
  \version $Id: Rw11CntlDL11.hpp 665 2015-04-07 07:13:49Z mueller $
26 19 wfjm
  \brief   Declaration of class Rw11CntlDL11.
27
*/
28
 
29
#ifndef included_Retro_Rw11CntlDL11
30
#define included_Retro_Rw11CntlDL11 1
31
 
32
#include "Rw11CntlBase.hpp"
33
#include "Rw11UnitDL11.hpp"
34
 
35
namespace Retro {
36
 
37
  class Rw11CntlDL11 : public Rw11CntlBase<Rw11UnitDL11,1> {
38
    public:
39
 
40
                    Rw11CntlDL11();
41
                   ~Rw11CntlDL11();
42
 
43
      void          Config(const std::string& name, uint16_t base, int lam);
44
 
45
      virtual void  Start();
46
 
47 21 wfjm
      virtual void  UnitSetup(size_t ind);
48 19 wfjm
      void          Wakeup();
49
 
50 21 wfjm
      void          SetRxRlim(uint16_t rlim);
51
      uint16_t      RxRlim() const;
52
 
53 19 wfjm
      virtual void  Dump(std::ostream& os, int ind=0, const char* text=0) const;
54
 
55
    // some constants (also defined in cpp)
56 21 wfjm
      static const uint16_t kIbaddr = 0177560; //!< DL11 default address
57
      static const int      kLam    = 1;       //!< DL11 default lam 
58 19 wfjm
 
59 30 wfjm
      static const uint16_t kRCSR = 000; //!< RCSR reg offset
60
      static const uint16_t kRBUF = 002; //!< RBUF reg offset
61
      static const uint16_t kXCSR = 004; //!< XCSR reg offset
62
      static const uint16_t kXBUF = 006; //!< XBUF reg offset
63 19 wfjm
 
64
      static const uint16_t kProbeOff = kRCSR; //!< probe address offset (rcsr)
65
      static const bool     kProbeInt = true;  //!< probe int active
66
      static const bool     kProbeRem = true;  //!< probr rem active
67
 
68 21 wfjm
      static const uint16_t kRCSR_M_RXRLIM = 0070000;
69
      static const uint16_t kRCSR_V_RXRLIM = 12;
70
      static const uint16_t kRCSR_B_RXRLIM = 007;
71
      static const uint16_t kRCSR_M_RDONE  = kWBit07;
72
      static const uint16_t kXCSR_M_XRDY   = kWBit07;
73
      static const uint16_t kXBUF_M_RRDY   = kWBit09;
74
      static const uint16_t kXBUF_M_XVAL   = kWBit08;
75
      static const uint16_t kXBUF_M_XBUF   = 0xff;
76 19 wfjm
 
77
    protected:
78 28 wfjm
      int           AttnHandler(RlinkServer::AttnArgs& args);
79 19 wfjm
 
80
    protected:
81
      size_t        fPC_xbuf;               //!< PrimClist: xbuf index
82 21 wfjm
      uint16_t      fRxRlim;                //!< rx interrupt rate limit
83 19 wfjm
  };
84
 
85
} // end namespace Retro
86
 
87
//#include "Rw11CntlDL11.ipp"
88
 
89
#endif

powered by: WebSVN 2.1.0

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