mirror of
https://github.com/akuker/RASCSI.git
synced 2024-05-28 09:41:33 +00:00
Rename DECUniquePage to DECSpecialFunctionControlPage
Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
This commit is contained in:
parent
e5b00324f5
commit
753a614f3c
|
@ -97,9 +97,9 @@ void SCSIHD::AddFormatPage(map<int, vector<byte>>& pages, bool changeable) const
|
||||||
EnrichFormatPage(pages, changeable, 1 << GetSectorSizeShiftCount());
|
EnrichFormatPage(pages, changeable, 1 << GetSectorSizeShiftCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Page code 37 (25h) - DEC Unique Page
|
// Page code 37 (25h) - DEC Special Function Control page
|
||||||
|
|
||||||
void SCSIHD::AddDECUniquePage(map<int, vector<byte>>& pages, bool changeable) const
|
void SCSIHD::AddDECSpecialFunctionControlPage(map<int, vector<byte>>& pages, bool changeable) const
|
||||||
{
|
{
|
||||||
vector<byte> buf(25);
|
vector<byte> buf(25);
|
||||||
|
|
||||||
|
@ -119,9 +119,9 @@ void SCSIHD::AddDECUniquePage(map<int, vector<byte>>& pages, bool changeable) co
|
||||||
|
|
||||||
void SCSIHD::AddVendorPage(map<int, vector<byte>>& pages, int page, bool changeable) const
|
void SCSIHD::AddVendorPage(map<int, vector<byte>>& pages, int page, bool changeable) const
|
||||||
{
|
{
|
||||||
// Page code 0x25: DEC unique
|
// Page code 0x25: DEC Special Function Control page
|
||||||
if (page == 0x25 || page == 0x3f) {
|
if (page == 0x25 || page == 0x3f) {
|
||||||
AddDECUniquePage(pages, changeable);
|
AddDECSpecialFunctionControlPage(pages, changeable);
|
||||||
}
|
}
|
||||||
// Page code 48
|
// Page code 48
|
||||||
if (page == 0x30 || page == 0x3f) {
|
if (page == 0x30 || page == 0x3f) {
|
||||||
|
|
|
@ -40,7 +40,7 @@ public:
|
||||||
void ModeSelect(scsi_defs::scsi_command, cdb_t, span<const uint8_t>, int) override;
|
void ModeSelect(scsi_defs::scsi_command, cdb_t, span<const uint8_t>, int) override;
|
||||||
|
|
||||||
void AddFormatPage(map<int, vector<byte>>&, bool) const override;
|
void AddFormatPage(map<int, vector<byte>>&, bool) const override;
|
||||||
void AddDECUniquePage(map<int, vector<byte>>&, bool) const;
|
void AddDECSpecialFunctionControlPage(map<int, vector<byte>>&, bool) const;
|
||||||
void AddVendorPage(map<int, vector<byte>>&, int, bool) const override;
|
void AddVendorPage(map<int, vector<byte>>&, int, bool) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -360,7 +360,7 @@ class MockSCSIHD : public SCSIHD //NOSONAR Ignore inheritance hierarchy depth in
|
||||||
FRIEND_TEST(ScsiHdTest, FinalizeSetup);
|
FRIEND_TEST(ScsiHdTest, FinalizeSetup);
|
||||||
FRIEND_TEST(ScsiHdTest, GetProductData);
|
FRIEND_TEST(ScsiHdTest, GetProductData);
|
||||||
FRIEND_TEST(ScsiHdTest, SetUpModePages);
|
FRIEND_TEST(ScsiHdTest, SetUpModePages);
|
||||||
FRIEND_TEST(ScsiHdTest, DECUniquePage);
|
FRIEND_TEST(ScsiHdTest, DECSpecialFunctionControlPage);
|
||||||
FRIEND_TEST(ScsiHdTest, GetSectorSizes);
|
FRIEND_TEST(ScsiHdTest, GetSectorSizes);
|
||||||
FRIEND_TEST(ScsiHdTest, ModeSelect);
|
FRIEND_TEST(ScsiHdTest, ModeSelect);
|
||||||
FRIEND_TEST(PiscsiExecutorTest, SetSectorSize);
|
FRIEND_TEST(PiscsiExecutorTest, SetSectorSize);
|
||||||
|
|
|
@ -102,7 +102,7 @@ TEST(ScsiHdTest, SetUpModePages)
|
||||||
ScsiHdTest_SetUpModePages(pages);
|
ScsiHdTest_SetUpModePages(pages);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(ScsiHdTest, DECUniquePage)
|
TEST(ScsiHdTest, DECSpecialFunctionControlPage)
|
||||||
{
|
{
|
||||||
map<int, vector<byte>> pages;
|
map<int, vector<byte>> pages;
|
||||||
vector<byte> buf;
|
vector<byte> buf;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user