blob: 7e60301bdd58eae04e03c8917069c1f480dde178 (
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
|
/* -------------------------------------------
Copyright (C) 2024, t& Corporation, all rights reserved.
------------------------------------------- */
#include <StorageKit/AHCI.h>
using namespace Kernel;
/// @brief Class constructor
/// @param Out Drive output
/// @param In Drive input
/// @param Cleanup Drive cleanup.
AHCIDeviceInterface::AHCIDeviceInterface(void (*Out)(MountpointInterface* outpacket),
void (*In)(MountpointInterface* inpacket),
void (*Cleanup)(void))
: IDeviceObject(Out, In), fCleanup(Cleanup)
{
}
/// @brief Class desctructor
AHCIDeviceInterface::~AHCIDeviceInterface()
{
MUST_PASS(fCleanup);
if (fCleanup)
fCleanup();
}
/// @brief Returns the name of the device interface.
/// @return it's name as a string.
const Char* AHCIDeviceInterface::Name() const
{
return "AHCIDeviceInterface";
}
|