mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
This looks better
This commit is contained in:
parent
5abc4873d8
commit
6fa8370bfb
@ -85,7 +85,8 @@ export OFILES := $(addsuffix .o,$(BINFILES)) \
|
|||||||
|
|
||||||
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
||||||
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
|
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
|
||||||
-I.
|
-I. \
|
||||||
|
-iquote$(CURDIR)/include/switch/
|
||||||
|
|
||||||
.PHONY: clean all
|
.PHONY: clean all
|
||||||
|
|
||||||
|
@ -8,51 +8,51 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <switch/types.h>
|
#include "switch/types.h"
|
||||||
#include <switch/result.h>
|
#include "switch/result.h"
|
||||||
|
|
||||||
#include <switch/kernel/svc.h>
|
#include "switch/kernel/svc.h"
|
||||||
#include <switch/kernel/tmem.h>
|
#include "switch/kernel/tmem.h"
|
||||||
#include <switch/kernel/shmem.h>
|
#include "switch/kernel/shmem.h"
|
||||||
#include <switch/kernel/mutex.h>
|
#include "switch/kernel/mutex.h"
|
||||||
#include <switch/kernel/rwlock.h>
|
#include "switch/kernel/rwlock.h"
|
||||||
#include <switch/kernel/thread.h>
|
#include "switch/kernel/thread.h"
|
||||||
#include <switch/kernel/virtmem.h>
|
#include "switch/kernel/virtmem.h"
|
||||||
#include <switch/kernel/detect.h>
|
#include "switch/kernel/detect.h"
|
||||||
#include <switch/kernel/random.h>
|
#include "switch/kernel/random.h"
|
||||||
#include <switch/kernel/jit.h>
|
#include "switch/kernel/jit.h"
|
||||||
|
|
||||||
#include <switch/arm.h>
|
#include "switch/arm.h"
|
||||||
#include <switch/ipc.h>
|
#include "switch/ipc.h"
|
||||||
|
|
||||||
#include <switch/services/sm.h>
|
#include "switch/services/sm.h"
|
||||||
#include <switch/services/fs.h>
|
#include "switch/services/fs.h"
|
||||||
#include <switch/services/acc.h>
|
#include "switch/services/acc.h"
|
||||||
#include <switch/services/apm.h>
|
#include "switch/services/apm.h"
|
||||||
#include <switch/services/applet.h>
|
#include "switch/services/applet.h"
|
||||||
#include <switch/services/bsd.h>
|
#include "switch/services/bsd.h"
|
||||||
#include <switch/services/fatal.h>
|
#include "switch/services/fatal.h"
|
||||||
#include <switch/services/usb.h>
|
#include "switch/services/usb.h"
|
||||||
#include <switch/services/hid.h>
|
#include "switch/services/hid.h"
|
||||||
#include <switch/services/vi.h>
|
#include "switch/services/vi.h"
|
||||||
#include <switch/services/nv.h>
|
#include "switch/services/nv.h"
|
||||||
#include <switch/services/pm.h>
|
#include "switch/services/pm.h"
|
||||||
|
|
||||||
#include <switch/gfx/gfx.h>
|
#include "switch/gfx/gfx.h"
|
||||||
#include <switch/gfx/binder.h>
|
#include "switch/gfx/binder.h"
|
||||||
#include <switch/gfx/parcel.h>
|
#include "switch/gfx/parcel.h"
|
||||||
#include <switch/gfx/buffer_producer.h>
|
#include "switch/gfx/buffer_producer.h"
|
||||||
#include <switch/gfx/ioctl.h>
|
#include "switch/gfx/ioctl.h"
|
||||||
#include <switch/gfx/nvioctl.h>
|
#include "switch/gfx/nvioctl.h"
|
||||||
#include <switch/gfx/nvgfx.h>
|
#include "switch/gfx/nvgfx.h"
|
||||||
|
|
||||||
#include <switch/runtime/env.h>
|
#include "switch/runtime/env.h"
|
||||||
|
|
||||||
#include <switch/runtime/util/utf.h>
|
#include "switch/runtime/util/utf.h"
|
||||||
|
|
||||||
#include <switch/runtime/devices/console.h>
|
#include "switch/runtime/devices/console.h"
|
||||||
#include <switch/runtime/devices/usb_comms.h>
|
#include "switch/runtime/devices/usb_comms.h"
|
||||||
#include <switch/runtime/devices/fs_dev.h>
|
#include "switch/runtime/devices/fs_dev.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
static inline void* armGetTls(void) {
|
static inline void* armGetTls(void) {
|
||||||
void* ret;
|
void* ret;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
#define BINDER_FIRST_CALL_TRANSACTION 0x1
|
#define BINDER_FIRST_CALL_TRANSACTION 0x1
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/gfx/nvioctl.h>
|
#include "gfx/nvioctl.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u32 is_valid;
|
u32 is_valid;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
/// Converts red, green, blue, and alpha components to packed RGBA8.
|
/// Converts red, green, blue, and alpha components to packed RGBA8.
|
||||||
#define RGBA8(r,g,b,a) (((r)&0xff)|(((g)&0xff)<<8)|(((b)&0xff)<<16)|(((a)&0xff)<<24))
|
#define RGBA8(r,g,b,a) (((r)&0xff)|(((g)&0xff)<<8)|(((b)&0xff)<<16)|(((a)&0xff)<<24))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
Result nvgfxInitialize(void);
|
Result nvgfxInitialize(void);
|
||||||
void nvgfxExit(void);
|
void nvgfxExit(void);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u32 arch; // 0x120 (NVGPU_GPU_ARCH_GM200)
|
u32 arch; // 0x120 (NVGPU_GPU_ARCH_GM200)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/gfx/binder.h>
|
#include "gfx/binder.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u8 payload[0x400];
|
u8 payload[0x400];
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/arm.h>
|
#include "arm.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/kernel/svc.h>
|
#include "kernel/svc.h"
|
||||||
|
|
||||||
#define SFCI_MAGIC 0x49434653
|
#define SFCI_MAGIC 0x49434653
|
||||||
#define SFCO_MAGIC 0x4f434653
|
#define SFCO_MAGIC 0x4f434653
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
bool kernelAbove200(void);
|
bool kernelAbove200(void);
|
||||||
bool kernelAbove300(void);
|
bool kernelAbove300(void);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Copyright 2018 plutoo
|
// Copyright 2018 plutoo
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
JitType_CodeMemory,
|
JitType_CodeMemory,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <sys/lock.h>
|
#include <sys/lock.h>
|
||||||
#include <switch/types.h> // not needed in this file, still including it
|
#include "types.h" // not needed in this file, still including it
|
||||||
|
|
||||||
typedef _LOCK_T Mutex;
|
typedef _LOCK_T Mutex;
|
||||||
typedef _LOCK_RECURSIVE_T RMutex;
|
typedef _LOCK_RECURSIVE_T RMutex;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Copyright 2018 plutoo
|
// Copyright 2018 plutoo
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
void randomGet(u8* buf, size_t len);
|
void randomGet(u8* buf, size_t len);
|
||||||
u64 randomGet64(void);
|
u64 randomGet64(void);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Copyright 2018 plutoo
|
// Copyright 2018 plutoo
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/kernel/mutex.h>
|
#include "kernel/mutex.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
RMutex r;
|
RMutex r;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Handle handle;
|
Handle handle;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* @brief Syscall wrappers.
|
* @brief Syscall wrappers.
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
/// Pseudo handle for the current process
|
/// Pseudo handle for the current process
|
||||||
#define CUR_PROCESS_HANDLE 0xFFFF8001
|
#define CUR_PROCESS_HANDLE 0xFFFF8001
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Handle handle;
|
Handle handle;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Handle handle;
|
Handle handle;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
void* virtmemReserve(size_t size);
|
void* virtmemReserve(size_t size);
|
||||||
void virtmemFree(void* addr, size_t size);
|
void virtmemFree(void* addr, size_t size);
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* @brief Switch result code tools
|
* @brief Switch result code tools
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
/// Checks whether a result code indicates success.
|
/// Checks whether a result code indicates success.
|
||||||
#define R_SUCCEEDED(res) ((res)==0)
|
#define R_SUCCEEDED(res) ((res)==0)
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* @endcode
|
* @endcode
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
#define CONSOLE_ESC(x) "\x1b[" #x
|
#define CONSOLE_ESC(x) "\x1b[" #x
|
||||||
#define CONSOLE_RESET CONSOLE_ESC(0m)
|
#define CONSOLE_RESET CONSOLE_ESC(0m)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* @brief FS driver.
|
* @brief FS driver.
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/services/fs.h>
|
#include "services/fs.h"
|
||||||
|
|
||||||
//NOTE: This is currently not usable.
|
//NOTE: This is currently not usable.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
Result usbCommsInitialize(void);
|
Result usbCommsInitialize(void);
|
||||||
void usbCommsExit(void);
|
void usbCommsExit(void);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Copyright 2018 plutoo
|
// Copyright 2018 plutoo
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u32 Key;
|
u32 Key;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
/** Convert a UTF-8 sequence into a UTF-32 codepoint
|
/** Convert a UTF-8 sequence into a UTF-32 codepoint
|
||||||
*
|
*
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
Result accountInitialize(void);
|
Result accountInitialize(void);
|
||||||
void accountExit(void);
|
void accountExit(void);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
/// These are used internally by applet.
|
/// These are used internally by applet.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
AppletType_None = -2,
|
AppletType_None = -2,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/kernel/tmem.h>
|
#include "kernel/tmem.h"
|
||||||
|
|
||||||
struct bsd_sockaddr_in {
|
struct bsd_sockaddr_in {
|
||||||
u8 sin_len;
|
u8 sin_len;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
__attribute__((noreturn)) void fatalSimple(Result err);
|
__attribute__((noreturn)) void fatalSimple(Result err);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/services/sm.h>
|
#include "services/sm.h"
|
||||||
|
|
||||||
// We use wrapped handles for type safety.
|
// We use wrapped handles for type safety.
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/services/sm.h>
|
#include "services/sm.h"
|
||||||
|
|
||||||
// Begin enums and output structs
|
// Begin enums and output structs
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
NVSERVTYPE_Default = -1,
|
NVSERVTYPE_Default = -1,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
|
|
||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
Result pmdmntInitialize(void);
|
Result pmdmntInitialize(void);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/kernel/svc.h>
|
#include "kernel/svc.h"
|
||||||
#include <switch/ipc.h>
|
#include "ipc.h"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
ServiceType_Uninitialized,
|
ServiceType_Uninitialized,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/services/sm.h>
|
#include "services/sm.h"
|
||||||
|
|
||||||
/// usb:ds Switch-as-device<>host USB comms, see also here: http://switchbrew.org/index.php?title=USB_services
|
/// usb:ds Switch-as-device<>host USB comms, see also here: http://switchbrew.org/index.php?title=USB_services
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/services/sm.h>
|
#include "services/sm.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u64 display_id;
|
u64 display_id;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/ipc.h>
|
#include "ipc.h"
|
||||||
#include <switch/kernel/detect.h>
|
#include "kernel/detect.h"
|
||||||
#include <switch/gfx/binder.h>
|
#include "gfx/binder.h"
|
||||||
|
|
||||||
void binderCreateSession(Binder *session, Handle sessionHandle, s32 id)
|
void binderCreateSession(Binder *session, Handle sessionHandle, s32 id)
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/gfx/parcel.h>
|
#include "gfx/parcel.h"
|
||||||
#include <switch/gfx/buffer_producer.h>
|
#include "gfx/buffer_producer.h"
|
||||||
|
|
||||||
|
|
||||||
// This implements the version of Android IGraphicBufferProducer used by Switch.
|
// This implements the version of Android IGraphicBufferProducer used by Switch.
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/services/fatal.h>
|
#include "services/fatal.h"
|
||||||
#include <switch/services/vi.h>
|
#include "services/vi.h"
|
||||||
#include <switch/services/applet.h>
|
#include "services/applet.h"
|
||||||
#include <switch/services/nv.h>
|
#include "services/nv.h"
|
||||||
#include <switch/gfx/binder.h>
|
#include "gfx/binder.h"
|
||||||
#include <switch/gfx/buffer_producer.h>
|
#include "gfx/buffer_producer.h"
|
||||||
#include <switch/gfx/nvgfx.h>
|
#include "gfx/nvgfx.h"
|
||||||
#include <switch/gfx/gfx.h>
|
#include "gfx/gfx.h"
|
||||||
|
|
||||||
static bool g_gfxInitialized = 0;
|
static bool g_gfxInitialized = 0;
|
||||||
static ViDisplay g_gfxDisplay;
|
static ViDisplay g_gfxDisplay;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/services/nv.h>
|
#include "services/nv.h"
|
||||||
#include <switch/gfx/ioctl.h>
|
#include "gfx/ioctl.h"
|
||||||
#include <switch/gfx/nvioctl.h>
|
#include "gfx/nvioctl.h"
|
||||||
|
|
||||||
Result nvioctlChannel_SetNvmapFd(u32 fd, u32 nvmap_fd) {
|
Result nvioctlChannel_SetNvmapFd(u32 fd, u32 nvmap_fd) {
|
||||||
struct {
|
struct {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/services/nv.h>
|
#include "services/nv.h"
|
||||||
#include <switch/gfx/ioctl.h>
|
#include "gfx/ioctl.h"
|
||||||
#include <switch/gfx/nvioctl.h>
|
#include "gfx/nvioctl.h"
|
||||||
|
|
||||||
Result nvioctlNvhostAsGpu_BindChannel(u32 fd, u32 channel_fd) {
|
Result nvioctlNvhostAsGpu_BindChannel(u32 fd, u32 channel_fd) {
|
||||||
struct {
|
struct {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/services/nv.h>
|
#include "services/nv.h"
|
||||||
#include <switch/gfx/ioctl.h>
|
#include "gfx/ioctl.h"
|
||||||
#include <switch/gfx/nvioctl.h>
|
#include "gfx/nvioctl.h"
|
||||||
|
|
||||||
Result nvioctlNvhostCtrlGpu_ZCullGetCtxSize(u32 fd, u32 *out) {
|
Result nvioctlNvhostCtrlGpu_ZCullGetCtxSize(u32 fd, u32 *out) {
|
||||||
Result rc = 0;
|
Result rc = 0;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/services/nv.h>
|
#include "services/nv.h"
|
||||||
#include <switch/gfx/ioctl.h>
|
#include "gfx/ioctl.h"
|
||||||
#include <switch/gfx/nvioctl.h>
|
#include "gfx/nvioctl.h"
|
||||||
|
|
||||||
Result nvioctlNvhostCtrl_EventSignal(u32 fd, u32 event_id) {
|
Result nvioctlNvhostCtrl_EventSignal(u32 fd, u32 event_id) {
|
||||||
struct {
|
struct {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/services/nv.h>
|
#include "services/nv.h"
|
||||||
#include <switch/gfx/ioctl.h>
|
#include "gfx/ioctl.h"
|
||||||
#include <switch/gfx/nvioctl.h>
|
#include "gfx/nvioctl.h"
|
||||||
|
|
||||||
Result nvioctlNvmap_Create(u32 fd, u32 size, u32 *nvmap_handle) {
|
Result nvioctlNvmap_Create(u32 fd, u32 size, u32 *nvmap_handle) {
|
||||||
Result rc=0;
|
Result rc=0;
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/arm.h>
|
#include "arm.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/kernel/svc.h>
|
#include "kernel/svc.h"
|
||||||
#include <switch/services/nv.h>
|
#include "services/nv.h"
|
||||||
#include <switch/gfx/binder.h>
|
#include "gfx/binder.h"
|
||||||
#include <switch/gfx/buffer_producer.h>
|
#include "gfx/buffer_producer.h"
|
||||||
#include <switch/gfx/nvioctl.h>
|
#include "gfx/nvioctl.h"
|
||||||
#include <switch/gfx/nvgfx.h>
|
#include "gfx/nvgfx.h"
|
||||||
|
|
||||||
//#include "nvgfx_gpu_gpfifo_data0_bin.h"
|
//#include "nvgfx_gpu_gpfifo_data0_bin.h"
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/gfx/parcel.h>
|
#include "gfx/parcel.h"
|
||||||
|
|
||||||
//This implements Android Parcel, hence names etc here are based on Android Parcel.cpp.
|
//This implements Android Parcel, hence names etc here are based on Android Parcel.cpp.
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <switch/arm.h>
|
#include "arm.h"
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/kernel/thread.h>
|
#include "kernel/thread.h"
|
||||||
|
|
||||||
#define THREADVARS_MAGIC 0x21545624 // !TV$
|
#define THREADVARS_MAGIC 0x21545624 // !TV$
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/kernel/detect.h>
|
#include "kernel/detect.h"
|
||||||
#include <switch/kernel/svc.h>
|
#include "kernel/svc.h"
|
||||||
|
|
||||||
static bool g_IsAbove200;
|
static bool g_IsAbove200;
|
||||||
static bool g_IsAbove300;
|
static bool g_IsAbove300;
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
// Copyright 2018 plutoo
|
// Copyright 2018 plutoo
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/runtime/env.h>
|
#include "runtime/env.h"
|
||||||
#include <switch/kernel/svc.h>
|
#include "kernel/svc.h"
|
||||||
#include <switch/kernel/detect.h>
|
#include "kernel/detect.h"
|
||||||
#include <switch/kernel/virtmem.h>
|
#include "kernel/virtmem.h"
|
||||||
#include <switch/kernel/jit.h>
|
#include "kernel/jit.h"
|
||||||
|
|
||||||
Result jitCreate(Jit* j, size_t size)
|
Result jitCreate(Jit* j, size_t size)
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
#include <switch/kernel/svc.h>
|
#include "kernel/svc.h"
|
||||||
#include <switch/kernel/mutex.h>
|
#include "kernel/mutex.h"
|
||||||
#include "../internal.h"
|
#include "../internal.h"
|
||||||
|
|
||||||
#define HAS_LISTENERS 0x40000000
|
#define HAS_LISTENERS 0x40000000
|
||||||
|
@ -7,12 +7,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/services/fatal.h>
|
#include "services/fatal.h"
|
||||||
#include <switch/kernel/mutex.h>
|
#include "kernel/mutex.h"
|
||||||
#include <switch/kernel/svc.h>
|
#include "kernel/svc.h"
|
||||||
#include <switch/kernel/random.h>
|
#include "kernel/random.h"
|
||||||
|
|
||||||
#define ROTL32(x, n) (((x) << (n)) | ((x) >> (32-(n))))
|
#define ROTL32(x, n) (((x) << (n)) | ((x) >> (32-(n))))
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Copyright 2018 plutoo
|
// Copyright 2018 plutoo
|
||||||
#include <switch/kernel/mutex.h>
|
#include "kernel/mutex.h"
|
||||||
#include <switch/kernel/rwlock.h>
|
#include "kernel/rwlock.h"
|
||||||
|
|
||||||
void rwlockReadLock(RwLock* r) {
|
void rwlockReadLock(RwLock* r) {
|
||||||
rmutexLock(&r->r);
|
rmutexLock(&r->r);
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/kernel/svc.h>
|
#include "kernel/svc.h"
|
||||||
#include <switch/kernel/virtmem.h>
|
#include "kernel/virtmem.h"
|
||||||
#include <switch/kernel/shmem.h>
|
#include "kernel/shmem.h"
|
||||||
|
|
||||||
Result shmemCreate(SharedMemory* s, size_t size, Permission local_perm, Permission remote_perm)
|
Result shmemCreate(SharedMemory* s, size_t size, Permission local_perm, Permission remote_perm)
|
||||||
{
|
{
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/kernel/svc.h>
|
#include "kernel/svc.h"
|
||||||
#include <switch/kernel/virtmem.h>
|
#include "kernel/virtmem.h"
|
||||||
#include <switch/kernel/thread.h>
|
#include "kernel/thread.h"
|
||||||
#include "../internal.h"
|
#include "../internal.h"
|
||||||
|
|
||||||
extern const u8 __tdata_lma[];
|
extern const u8 __tdata_lma[];
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/kernel/svc.h>
|
#include "kernel/svc.h"
|
||||||
#include <switch/kernel/tmem.h>
|
#include "kernel/tmem.h"
|
||||||
#include <switch/kernel/virtmem.h>
|
#include "kernel/virtmem.h"
|
||||||
|
|
||||||
Result tmemCreate(TransferMemory* t, size_t size, Permission perm)
|
Result tmemCreate(TransferMemory* t, size_t size, Permission perm)
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/services/fatal.h>
|
#include "services/fatal.h"
|
||||||
#include <switch/kernel/detect.h>
|
#include "kernel/detect.h"
|
||||||
#include <switch/kernel/mutex.h>
|
#include "kernel/mutex.h"
|
||||||
#include <switch/kernel/svc.h>
|
#include "kernel/svc.h"
|
||||||
#include <switch/kernel/virtmem.h>
|
#include "kernel/virtmem.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u64 start;
|
u64 start;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/kernel/svc.h>
|
#include "kernel/svc.h"
|
||||||
|
|
||||||
// System globals we define here
|
// System globals we define here
|
||||||
int __system_argc;
|
int __system_argc;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/iosupport.h>
|
#include <sys/iosupport.h>
|
||||||
#include <switch/runtime/devices/console.h>
|
#include "runtime/devices/console.h"
|
||||||
#include <switch/kernel/svc.h>
|
#include "kernel/svc.h"
|
||||||
#include <switch/gfx/gfx.h>
|
#include "gfx/gfx.h"
|
||||||
|
|
||||||
#include "default_font_bin.h"
|
#include "default_font_bin.h"
|
||||||
|
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <switch/runtime/devices/fs_dev.h>
|
#include "runtime/devices/fs_dev.h"
|
||||||
#include <switch/runtime/util/utf.h>
|
#include "runtime/util/utf.h"
|
||||||
#include <switch/services/fs.h>
|
#include "services/fs.h"
|
||||||
|
|
||||||
|
|
||||||
/*! @internal
|
/*! @internal
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/services/fatal.h>
|
#include "services/fatal.h"
|
||||||
#include <switch/services/usb.h>
|
#include "services/usb.h"
|
||||||
#include <switch/runtime/devices/usb_comms.h>
|
#include "runtime/devices/usb_comms.h"
|
||||||
|
|
||||||
static bool g_usbCommsInitialized = false;
|
static bool g_usbCommsInitialized = false;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/services/fatal.h>
|
#include "services/fatal.h"
|
||||||
#include <elf.h>
|
#include <elf.h>
|
||||||
|
|
||||||
void __nx_dynamic(uintptr_t base, const Elf64_Dyn* dyn)
|
void __nx_dynamic(uintptr_t base, const Elf64_Dyn* dyn)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
// Copyright 2018 plutoo
|
// Copyright 2018 plutoo
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/runtime/env.h>
|
#include "runtime/env.h"
|
||||||
#include <switch/services/sm.h>
|
#include "services/sm.h"
|
||||||
#include <switch/services/fatal.h>
|
#include "services/fatal.h"
|
||||||
|
|
||||||
static bool g_isNso = false;
|
static bool g_isNso = false;
|
||||||
static Handle g_mainThreadHandle = INVALID_HANDLE;
|
static Handle g_mainThreadHandle = INVALID_HANDLE;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/runtime/env.h>
|
#include "runtime/env.h"
|
||||||
#include <switch/services/sm.h>
|
#include "services/sm.h"
|
||||||
#include <switch/services/fatal.h>
|
#include "services/fatal.h"
|
||||||
#include <switch/services/fs.h>
|
#include "services/fs.h"
|
||||||
#include <switch/services/hid.h>
|
#include "services/hid.h"
|
||||||
#include <switch/services/applet.h>
|
#include "services/applet.h"
|
||||||
|
|
||||||
|
|
||||||
void __nx_exit(int rc);
|
void __nx_exit(int rc);
|
||||||
|
@ -4,11 +4,11 @@
|
|||||||
#include <sys/lock.h>
|
#include <sys/lock.h>
|
||||||
#include <sys/reent.h>
|
#include <sys/reent.h>
|
||||||
#include "../internal.h"
|
#include "../internal.h"
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/runtime/env.h>
|
#include "runtime/env.h"
|
||||||
#include <switch/kernel/mutex.h>
|
#include "kernel/mutex.h"
|
||||||
#include <switch/services/fatal.h>
|
#include "services/fatal.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
|
|
||||||
void __attribute__((weak)) NORETURN __libnx_exit(int rc);
|
void __attribute__((weak)) NORETURN __libnx_exit(int rc);
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <switch/runtime/util/utf.h>
|
#include "runtime/util/utf.h"
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
decode_utf16(uint32_t *out,
|
decode_utf16(uint32_t *out,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <switch/runtime/util/utf.h>
|
#include "runtime/util/utf.h"
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
decode_utf8(uint32_t *out,
|
decode_utf8(uint32_t *out,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <switch/runtime/util/utf.h>
|
#include "runtime/util/utf.h"
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
encode_utf16(uint16_t *out,
|
encode_utf16(uint16_t *out,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <switch/runtime/util/utf.h>
|
#include "runtime/util/utf.h"
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
encode_utf8(uint8_t *out,
|
encode_utf8(uint8_t *out,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <switch/runtime/util/utf.h>
|
#include "runtime/util/utf.h"
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
utf16_to_utf32(uint32_t *out,
|
utf16_to_utf32(uint32_t *out,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <switch/runtime/util/utf.h>
|
#include "runtime/util/utf.h"
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
utf16_to_utf8(uint8_t *out,
|
utf16_to_utf8(uint8_t *out,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <switch/runtime/util/utf.h>
|
#include "runtime/util/utf.h"
|
||||||
|
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <switch/runtime/util/utf.h>
|
#include "runtime/util/utf.h"
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
utf32_to_utf8(uint8_t *out,
|
utf32_to_utf8(uint8_t *out,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <switch/runtime/util/utf.h>
|
#include "runtime/util/utf.h"
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
utf8_to_utf16(uint16_t *out,
|
utf8_to_utf16(uint16_t *out,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <switch/runtime/util/utf.h>
|
#include "runtime/util/utf.h"
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
utf8_to_utf32(uint32_t *out,
|
utf8_to_utf32(uint32_t *out,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/services/acc.h>
|
#include "services/acc.h"
|
||||||
#include <switch/services/sm.h>
|
#include "services/sm.h"
|
||||||
|
|
||||||
static Service g_accSrv;
|
static Service g_accSrv;
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/ipc.h>
|
#include "ipc.h"
|
||||||
#include <switch/services/apm.h>
|
#include "services/apm.h"
|
||||||
#include <switch/services/sm.h>
|
#include "services/sm.h"
|
||||||
|
|
||||||
static Service g_apmSrv;
|
static Service g_apmSrv;
|
||||||
static Service g_apmISession;
|
static Service g_apmISession;
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/ipc.h>
|
#include "ipc.h"
|
||||||
#include <switch/services/fatal.h>
|
#include "services/fatal.h"
|
||||||
#include <switch/services/applet.h>
|
#include "services/applet.h"
|
||||||
#include <switch/services/apm.h>
|
#include "services/apm.h"
|
||||||
#include <switch/services/sm.h>
|
#include "services/sm.h"
|
||||||
#include <switch/kernel/detect.h>
|
#include "kernel/detect.h"
|
||||||
|
|
||||||
__attribute__((weak)) u32 __nx_applet_type = AppletType_Default;
|
__attribute__((weak)) u32 __nx_applet_type = AppletType_Default;
|
||||||
__attribute__((weak)) bool __nx_applet_auto_notifyrunning = true;
|
__attribute__((weak)) bool __nx_applet_auto_notifyrunning = true;
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/ipc.h>
|
#include "ipc.h"
|
||||||
#include <switch/services/bsd.h>
|
#include "services/bsd.h"
|
||||||
#include <switch/services/sm.h>
|
#include "services/sm.h"
|
||||||
#include <switch/kernel/shmem.h>
|
#include "kernel/shmem.h"
|
||||||
#include <switch/kernel/rwlock.h>
|
#include "kernel/rwlock.h"
|
||||||
|
|
||||||
static Service g_bsdSrv;
|
static Service g_bsdSrv;
|
||||||
static Service g_bsdMonitor;
|
static Service g_bsdMonitor;
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/ipc.h>
|
#include "ipc.h"
|
||||||
#include <switch/services/fatal.h>
|
#include "services/fatal.h"
|
||||||
#include <switch/services/sm.h>
|
#include "services/sm.h"
|
||||||
#include <switch/kernel/detect.h>
|
#include "kernel/detect.h"
|
||||||
#include <switch/kernel/svc.h>
|
#include "kernel/svc.h"
|
||||||
|
|
||||||
void fatalSimple(Result err) {
|
void fatalSimple(Result err) {
|
||||||
Result rc = 0;
|
Result rc = 0;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/ipc.h>
|
#include "ipc.h"
|
||||||
#include <switch/services/fs.h>
|
#include "services/fs.h"
|
||||||
#include <switch/services/sm.h>
|
#include "services/sm.h"
|
||||||
|
|
||||||
static Service g_fsSrv;
|
static Service g_fsSrv;
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/ipc.h>
|
#include "ipc.h"
|
||||||
#include <switch/services/applet.h>
|
#include "services/applet.h"
|
||||||
#include <switch/services/hid.h>
|
#include "services/hid.h"
|
||||||
#include <switch/services/sm.h>
|
#include "services/sm.h"
|
||||||
#include <switch/kernel/shmem.h>
|
#include "kernel/shmem.h"
|
||||||
#include <switch/kernel/rwlock.h>
|
#include "kernel/rwlock.h"
|
||||||
|
|
||||||
static Service g_hidSrv;
|
static Service g_hidSrv;
|
||||||
static Service g_hidIAppletResource;
|
static Service g_hidIAppletResource;
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/ipc.h>
|
#include "ipc.h"
|
||||||
#include <switch/services/applet.h>
|
#include "services/applet.h"
|
||||||
#include <switch/gfx/ioctl.h>
|
#include "gfx/ioctl.h"
|
||||||
#include <switch/services/nv.h>
|
#include "services/nv.h"
|
||||||
#include <switch/services/sm.h>
|
#include "services/sm.h"
|
||||||
#include <switch/kernel/tmem.h>
|
#include "kernel/tmem.h"
|
||||||
|
|
||||||
static Service g_nvSrv;
|
static Service g_nvSrv;
|
||||||
static size_t g_nvIpcBufferSize = 0;
|
static size_t g_nvIpcBufferSize = 0;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/ipc.h>
|
#include "ipc.h"
|
||||||
#include <switch/services/pm.h>
|
#include "services/pm.h"
|
||||||
#include <switch/services/sm.h>
|
#include "services/sm.h"
|
||||||
|
|
||||||
static Service g_pmdmntSrv;
|
static Service g_pmdmntSrv;
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/ipc.h>
|
#include "ipc.h"
|
||||||
#include <switch/services/fatal.h>
|
#include "services/fatal.h"
|
||||||
#include <switch/services/sm.h>
|
#include "services/sm.h"
|
||||||
|
|
||||||
static Handle g_smHandle = INVALID_HANDLE;
|
static Handle g_smHandle = INVALID_HANDLE;
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/ipc.h>
|
#include "ipc.h"
|
||||||
#include <switch/kernel/detect.h>
|
#include "kernel/detect.h"
|
||||||
#include <switch/services/usb.h>
|
#include "services/usb.h"
|
||||||
#include <switch/services/sm.h>
|
#include "services/sm.h"
|
||||||
|
|
||||||
#define TOTAL_INTERFACES 4
|
#define TOTAL_INTERFACES 4
|
||||||
#define TOTAL_ENDPOINTS 15*2
|
#define TOTAL_ENDPOINTS 15*2
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <switch/types.h>
|
#include "types.h"
|
||||||
#include <switch/result.h>
|
#include "result.h"
|
||||||
#include <switch/ipc.h>
|
#include "ipc.h"
|
||||||
#include <switch/services/applet.h>
|
#include "services/applet.h"
|
||||||
#include <switch/services/vi.h>
|
#include "services/vi.h"
|
||||||
#include <switch/kernel/detect.h>
|
#include "kernel/detect.h"
|
||||||
|
|
||||||
static Service g_viSrv;
|
static Service g_viSrv;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user