fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/hw4/sltpagemanagementreg.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     sltcommandreg.h  -  description
00003 
00004     begin                : Fri Jun 18 2008
00005     copyright            : (C) 2008 by Andreas Kopmann
00006     email                : kopmann@hpe.fzk.de
00007  ***************************************************************************/
00008 
00009 
00010 #ifndef _HW4_SLTPAGEMANAGEMENTREG_H_INCLUDED
00011 #define _HW4_SLTPAGEMANAGEMENTREG_H_INCLUDED
00012 
00013 #include <hw4/sltdef.h>
00014 #include <hw4/baseregister.h>
00015 
00016 
00017 namespace hw4 {
00018 
00019 // --- forward declarations(s)
00020 
00021 class BaseRegisterItem;
00022 
00029 class SltPageManagementReg : public BaseRegister  {
00030 public: 
00031   SltPageManagementReg(const char *name, int slotID, int regID, int r, int w);
00032   ~SltPageManagementReg();
00033 
00034 
00035   BaseRegisterItem *release;
00036   BaseRegisterItem *oldestPage;
00037   BaseRegisterItem *ready;
00038   BaseRegisterItem *freePages;
00039   BaseRegisterItem *full;
00040   BaseRegisterItem *nextPage;
00041   BaseRegisterItem *reset;
00042 
00043 
00049   int getFreePages();
00050 
00052   int getFreePagesFromCache();
00053 };
00054 
00055 } // namespace hw4
00056 
00057 #endif // _HW4_SLTPAGEMANAGEMENTREG_H_INCLUDED