w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rw11VirtDiskRam.hpp
Go to the documentation of this file.
1// $Id: Rw11VirtDiskRam.hpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2018-2019 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2019-05-01 1143 1.1 add noboot option
8// 2018-10-28 1063 1.0 Initial version
9// 2018-10-27 1061 0.1 First draft
10// ---------------------------------------------------------------------------
11
12
17#ifndef included_Retro_Rw11VirtDiskRam
18#define included_Retro_Rw11VirtDiskRam 1
19
20#include <map>
21
23
24#include "Rw11VirtDisk.hpp"
25
26namespace Retro {
27
29 public:
30
31 typedef std::map<uint32_t,Rw11VirtDiskBuffer> bmap_t;
32
33 explicit Rw11VirtDiskRam(Rw11Unit* punit);
35
36 virtual bool Open(const std::string& url, RerrMsg& emsg);
37 bool Open(const std::string& url, const std::string& scheme,
38 RerrMsg& emsg);
39
40 virtual bool Read(size_t lba, size_t nblk, uint8_t* data,
41 RerrMsg& emsg);
42 virtual bool Write(size_t lba, size_t nblk, const uint8_t* data,
43 RerrMsg& emsg);
44
45 void List(std::ostream& os) const;
46
47 virtual void Dump(std::ostream& os, int ind=0, const char* text=0,
48 int detail=0) const;
49
50 // statistics counter indices (now new)
51 enum stats {
55 };
56
57 protected:
58 void ReadPattern(size_t lba, uint8_t* data);
59
60 protected:
61 enum pattyp {
66 };
67
68 bool fNoBoot;
71 };
72
73} // end namespace Retro
74
75//#include "Rw11VirtDiskRam.ipp"
76
77#endif
FIXME_docs.
Definition: RerrMsg.hpp:25
FIXME_docs.
Definition: Rw11Unit.hpp:39
virtual bool Read(size_t lba, size_t nblk, uint8_t *data, RerrMsg &emsg)
FIXME_docs.
virtual bool Open(const std::string &url, RerrMsg &emsg)
FIXME_docs.
virtual bool Write(size_t lba, size_t nblk, const uint8_t *data, RerrMsg &emsg)
FIXME_docs.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
std::map< uint32_t, Rw11VirtDiskBuffer > bmap_t
void ReadPattern(size_t lba, uint8_t *data)
FIXME_doc.
void List(std::ostream &os) const
FIXME_docs.
pattyp fPatTyp
pattern type
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47