mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:42:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			570 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			570 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, Liav A. <liavalb@hotmail.co.il>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <Kernel/Bus/PCI/Device.h>
 | |
| 
 | |
| namespace Kernel {
 | |
| namespace PCI {
 | |
| 
 | |
| Device::Device(Address address)
 | |
|     : IRQHandler(get_interrupt_line(address))
 | |
|     , m_pci_address(address)
 | |
| {
 | |
|     // FIXME: Register PCI device somewhere...
 | |
| }
 | |
| 
 | |
| Device::Device(Address address, u8 interrupt_vector)
 | |
|     : IRQHandler(interrupt_vector)
 | |
|     , m_pci_address(address)
 | |
| {
 | |
|     // FIXME: Register PCI device somewhere...
 | |
| }
 | |
| 
 | |
| Device::~Device()
 | |
| {
 | |
|     // FIXME: Unregister the device
 | |
| }
 | |
| 
 | |
| }
 | |
| }
 | 
