Revert "hoc-clk: add live vdd2, live boost clock and basic pwm dimming"
This reverts commit 15b7df8ef1.
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
#include <vapours.hpp>
|
||||
#include <stratosphere/htcs/htcs_types.hpp>
|
||||
|
||||
namespace ams::htcs {
|
||||
|
||||
bool IsInitialized();
|
||||
|
||||
size_t GetWorkingMemorySize(int max_socket_count);
|
||||
|
||||
void Initialize(AllocateFunction allocate, DeallocateFunction deallocate, int num_sessions = SessionCountMax);
|
||||
void Initialize(void *buffer, size_t buffer_size);
|
||||
|
||||
void InitializeForDisableDisconnectionEmulation(AllocateFunction allocate, DeallocateFunction deallocate, int num_sessions = SessionCountMax);
|
||||
void InitializeForDisableDisconnectionEmulation(void *buffer, size_t buffer_size);
|
||||
|
||||
void InitializeForSystem(void *buffer, size_t buffer_size, int num_sessions);
|
||||
|
||||
void Finalize();
|
||||
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
#include <vapours.hpp>
|
||||
#include <stratosphere/htcs/htcs_types.hpp>
|
||||
|
||||
namespace ams::htcs {
|
||||
|
||||
const HtcsPeerName GetPeerNameAny();
|
||||
const HtcsPeerName GetDefaultHostName();
|
||||
|
||||
s32 GetLastError();
|
||||
|
||||
s32 Socket();
|
||||
s32 Close(s32 desc);
|
||||
s32 Connect(s32 desc, const SockAddrHtcs *address);
|
||||
s32 Bind(s32 desc, const SockAddrHtcs *address);
|
||||
s32 Listen(s32 desc, s32 backlog_count);
|
||||
s32 Accept(s32 desc, SockAddrHtcs *address);
|
||||
s32 Shutdown(s32 desc, s32 how);
|
||||
s32 Fcntl(s32 desc, s32 command, s32 value);
|
||||
|
||||
s32 Select(s32 count, FdSet *read, FdSet *write, FdSet *exception, TimeVal *timeout);
|
||||
|
||||
ssize_t Recv(s32 desc, void *buffer, size_t buffer_size, s32 flags);
|
||||
ssize_t Send(s32 desc, const void *buffer, size_t buffer_size, s32 flags);
|
||||
|
||||
void FdSetZero(FdSet *set);
|
||||
void FdSetSet(s32 fd, FdSet *set);
|
||||
void FdSetClr(s32 fd, FdSet *set);
|
||||
bool FdSetIsSet(s32 fd, const FdSet *set);
|
||||
|
||||
}
|
||||
@@ -1,111 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
#include <vapours.hpp>
|
||||
|
||||
namespace ams::htcs {
|
||||
|
||||
using ssize_t = intptr_t;
|
||||
using AddressFamilyType = u16;
|
||||
|
||||
constexpr inline int PeerNameBufferLength = 32;
|
||||
constexpr inline int PortNameBufferLength = 32;
|
||||
|
||||
constexpr inline int SessionCountMax = 0x10;
|
||||
|
||||
constexpr inline int SocketCountMax = 40;
|
||||
constexpr inline int FdSetSize = SocketCountMax;
|
||||
|
||||
struct HtcsPeerName {
|
||||
char name[PeerNameBufferLength];
|
||||
};
|
||||
|
||||
struct HtcsPortName {
|
||||
char name[PortNameBufferLength];
|
||||
};
|
||||
|
||||
struct SockAddrHtcs {
|
||||
AddressFamilyType family;
|
||||
HtcsPeerName peer_name;
|
||||
HtcsPortName port_name;
|
||||
};
|
||||
|
||||
struct TimeVal {
|
||||
s64 tv_sec;
|
||||
s64 tv_usec;
|
||||
};
|
||||
|
||||
struct FdSet {
|
||||
int fds[FdSetSize];
|
||||
};
|
||||
|
||||
enum SocketError {
|
||||
HTCS_ENONE = 0,
|
||||
HTCS_EACCES = 2,
|
||||
HTCS_EADDRINUSE = 3,
|
||||
HTCS_EADDRNOTAVAIL = 4,
|
||||
HTCS_EAGAIN = 6,
|
||||
HTCS_EALREADY = 7,
|
||||
HTCS_EBADF = 8,
|
||||
HTCS_EBUSY = 10,
|
||||
HTCS_ECONNABORTED = 13,
|
||||
HTCS_ECONNREFUSED = 14,
|
||||
HTCS_ECONNRESET = 15,
|
||||
HTCS_EDESTADDRREQ = 17,
|
||||
HTCS_EFAULT = 21,
|
||||
HTCS_EINPROGRESS = 26,
|
||||
HTCS_EINTR = 27,
|
||||
HTCS_EINVAL = 28,
|
||||
HTCS_EIO = 29,
|
||||
HTCS_EISCONN = 30,
|
||||
HTCS_EMFILE = 33,
|
||||
HTCS_EMSGSIZE = 35,
|
||||
HTCS_ENETDOWN = 38,
|
||||
HTCS_ENETRESET = 39,
|
||||
HTCS_ENOBUFS = 42,
|
||||
HTCS_ENOMEM = 49,
|
||||
HTCS_ENOTCONN = 56,
|
||||
HTCS_ETIMEDOUT = 76,
|
||||
HTCS_EUNKNOWN = 79,
|
||||
|
||||
HTCS_EWOULDBLOCK = HTCS_EAGAIN,
|
||||
};
|
||||
|
||||
enum MessageFlag {
|
||||
HTCS_MSG_PEEK = 1,
|
||||
HTCS_MSG_WAITALL = 2,
|
||||
};
|
||||
|
||||
enum ShutdownType {
|
||||
HTCS_SHUT_RD = 0,
|
||||
HTCS_SHUT_WR = 1,
|
||||
HTCS_SHUT_RDWR = 2,
|
||||
};
|
||||
|
||||
enum FcntlOperation {
|
||||
HTCS_F_GETFL = 3,
|
||||
HTCS_F_SETFL = 4,
|
||||
};
|
||||
|
||||
enum FcntlFlag {
|
||||
HTCS_O_NONBLOCK = 4,
|
||||
};
|
||||
|
||||
enum AddressFamily {
|
||||
HTCS_AF_HTCS = 0,
|
||||
};
|
||||
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
#include <vapours.hpp>
|
||||
#include <stratosphere/htclow/htclow_channel_types.hpp>
|
||||
|
||||
namespace ams::htcs::impl {
|
||||
|
||||
constexpr inline htclow::ChannelId HtcsClientChannelId = 0;
|
||||
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
#include <vapours.hpp>
|
||||
#include <stratosphere/htcs/htcs_types.hpp>
|
||||
|
||||
namespace ams::htcs::impl {
|
||||
|
||||
class HtcsManager;
|
||||
|
||||
namespace HtcsManagerHolder {
|
||||
|
||||
void AddReference();
|
||||
void Release();
|
||||
|
||||
HtcsManager *GetHtcsManager();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
#include <vapours.hpp>
|
||||
|
||||
namespace ams::htcs::server {
|
||||
|
||||
void Initialize();
|
||||
|
||||
void RegisterHipcServer();
|
||||
void LoopHipcServer();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user