2017-11-18 01:39:28 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Common/Types/Register/SizedHwordRegister.hpp"
|
2018-01-20 06:15:09 -05:00
|
|
|
#include "Resources/Iop/Sio0/Sio0Registers.hpp"
|
|
|
|
|
2017-11-18 01:39:28 -05:00
|
|
|
/// SIO0 resources.
|
|
|
|
/// Responsible for communication with controllers and memory cards.
|
|
|
|
struct RSio0
|
|
|
|
{
|
2018-07-28 10:51:13 -04:00
|
|
|
Sio0Register_Data data; // Hybrid FIFO port - can read and write to this port simultaneously.
|
2018-07-28 10:33:56 -04:00
|
|
|
Sio0Register_Stat stat;
|
|
|
|
SizedHwordRegister mode;
|
|
|
|
Sio0Register_Ctrl ctrl;
|
2018-08-05 11:46:55 -04:00
|
|
|
|
|
|
|
template<class Archive>
|
|
|
|
void serialize(Archive & archive)
|
|
|
|
{
|
|
|
|
archive(
|
|
|
|
CEREAL_NVP(data),
|
|
|
|
CEREAL_NVP(stat),
|
|
|
|
CEREAL_NVP(mode),
|
|
|
|
CEREAL_NVP(ctrl)
|
|
|
|
);
|
|
|
|
}
|
2017-11-18 01:39:28 -05:00
|
|
|
};
|