/* * Copyright (c) 2018-2020 Atmosphère-NX * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include #include "gpio_server_manager_impl.hpp" namespace ams::gpio::server { ManagerImpl::ManagerImpl() : pad_session_memory_resource(), pad_allocator(std::addressof(pad_session_memory_resource)) { this->heap_handle = lmem::CreateExpHeap(this->heap_buffer, sizeof(this->heap_buffer), lmem::CreateOption_None); this->pad_session_memory_resource.Attach(this->heap_handle); } ManagerImpl::~ManagerImpl() { lmem::DestroyExpHeap(this->heap_handle); } Result ManagerImpl::OpenSessionForDev(ams::sf::Out> out, s32 pad_descriptor) { /* TODO */ AMS_ABORT(); } Result ManagerImpl::OpenSession(ams::sf::Out> out, gpio::GpioPadName pad_name) { /* TODO */ AMS_ABORT(); } Result ManagerImpl::OpenSessionForTest(ams::sf::Out> out, gpio::GpioPadName pad_name) { /* TODO */ AMS_ABORT(); } Result ManagerImpl::IsWakeEventActive(ams::sf::Out out, gpio::GpioPadName pad_name) { /* TODO */ AMS_ABORT(); } Result ManagerImpl::GetWakeEventActiveFlagSet(ams::sf::Out out) { /* TODO */ AMS_ABORT(); } Result ManagerImpl::SetWakeEventActiveFlagSetForDebug(gpio::GpioPadName pad_name, bool is_enabled) { /* TODO */ AMS_ABORT(); } Result ManagerImpl::SetWakePinDebugMode(s32 mode) { /* TODO */ AMS_ABORT(); } Result ManagerImpl::OpenSession2(ams::sf::Out> out, DeviceCode device_code, ddsf::AccessMode access_mode) { /* TODO */ AMS_ABORT(); } Result ManagerImpl::IsWakeEventActive2(ams::sf::Out out, DeviceCode device_code) { /* TODO */ AMS_ABORT(); } Result ManagerImpl::SetWakeEventActiveFlagSetForDebug2(DeviceCode device_code, bool is_enabled) { /* TODO */ AMS_ABORT(); } Result ManagerImpl::SetRetryValues(u32 arg0, u32 arg1) { /* TODO */ AMS_ABORT(); } }