blob: 5cbec313b8dd475bd63c5d4d889c010422422ddd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/* -------------------------------------------
Copyright SoftwareLabs
------------------------------------------- */
#pragma once
#include <KernelKit/DeviceManager.hpp>
#include <KernelKit/DriveManager.hxx>
#include <NewKit/OwnPtr.hpp>
#include <NewKit/Utils.hpp>
namespace NewOS
{
/// @brief ATA device interface type.
class ATADeviceInterface : public DeviceInterface<MountpointInterface*>
{
public:
explicit ATADeviceInterface(void (*Out)(MountpointInterface* outpacket),
void (*In)(MountpointInterface* inpacket),
void (*Cleanup)(void));
virtual ~ATADeviceInterface();
public:
ATADeviceInterface& operator<<(MountpointInterface* Data) override;
ATADeviceInterface& operator>>(MountpointInterface* Data) override;
public:
ATADeviceInterface& operator=(const ATADeviceInterface&) = default;
ATADeviceInterface(const ATADeviceInterface&) = default;
const char* Name() const override;
private:
void (*fCleanup)(void);
};
} // namespace NewOS
|