mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:22:46 +00:00 
			
		
		
		
	 9ee098b119
			
		
	
	
		9ee098b119
		
	
	
	
	
		
			
			Like the HID, Audio and Storage subsystem, the Graphics subsystem (which
handles GPUs technically) exposes unix device files (typically in /dev).
To ensure consistency across the repository, move all related files to a
new directory under Kernel/Devices called "GPU".
Also remove the redundant "GPU" word from the VirtIO driver directory,
and the word "Graphics" from GraphicsManagement.{h,cpp} filenames.
		
	
			
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			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/Devices/GPU/Definitions.h>
 | |
| #include <Kernel/Devices/GPU/Intel/DisplayConnectorGroup.h>
 | |
| #include <Kernel/Devices/GPU/Intel/NativeDisplayConnector.h>
 | |
| #include <Kernel/Memory/PhysicalAddress.h>
 | |
| #include <LibEDID/EDID.h>
 | |
| 
 | |
| namespace Kernel {
 | |
| 
 | |
| class IntelNativeGraphicsAdapter final
 | |
|     : public GenericGraphicsAdapter
 | |
|     , public PCI::Device {
 | |
| 
 | |
| public:
 | |
|     static ErrorOr<bool> probe(PCI::DeviceIdentifier const&);
 | |
|     static ErrorOr<NonnullLockRefPtr<GenericGraphicsAdapter>> create(PCI::DeviceIdentifier const&);
 | |
| 
 | |
|     virtual ~IntelNativeGraphicsAdapter() = default;
 | |
| 
 | |
|     virtual StringView device_name() const override { return "IntelNativeGraphicsAdapter"sv; }
 | |
| 
 | |
| private:
 | |
|     ErrorOr<void> initialize_adapter();
 | |
| 
 | |
|     explicit IntelNativeGraphicsAdapter(PCI::DeviceIdentifier const&);
 | |
| 
 | |
|     LockRefPtr<IntelDisplayConnectorGroup> m_connector_group;
 | |
| };
 | |
| }
 |