mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +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
|
TARGET := nx
|
||||||
#BUILD := build
|
#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
|
DATA := data
|
||||||
INCLUDES := include external/bsd/include
|
INCLUDES := include external/bsd/include
|
||||||
|
|
||||||
|
@ -75,6 +75,7 @@ extern "C" {
|
|||||||
#include "switch/nvidia/buffer.h"
|
#include "switch/nvidia/buffer.h"
|
||||||
#include "switch/nvidia/address_space.h"
|
#include "switch/nvidia/address_space.h"
|
||||||
#include "switch/nvidia/channel.h"
|
#include "switch/nvidia/channel.h"
|
||||||
|
#include "switch/nvidia/gpu/gpu.h"
|
||||||
|
|
||||||
#include "switch/audio/driver.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;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
void binderExitSession(Binder* b)
|
void binderClose(Binder* b)
|
||||||
{
|
{
|
||||||
if (!b->created)
|
if (!b->created)
|
||||||
return;
|
return;
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
NvAddressSpace addr_space;
|
|
||||||
NvChannel gpu_channel;
|
|
||||||
} NvGpu;
|
|
||||||
|
|
||||||
Result nvgpuCreate(NvGpu* g)
|
Result nvgpuCreate(NvGpu* g)
|
||||||
{
|
{
|
||||||
Result rc;
|
Result rc;
|
||||||
|
Loading…
Reference in New Issue
Block a user