mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:22:44 +00:00 
			
		
		
		
	 ebbc38cd2a
			
		
	
	
		ebbc38cd2a
		
	
	
	
	
		
			
			There's no point in keeping this method as we don't really care if a graphics adapter is VGA compatible or not because we don't use this method anymore.
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			1,006 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			1,006 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/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;
 | |
| 
 | |
| private:
 | |
|     ErrorOr<void> initialize_adapter(PCI::DeviceIdentifier const&);
 | |
| 
 | |
|     explicit BochsGraphicsAdapter(PCI::DeviceIdentifier const&);
 | |
| 
 | |
|     RefPtr<BochsDisplayConnector> m_display_connector;
 | |
| };
 | |
| }
 |