blob: 5698fe85421861e7d67386b2cf24c89b08465a7e (
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 (C) 2024-2025, Amlal EL Mahrouss, all rights reserved.
------------------------------------------- */
#pragma once
#include <KernelKit/DeviceMgr.h>
#include <KernelKit/DriveMgr.h>
#include <NewKit/OwnPtr.h>
#include <NewKit/Utils.h>
namespace NeOS
{
/// @brief ATA device interface type.
class ATADeviceInterface : public IDeviceObject<MountpointInterface*>
{
public:
explicit ATADeviceInterface(void (*Out)(IDeviceObject*, MountpointInterface* outpacket),
void (*In)(IDeviceObject*, 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) = {nullptr};
};
} // namespace NeOS
|