mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	HLE: Add pxi:dev stub.
This commit is contained in:
		
							parent
							
								
									af45f2b2de
								
							
						
					
					
						commit
						16b26e73c9
					
				
					 6 changed files with 95 additions and 0 deletions
				
			
		
							
								
								
									
										36
									
								
								src/core/hle/service/pxi/dev.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								src/core/hle/service/pxi/dev.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,36 @@ | |||
| // Copyright 2017 Citra Emulator Project
 | ||||
| // Licensed under GPLv2 or any later version
 | ||||
| // Refer to the license.txt file included.
 | ||||
| 
 | ||||
| #include "core/hle/service/pxi/dev.h" | ||||
| 
 | ||||
| namespace Service { | ||||
| namespace PXI { | ||||
| 
 | ||||
| DEV::DEV() : ServiceFramework("pxi:dev", 1) { | ||||
|     // clang-format off
 | ||||
|     static const FunctionInfo functions[] = { | ||||
|         {0x000101C2, nullptr, "ReadHostIO"}, | ||||
|         {0x000201C2, nullptr, "WriteHostIO"}, | ||||
|         {0x00030102, nullptr, "ReadHostEx"}, | ||||
|         {0x00040102, nullptr, "WriteHostEx"}, | ||||
|         {0x00050102, nullptr, "WriteHostExStart"}, | ||||
|         {0x00060102, nullptr, "WriteHostExChunk"}, | ||||
|         {0x00070000, nullptr, "WriteHostExEnd"}, | ||||
|         {0x00080000, nullptr, "InitializeMIDI"}, | ||||
|         {0x00090000, nullptr, "FinalizeMIDI"}, | ||||
|         {0x000A0000, nullptr, "GetMIDIInfo"}, | ||||
|         {0x000B0000, nullptr, "GetMIDIBufferSize"}, | ||||
|         {0x000C0042, nullptr, "ReadMIDI"}, | ||||
|         {0x000D0688, nullptr, "SPIMultiWriteRead"}, | ||||
|         {0x000E0284, nullptr, "SPIWriteRead"}, | ||||
|         {0x000F0000, nullptr, "GetCardDevice"}, | ||||
|     }; | ||||
|     // clang-format on
 | ||||
|     RegisterHandlers(functions); | ||||
| } | ||||
| 
 | ||||
| DEV::~DEV() = default; | ||||
| 
 | ||||
| } // namespace PXI
 | ||||
| } // namespace Service
 | ||||
							
								
								
									
										21
									
								
								src/core/hle/service/pxi/dev.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								src/core/hle/service/pxi/dev.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,21 @@ | |||
| // Copyright 2017 Citra Emulator Project
 | ||||
| // Licensed under GPLv2 or any later version
 | ||||
| // Refer to the license.txt file included.
 | ||||
| 
 | ||||
| #pragma once | ||||
| 
 | ||||
| #include "core/hle/kernel/kernel.h" | ||||
| #include "core/hle/service/service.h" | ||||
| 
 | ||||
| namespace Service { | ||||
| namespace PXI { | ||||
| 
 | ||||
| /// Interface to "pxi:dev" service
 | ||||
| class DEV final : public ServiceFramework<DEV> { | ||||
| public: | ||||
|     DEV(); | ||||
|     ~DEV(); | ||||
| }; | ||||
| 
 | ||||
| } // namespace PXI
 | ||||
| } // namespace Service
 | ||||
							
								
								
									
										16
									
								
								src/core/hle/service/pxi/pxi.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								src/core/hle/service/pxi/pxi.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| // Copyright 2017 Citra Emulator Project
 | ||||
| // Licensed under GPLv2 or any later version
 | ||||
| // Refer to the license.txt file included.
 | ||||
| 
 | ||||
| #include "core/hle/service/pxi/dev.h" | ||||
| #include "core/hle/service/pxi/pxi.h" | ||||
| 
 | ||||
| namespace Service { | ||||
| namespace PXI { | ||||
| 
 | ||||
| void InstallInterfaces(SM::ServiceManager& service_manager) { | ||||
|     std::make_shared<DEV>()->InstallAsService(service_manager); | ||||
| } | ||||
| 
 | ||||
| } // namespace PXI
 | ||||
| } // namespace Service
 | ||||
							
								
								
									
										16
									
								
								src/core/hle/service/pxi/pxi.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								src/core/hle/service/pxi/pxi.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| // Copyright 2017 Citra Emulator Project
 | ||||
| // Licensed under GPLv2 or any later version
 | ||||
| // Refer to the license.txt file included.
 | ||||
| 
 | ||||
| #pragma once | ||||
| 
 | ||||
| #include "core/hle/service/service.h" | ||||
| 
 | ||||
| namespace Service { | ||||
| namespace PXI { | ||||
| 
 | ||||
| /// Registers all PXI services with the specified service manager.
 | ||||
| void InstallInterfaces(SM::ServiceManager& service_manager); | ||||
| 
 | ||||
| } // namespace PXI
 | ||||
| } // namespace Service
 | ||||
|  | @ -43,6 +43,7 @@ | |||
| #include "core/hle/service/nwm/nwm.h" | ||||
| #include "core/hle/service/pm_app.h" | ||||
| #include "core/hle/service/ptm/ptm.h" | ||||
| #include "core/hle/service/pxi/pxi.h" | ||||
| #include "core/hle/service/qtm/qtm.h" | ||||
| #include "core/hle/service/service.h" | ||||
| #include "core/hle/service/sm/sm.h" | ||||
|  | @ -259,6 +260,7 @@ void Init() { | |||
| 
 | ||||
|     ERR::InstallInterfaces(); | ||||
| 
 | ||||
|     PXI::InstallInterfaces(*SM::g_service_manager); | ||||
|     NS::InstallInterfaces(*SM::g_service_manager); | ||||
|     AC::InstallInterfaces(*SM::g_service_manager); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue