1 /* Headers for DEC 5000/200 error status registers emulation.
2    Copyright 2003 Brian R. Gaeke.
3 
4 This file is part of VMIPS.
5 
6 VMIPS is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2 of the License, or (at your
9 option) any later version.
10 
11 VMIPS is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 for more details.
15 
16 You should have received a copy of the GNU General Public License along
17 with VMIPS; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
19 
20 /* Memory-mapped device representing the Error Address Status Register
21  * and ECC Check/Syndrome Status Register in the DEC 5000/200 (KN02).
22  */
23 
24 #ifndef _DECSTAT_H_
25 #define _DECSTAT_H_
26 
27 #include "devicemap.h"
28 
29 #define DECSTAT_BASE 0x1fd00000
30 
31 class DECStatDevice : public DeviceMap {
32   uint32 chksyn_reg;
33   uint32 erradr_reg;
34   bool interrupt;
35 public:
36   DECStatDevice ();
37   uint32 fetch_word (uint32 offset, int mode, DeviceExc *client);
38   void store_word (uint32 offset, uint32 data, DeviceExc *client);
descriptor_str()39   const char *descriptor_str () const {
40     return "DECstation 5000/200 CHKSYN & ERRADR";
41   }
42 };
43 
44 #endif /* _DECSTAT_H_ */
45