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 21

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

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

powered by: WebSVN 2.1.0

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