Make compilable

This commit is contained in:
plutoo 2018-02-26 09:52:56 +01:00
parent 838b4e4873
commit 0b47a785e9
6 changed files with 10 additions and 7 deletions

View File

@ -24,7 +24,7 @@ VERSION := $(LIBNX_MAJOR).$(LIBNX_MINOR).$(LIBNX_PATCH)
#---------------------------------------------------------------------------------
TARGET := nx
#BUILD := build
SOURCES := source/arm source/runtime source/kernel source/runtime/devices source/services source/display source/nvidia source/nvidia/ioctl source/runtime/util/utf
SOURCES := source/arm source/kernel source/services source/display source/nvidia source/nvidia/gpu source/nvidia/ioctl source/runtime source/runtime/devices source/runtime/util/utf
DATA := data
INCLUDES := include

View File

@ -52,6 +52,7 @@ extern "C" {
#include "switch/nvidia/buffer.h"
#include "switch/nvidia/address_space.h"
#include "switch/nvidia/channel.h"
#include "switch/nvidia/gpu/gpu.h"
#include "switch/runtime/env.h"

View File

@ -0,0 +1,7 @@
typedef struct {
NvAddressSpace addr_space;
NvChannel gpu_channel;
} NvGpu;
Result nvgpuCreate(NvGpu* g);
void nvgpuClose(NvGpu* g);

View File

@ -68,7 +68,7 @@ Result binderInitSession(Binder* b, u32 unk0)
return rc;
}
void binderExitSession(Binder* b)
void binderClose(Binder* b)
{
if (!b->created)
return;

View File

@ -1,10 +1,5 @@
#include <switch.h>
typedef struct {
NvAddressSpace addr_space;
NvChannel gpu_channel;
} NvGpu;
Result nvgpuCreate(NvGpu* g)
{
Result rc;