mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 15:35:09 +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.
36 lines
853 B
C++
36 lines
853 B
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/Definitions.h>
|
|
#include <Kernel/Graphics/Intel/NativeDisplayConnector.h>
|
|
#include <Kernel/PhysicalAddress.h>
|
|
#include <LibEDID/EDID.h>
|
|
|
|
namespace Kernel {
|
|
|
|
class IntelNativeGraphicsAdapter final
|
|
: public GenericGraphicsAdapter
|
|
, public PCI::Device {
|
|
|
|
public:
|
|
static RefPtr<IntelNativeGraphicsAdapter> initialize(PCI::DeviceIdentifier const&);
|
|
|
|
virtual ~IntelNativeGraphicsAdapter() = default;
|
|
|
|
virtual bool vga_compatible() const override { return true; }
|
|
|
|
private:
|
|
ErrorOr<void> initialize_adapter();
|
|
|
|
explicit IntelNativeGraphicsAdapter(PCI::Address);
|
|
|
|
RefPtr<IntelNativeDisplayConnector> m_display_connector;
|
|
};
|
|
}
|