mirror of
https://github.com/akuker/RASCSI.git
synced 2024-05-29 01:41:27 +00:00
45cd5e58d1
* Fixed buster compile-time issue * Host services inherit from ModePageDevice * Call base class * Visibility update * Updated includes * Updated dispatcher * Added TODOs * Logging update * Code cleanup * Use namespace instead of class for ScsiDefs * Renaming * Cleanup * Use dispatcher template in order to remove duplicate code * Updated all dispatchers * Clean up commands * Removed duplicate code * Removed duplicate code * Updated template definition * Fixed typo * Fixed warning * Code cleanup * Device list must be static * Cleanup * Logging update * Added comments * Cleanup * Base class update * SCSIBR is not a subclass of Disk anymore, but of PrimaryDevice * Updated includes * Fixed compile-time issue on the Pi * Header file cleanup * Interface cleanup * Removed wrong override * include file cleanup * Removed obsolete usage of streams * Removed more stream usages * Stream usage cleanup * Include cleanup * Renaming * Include cleanup * Interface update
42 lines
856 B
C++
42 lines
856 B
C++
//---------------------------------------------------------------------------
|
|
//
|
|
// SCSI Target Emulator RaSCSI (*^..^*)
|
|
// for Raspberry Pi
|
|
//
|
|
// Copyright (C) 2022 Uwe Seimet
|
|
//
|
|
// RaSCSI Host Services with realtime clock and shutdown support
|
|
//
|
|
//---------------------------------------------------------------------------
|
|
#pragma once
|
|
|
|
#include "mode_page_device.h"
|
|
|
|
using namespace std;
|
|
|
|
class HostServices: public ModePageDevice
|
|
{
|
|
|
|
public:
|
|
|
|
HostServices();
|
|
~HostServices() {}
|
|
|
|
virtual bool Dispatch(SCSIDEV *) override;
|
|
|
|
int Inquiry(const DWORD *, BYTE *) override;
|
|
void TestUnitReady(SASIDEV *) override;
|
|
void StartStopUnit(SASIDEV *);
|
|
|
|
int ModeSense6(const DWORD *, BYTE *);
|
|
int ModeSense10(const DWORD *, BYTE *);
|
|
|
|
private:
|
|
|
|
typedef ModePageDevice super;
|
|
|
|
Dispatcher<HostServices> dispatcher;
|
|
|
|
int AddRealtimeClockPage(int, BYTE *);
|
|
};
|