mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 01:22:43 +00:00 
			
		
		
		
	 2272d93215
			
		
	
	
		2272d93215
		
	
	
	
	
		
			
			To declare that we don't have a PCI bus in the system we do two things: 1. Probe IO ports before enabling access - In case we are using the QEMU ISA-PC machine type, IO probing results in floating bus condition (returning 0xFF values), thus, we know we don't have PCI bus on the system. 2. Allow the user to specify to not use the PCI bus at all in the kernel commandline.
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			279 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			279 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, Liav A. <liavalb@hotmail.co.il>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| namespace Kernel {
 | |
| namespace PCI {
 | |
| 
 | |
| extern bool g_pci_access_io_probe_failed;
 | |
| extern bool g_pci_access_is_disabled_from_commandline;
 | |
| 
 | |
| void initialize();
 | |
| 
 | |
| }
 | |
| }
 |