mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-05 09:13:43 -04:00
strat: fix board namespacing for nintendo::nx
This commit is contained in:
parent
a26e8ac54f
commit
30e70e20d8
46 changed files with 57 additions and 57 deletions
|
@ -18,11 +18,11 @@
|
|||
#include "impl/gpio_initial_config.hpp"
|
||||
#include "impl/gpio_tegra_pad.hpp"
|
||||
|
||||
namespace ams::gpio::driver::board::nintendo_nx {
|
||||
namespace ams::gpio::driver::board::nintendo::nx {
|
||||
|
||||
namespace {
|
||||
|
||||
ams::gpio::driver::board::nintendo_nx::impl::DriverImpl *g_driver_impl = nullptr;
|
||||
ams::gpio::driver::board::nintendo::nx::impl::DriverImpl *g_driver_impl = nullptr;
|
||||
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ namespace ams::gpio::driver::board::nintendo_nx {
|
|||
AMS_ABORT_UNLESS(driver_storage != nullptr);
|
||||
|
||||
/* Construct the new driver. */
|
||||
g_driver_impl = new (driver_storage) ams::gpio::driver::board::nintendo_nx::impl::DriverImpl(impl::GpioRegistersPhysicalAddress, impl::GpioRegistersSize);
|
||||
g_driver_impl = new (driver_storage) ams::gpio::driver::board::nintendo::nx::impl::DriverImpl(impl::GpioRegistersPhysicalAddress, impl::GpioRegistersSize);
|
||||
|
||||
/* Register the driver. */
|
||||
gpio::driver::RegisterDriver(g_driver_impl);
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include "gpio_driver_impl.hpp"
|
||||
#include "gpio_register_accessor.hpp"
|
||||
|
||||
namespace ams::gpio::driver::board::nintendo_nx::impl {
|
||||
namespace ams::gpio::driver::board::nintendo::nx::impl {
|
||||
|
||||
void InterruptEventHandler::Initialize(DriverImpl *drv, os::InterruptName intr, int ctlr) {
|
||||
/* Set fields. */
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "gpio_register_accessor.hpp"
|
||||
#include "gpio_suspend_handler.hpp"
|
||||
|
||||
namespace ams::gpio::driver::board::nintendo_nx::impl {
|
||||
namespace ams::gpio::driver::board::nintendo::nx::impl {
|
||||
|
||||
class DriverImpl;
|
||||
|
||||
|
@ -43,7 +43,7 @@ namespace ams::gpio::driver::board::nintendo_nx::impl {
|
|||
class DriverImpl : public ::ams::gpio::driver::IGpioDriver {
|
||||
NON_COPYABLE(DriverImpl);
|
||||
NON_MOVEABLE(DriverImpl);
|
||||
AMS_DDSF_CASTABLE_TRAITS(ams::gpio::driver::board::nintendo_nx::impl::DriverImpl, ::ams::gpio::driver::IGpioDriver);
|
||||
AMS_DDSF_CASTABLE_TRAITS(ams::gpio::driver::board::nintendo::nx::impl::DriverImpl, ::ams::gpio::driver::IGpioDriver);
|
||||
friend class InterruptEventHandler;
|
||||
private:
|
||||
dd::PhysicalAddress gpio_physical_address;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include "gpio_initial_config.hpp"
|
||||
#include "gpio_wake_pin_config.hpp"
|
||||
|
||||
namespace ams::gpio::driver::board::nintendo_nx::impl {
|
||||
namespace ams::gpio::driver::board::nintendo::nx::impl {
|
||||
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#pragma once
|
||||
#include <stratosphere.hpp>
|
||||
|
||||
namespace ams::gpio::driver::board::nintendo_nx::impl {
|
||||
namespace ams::gpio::driver::board::nintendo::nx::impl {
|
||||
|
||||
struct GpioInitialConfig {
|
||||
DeviceCode device_code;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include "gpio_tegra_pad.hpp"
|
||||
|
||||
namespace ams::gpio::driver::board::nintendo_nx::impl {
|
||||
namespace ams::gpio::driver::board::nintendo::nx::impl {
|
||||
|
||||
constexpr inline dd::PhysicalAddress GpioRegistersPhysicalAddress = 0x6000D000;
|
||||
constexpr inline size_t GpioRegistersSize = 4_KB;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <stratosphere.hpp>
|
||||
#include "gpio_suspend_handler.hpp"
|
||||
|
||||
namespace ams::gpio::driver::board::nintendo_nx::impl {
|
||||
namespace ams::gpio::driver::board::nintendo::nx::impl {
|
||||
|
||||
void SuspendHandler::Initialize(uintptr_t gpio_vaddr) {
|
||||
/* Set our gpio virtual address. */
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include "gpio_tegra_pad.hpp"
|
||||
|
||||
namespace ams::gpio::driver::board::nintendo_nx::impl {
|
||||
namespace ams::gpio::driver::board::nintendo::nx::impl {
|
||||
|
||||
class SuspendHandler {
|
||||
NON_COPYABLE(SuspendHandler);
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#pragma once
|
||||
#include <stratosphere.hpp>
|
||||
|
||||
namespace ams::gpio::driver::board::nintendo_nx::impl {
|
||||
namespace ams::gpio::driver::board::nintendo::nx::impl {
|
||||
|
||||
enum GpioPadPort {
|
||||
GpioPadPort_A = 0,
|
||||
|
@ -347,7 +347,7 @@ namespace ams::gpio::driver::board::nintendo_nx::impl {
|
|||
};
|
||||
|
||||
class TegraPad : public ::ams::gpio::driver::Pad {
|
||||
AMS_DDSF_CASTABLE_TRAITS(ams::gpio::driver::board::nintendo_nx::impl::TegraPad, ::ams::gpio::driver::Pad);
|
||||
AMS_DDSF_CASTABLE_TRAITS(ams::gpio::driver::board::nintendo::nx::impl::TegraPad, ::ams::gpio::driver::Pad);
|
||||
private:
|
||||
using Base = ::ams::gpio::driver::Pad;
|
||||
private:
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#pragma once
|
||||
#include <stratosphere.hpp>
|
||||
|
||||
namespace ams::gpio::driver::board::nintendo_nx::impl {
|
||||
namespace ams::gpio::driver::board::nintendo::nx::impl {
|
||||
|
||||
struct WakePinConfig {
|
||||
wec::WakeEvent wake_event;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue