40d39
< #include "dev/io_device.hh"
42a42,43
> #include "dev/io_device.hh"
> #include "params/TsunamiIO.hh"
88,90d88
< /** should the year be interpreted as BCD? */
< bool year_is_bcd;
<
117c115
< const std::vector<int> &t, bool bcd, Tick i);
---
> const TsunamiIOParams *params);
316,326d313
< struct Params : public BasicPioDevice::Params
< {
< Tick frequency;
< Tsunami *tsunami;
< std::vector<int> init_time;
< bool year_is_bcd;
< };
<
< protected:
< const Params *params() const { return (const Params*)_params; }
<
327a315
> typedef TsunamiIOParams Params;
332c320
< TsunamiIO(Params *p);
---
> TsunamiIO(const Params *p);
333a322,327
> const Params *
> params() const
> {
> return dynamic_cast<const Params *>(_params);
> }
>