mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-09 09:17:13 +00:00
GenericGraphicsAdapter is mouthful. Also, the idea is to move towards a more advanced subsystem that handles GPUs, not merely graphics adapters.
33 lines
897 B
C++
33 lines
897 B
C++
/*
|
|
* Copyright (c) 2023, Edwin Rijkee <edwin@virtualparadise.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
#include <Kernel/Bus/PCI/Device.h>
|
|
#include <Kernel/Devices/GPU/Console/GenericFramebufferConsole.h>
|
|
#include <Kernel/Devices/GPU/GPUDevice.h>
|
|
|
|
namespace Kernel {
|
|
|
|
class VoodooGraphicsAdapter final : public GPUDevice
|
|
, public PCI::Device {
|
|
|
|
public:
|
|
static ErrorOr<bool> probe(PCI::DeviceIdentifier const&);
|
|
static ErrorOr<NonnullLockRefPtr<GPUDevice>> create(PCI::DeviceIdentifier const&);
|
|
virtual ~VoodooGraphicsAdapter() = default;
|
|
virtual StringView device_name() const override { return "VoodooGraphicsAdapter"sv; }
|
|
|
|
private:
|
|
ErrorOr<void> initialize_adapter(PCI::DeviceIdentifier const&);
|
|
|
|
explicit VoodooGraphicsAdapter(PCI::DeviceIdentifier const&);
|
|
|
|
LockRefPtr<DisplayConnector> m_display_connector;
|
|
};
|
|
}
|