Make compilable

This commit is contained in:
plutooo 2018-02-26 09:52:56 +01:00 committed by fincs
parent 61ebd9ddfd
commit b24f6babbb
6 changed files with 12 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/kernel source/services source/nvidia source/nvidia/ioctl source/display source/audio source/runtime source/runtime/devices source/runtime/util/utf
SOURCES := source/arm source/kernel source/services source/nvidia source/nvidia/ioctl source/nvidia/gpu source/display source/audio source/runtime source/runtime/devices source/runtime/util/utf
DATA := data
INCLUDES := include external/bsd/include

View File

@ -75,6 +75,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/audio/driver.h"

View File

@ -0,0 +1,9 @@
#pragma once
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;