mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 02:45:08 +00:00

The old methods are already can be considered deprecated, and now after we removed framebuffer devices entirely, we can safely remove these methods too, which simplfies the GenericGraphicsAdapter class a lot.
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
#include <Kernel/Bus/PCI/Device.h>
|
|
#include <Kernel/Graphics/Bochs/Definitions.h>
|
|
#include <Kernel/Graphics/Console/GenericFramebufferConsole.h>
|
|
#include <Kernel/Graphics/GenericGraphicsAdapter.h>
|
|
#include <Kernel/Memory/TypedMapping.h>
|
|
#include <Kernel/PhysicalAddress.h>
|
|
|
|
namespace Kernel {
|
|
|
|
class GraphicsManagement;
|
|
struct BochsDisplayMMIORegisters;
|
|
|
|
class BochsDisplayConnector;
|
|
class BochsGraphicsAdapter final : public GenericGraphicsAdapter
|
|
, public PCI::Device {
|
|
friend class GraphicsManagement;
|
|
|
|
public:
|
|
static NonnullRefPtr<BochsGraphicsAdapter> initialize(PCI::DeviceIdentifier const&);
|
|
virtual ~BochsGraphicsAdapter() = default;
|
|
|
|
virtual bool vga_compatible() const override;
|
|
|
|
private:
|
|
ErrorOr<void> initialize_adapter(PCI::DeviceIdentifier const&);
|
|
|
|
explicit BochsGraphicsAdapter(PCI::DeviceIdentifier const&);
|
|
|
|
RefPtr<BochsDisplayConnector> m_display_connector;
|
|
bool m_is_vga_capable { false };
|
|
};
|
|
}
|