mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
Make compilable
This commit is contained in:
parent
61ebd9ddfd
commit
b24f6babbb
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
9
nx/include/switch/nvidia/gpu/gpu.h
Normal file
9
nx/include/switch/nvidia/gpu/gpu.h
Normal file
@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
typedef struct {
|
||||
NvAddressSpace addr_space;
|
||||
NvChannel gpu_channel;
|
||||
} NvGpu;
|
||||
|
||||
Result nvgpuCreate(NvGpu* g);
|
||||
void nvgpuClose(NvGpu* g);
|
@ -68,7 +68,7 @@ Result binderInitSession(Binder* b, u32 unk0)
|
||||
return rc;
|
||||
}
|
||||
|
||||
void binderExitSession(Binder* b)
|
||||
void binderClose(Binder* b)
|
||||
{
|
||||
if (!b->created)
|
||||
return;
|
||||
|
@ -1,10 +1,5 @@
|
||||
#include <switch.h>
|
||||
|
||||
typedef struct {
|
||||
NvAddressSpace addr_space;
|
||||
NvChannel gpu_channel;
|
||||
} NvGpu;
|
||||
|
||||
Result nvgpuCreate(NvGpu* g)
|
||||
{
|
||||
Result rc;
|
||||
|
Loading…
Reference in New Issue
Block a user