htc: implement (fixing linker errors) through HtclowManagerImpl::OpenDriver

This commit is contained in:
Michael Scire
2021-02-08 01:25:10 -08:00
committed by SciresM
parent 1687bf2e07
commit c878123274
30 changed files with 582 additions and 22 deletions

View File

@@ -21,6 +21,8 @@ namespace ams::htclow {
namespace impl {
enum class DriverType {
Unknown = 0,
Debug = 1,
Socket = 2,
Usb = 3,
HostBridge = 4,
@@ -29,5 +31,6 @@ namespace ams::htclow {
}
constexpr inline s16 ProtocolVersion = 5;
}

View File

@@ -20,6 +20,7 @@
#include <stratosphere/settings/settings_fwdbg_types.hpp>
#include <stratosphere/settings/settings_fwdbg_api.hpp>
#include <stratosphere/settings/factory/settings_serial_number.hpp>
#include <stratosphere/settings/factory/settings_configuration_id.hpp>
#include <stratosphere/settings/factory/settings_device_certificate.hpp>
#include <stratosphere/settings/system/settings_error_report.hpp>
#include <stratosphere/settings/system/settings_firmware_version.hpp>

View File

@@ -0,0 +1,29 @@
/*
* 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 <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <vapours.hpp>
namespace ams::settings::factory {
struct ConfigurationId1 {
char str[30];
};
static_assert(sizeof(ConfigurationId1) == 30);
static_assert(util::is_pod<ConfigurationId1>::value);
void GetConfigurationId1(ConfigurationId1 *out);
}

View File

@@ -24,4 +24,6 @@ namespace ams::settings::factory {
static_assert(sizeof(SerialNumber) == 0x18);
static_assert(util::is_pod<SerialNumber>::value);
Result GetSerialNumber(SerialNumber *out);
}