summaryrefslogtreecommitdiff
path: root/Kernel/Storage/ATA/ATAController.h
blob: 02885d77a22469050c987d9065cd378022743879 (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
/*
 * Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/OwnPtr.h>
#include <AK/RefPtr.h>
#include <AK/Types.h>
#include <Kernel/Devices/BlockDevice.h>
#include <Kernel/Storage/StorageController.h>

namespace Kernel {

class AsyncBlockDeviceRequest;

class ATADevice;
class ATAController
    : public StorageController
    , public Weakable<ATAController> {
public:
    virtual void start_request(ATADevice const&, AsyncBlockDeviceRequest&) = 0;

protected:
    ATAController() = default;
};
}