mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:02:43 +00:00 
			
		
		
		
	 3fae7ca113
			
		
	
	
		3fae7ca113
		
	
	
	
	
		
			
			Let's put the PCI IDs as enums in the PCI namespace so they're free to pollute that namespace, but it's also more easier to use them.
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			425 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			425 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Gunnar Beutner <gbeutner@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| namespace Kernel::PCI {
 | |
| 
 | |
| enum VendorID {
 | |
|     VirtIO = 0x1af4,
 | |
|     Intel = 0x8086,
 | |
|     WCH = 0x1c00,
 | |
|     RedHat = 0x1b36,
 | |
|     Realtek = 0x10ec,
 | |
|     QEMUOld = 0x1234,
 | |
|     VirtualBox = 0x80ee
 | |
| };
 | |
| 
 | |
| enum DeviceID {
 | |
|     VirtIOConsole = 0x1003,
 | |
|     VirtIOEntropy = 0x1005,
 | |
|     VirtIOGPU = 0x1050,
 | |
| };
 | |
| 
 | |
| }
 |