summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/nvdrv.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-01-19nvdrv: use static typing for SessionId, smmu Asid typesLiam1-1/+1
2024-01-19NVDRV: Implement sessions and initial implementation of SMMUFernando Sahmkow1-1/+5
2023-06-22Remove memory allocations in some hot pathsKelebek11-4/+4
2023-03-01nvnflinger: fix nameLiam1-5/+5
2023-02-21service: refactor server architectureLiam1-3/+1
Converts services to have their own processes
2023-02-03Revert "Merge pull request #9718 from yuzu-emu/revert-9508-hle-ipc-buffer-span"ameerj1-6/+6
This reverts commit 25fc5c0e1158cb8e81cbc769b24ad84032a1fbfd, reversing changes made to af20e25081f97d55b451606c87922e2b49f0d363.
2023-02-02Revert "hle_ipc: Use std::span to avoid heap allocations/copies when calling ReadBuffer"liamwhite1-6/+6
2022-12-29nvdrv: Use std::span for inputsameerj1-6/+6
Allows the use of HLERequestContext::ReadBufferSpan
2022-10-24nvdrv: fix container destruction orderLiam1-3/+3
2022-10-06General: address feedbackFernando Sahmkow1-1/+1
2022-10-06general: Format licenses as per SPDX guidelinesMorph1-4/+3
2022-10-06Core: Fix get nvmap object random crashVonChenPlus1-2/+1
2022-10-06General: Fix compilation for GCCLiam White1-0/+1
2022-10-06NVDRV: Further refactors and eliminate old code.Fernando Sahmkow1-7/+0
2022-10-06NVDRV: Fix clearing when destroying.Fernando Sahmkow1-3/+0
2022-10-06NVDRV: Fix Open/Close and make sure each device is correctly created.Fernando Sahmkow1-40/+16
2022-10-06NVDRV: Refactor and add new NvMap.Fernando Sahmkow1-4/+7
2022-10-06NVDRV: Cleanup.Fernando Sahmkow1-5/+4
2022-10-06NVDRV: Implement QueryEvent.Fernando Sahmkow1-1/+5
2022-10-06NvHost: Remake Ctrl Implementation.Fernando Sahmkow1-57/+39
2022-10-06NvHost: Try a different approach to blocking.Fernando Sahmkow1-1/+1
2022-04-23general: Convert source file copyright comments over to SPDXMorph1-3/+2
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-03-25hle: nvdrv: Rename Fence to NvFence to avoid naming conflicts.bunnei1-1/+2
2021-10-16NVHost_Ctrl: Force wait if the gpu falls behind too long.FernandoS271-0/+2
2021-07-21hle: service: Add a helper module for managing kernel objects.bunnei1-0/+3
2021-05-06hle: kernel: Migrate KReadableEvent and KWritableEvent to KAutoObject.bunnei1-2/+2
2021-05-06hle: kernel: Refactor several threads/events/sharedmemory to use slab heaps.bunnei1-1/+1
2021-05-06hle: kernel: Migrate KEvent to KAutoObject.bunnei1-1/+1
2021-02-05hle: kernel: Reimplement KReadableEvent and KWritableEvent.bunnei1-2/+6
2021-02-05hle: kernel: Rename WritableEvent to KWritableEvent.bunnei1-2/+2
2021-02-05hle: kernel: Rename ReadableEvent to KReadableEvent.bunnei1-1/+1
2020-12-29hle: service: nvdrv: Revert #4981 to remove usage of SleepClientThread.bunnei1-3/+3
- Note, this always processes the ioctl right away, which fixes BotW 1.0.0 issues.
2020-11-27service: Eliminate usages of the global system instanceLioncash1-1/+1
Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
2020-11-24nvservices: Reintroducee IoctlCtrlChloe Marcec1-3/+3
Fixes regression caused by #4907 which caused games like Breath of the Wild 1.0.0 not to boot.
2020-11-10Addressed issuesChloe Marcec1-1/+1
2020-11-10core: Make nvservices more standardizedChloe Marcec1-7/+16
2020-11-01hle service: nvdrv: Update to instantiate SyncpointManager.bunnei1-1/+13
2020-09-22General: Make use of std::nullopt where applicableLioncash1-1/+1
Allows some implementations to avoid completely zeroing out the internal buffer of the optional, and instead only set the validity byte within the structure. This also makes it consistent how we return empty optionals.
2019-11-25kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154)bunnei1-2/+2
* kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. - See https://github.com/citra-emu/citra/pull/4710 for details.
2019-09-19Initial implementation of Ioctl2 & Ioctl3David Marcec1-2/+3
Purpose of Ioctl2 and Ioctl3 is to prevent the passing of raw pointers through ioctls
2019-07-05NVServices: Address FeedbackFernando Sahmkow1-7/+16
2019-07-05NVServices: Styling, define constructors as explicit and correctionsFernando Sahmkow1-7/+9
2019-07-05NVServices: Correct CtrlEventWaitSync to block the ipc until timeout.Fernando Sahmkow1-1/+4
2019-07-05GPU: Correct Interrupts to interrupt on syncpt/value instead of event, mirroring hardwareFernando Sahmkow1-1/+3
2019-07-05nv_services: Fixes to event liberation.Fernando Sahmkow1-6/+14
2019-07-05nv_services: Deglobalize NvServicesFernando Sahmkow1-2/+7
2019-07-05Gpu: Implement Hardware Interrupt Manager and manage GPU interruptsFernando Sahmkow1-4/+1
2019-07-05nv_services: Implement NvQueryEvent, NvCtrlEventWait, NvEventRegister, NvEventUnregisterFernando Sahmkow1-0/+52
2019-07-05nv_services: Correct buffer queue fencing and GPFifo fencingFernando Sahmkow1-7/+1
2018-09-11hle/service: Default constructors and destructors in the cpp file where applicableLioncash1-1/+1
When a destructor isn't defaulted into a cpp file, it can cause the use of forward declarations to seemingly fail to compile for non-obvious reasons. It also allows inlining of the construction/destruction logic all over the place where a constructor or destructor is invoked, which can lead to code bloat. This isn't so much a worry here, given the services won't be created and destroyed frequently. The cause of the above mentioned non-obvious errors can be demonstrated as follows: ------- Demonstrative example, if you know how the described error happens, skip forwards ------- Assume we have the following in the header, which we'll call "thing.h": \#include <memory> // Forward declaration. For example purposes, assume the definition // of Object is in some header named "object.h" class Object; class Thing { public: // assume no constructors or destructors are specified here, // or the constructors/destructors are defined as: // // Thing() = default; // ~Thing() = default; // // ... Some interface member functions would be defined here private: std::shared_ptr<Object> obj; }; If this header is included in a cpp file, (which we'll call "main.cpp"), this will result in a compilation error, because even though no destructor is specified, the destructor will still need to be generated by the compiler because std::shared_ptr's destructor is *not* trivial (in other words, it does something other than nothing), as std::shared_ptr's destructor needs to do two things: 1. Decrement the shared reference count of the object being pointed to, and if the reference count decrements to zero, 2. Free the Object instance's memory (aka deallocate the memory it's pointing to). And so the compiler generates the code for the destructor doing this inside main.cpp. Now, keep in mind, the Object forward declaration is not a complete type. All it does is tell the compiler "a type named Object exists" and allows us to use the name in certain situations to avoid a header dependency. So the compiler needs to generate destruction code for Object, but the compiler doesn't know *how* to destruct it. A forward declaration doesn't tell the compiler anything about Object's constructor or destructor. So, the compiler will issue an error in this case because it's undefined behavior to try and deallocate (or construct) an incomplete type and std::shared_ptr and std::unique_ptr make sure this isn't the case internally. Now, if we had defaulted the destructor in "thing.cpp", where we also include "object.h", this would never be an issue, as the destructor would only have its code generated in one place, and it would be in a place where the full class definition of Object would be visible to the compiler. ---------------------- End example ---------------------------- Given these service classes are more than certainly going to change in the future, this defaults the constructors and destructors into the relevant cpp files to make the construction and destruction of all of the services consistent and unlikely to run into cases where forward declarations are indirectly causing compilation errors. It also has the plus of avoiding the need to rebuild several services if destruction logic changes, since it would only be necessary to recompile the single cpp file.
2018-08-08nvdrv: Get rid of global std::weak_ptrLioncash1-3/+5
Rather than use global state, we can simply pass the instance into the NVFlinger instance directly.
2018-07-25service/nvdrv: Take std::string in Open() by const referenceLioncash1-1/+1
Avoids copies from being made, since the string is only ever used for lookup, the data is never transfered anywhere. Ideally, we'd use a std::string_view here, but devices is a std::unordered_map, not a std::map, so we can't use heterogenous lookup here.
2018-07-19nvdrv: Take std::string by const reference in GetDevice()Lioncash1-1/+1
This is only ever used as a lookup into the device map, so we don't need to take the std::string instance by value here.
2018-04-20service: Use nested namespace specifiers where applicableLioncash1-4/+2
Tidies up namespace declarations
2018-02-15Vi: Properly write the BufferProducerFence object in the DequeueBuffer response parcel.Subv1-0/+7
2018-01-17nvdrv: stubbed Close(cmd 2)Frederic Meyer1-0/+2
2018-01-17NV: Move the nvdrv classes into the Nvidia namespace, and move the functionality to a s single module that services call.Subv1-94/+30
2018-01-16clang-formatMerryMage1-0/+1
2018-01-13yuzu: Update license text to be consistent across project.bunnei1-1/+1
2018-01-11NV: Expose the nvdisp_disp0 device and a weak reference to the nvdrv:a service.Subv1-0/+94
NVFlinger will call into the nvdisp_disp0 device to perform screen flips, bypassing the ioctl interface. We now have the address of the framebuffer to draw, we just need to actually put it on the screen.
2018-01-11NV: Implemented the nvdrv:a service and the /dev/nvmap device.Subv1-0/+25