summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-05-26 21:47:57 +0000
committermidipix <writeonce@midipix.org>2019-05-27 00:03:29 +0000
commit471bb043390d0995c847d01f1af89763bbee668f (patch)
treebb068f17349ba5bd987e8d91e2ebe38a827963b8 /src/driver
parent32e604c63f1f7e211c63cc900e77f5ef637c9eef (diff)
downloadntux-471bb043390d0995c847d01f1af89763bbee668f.tar.bz2
ntux-471bb043390d0995c847d01f1af89763bbee668f.tar.xz
framework: code against the newly added __xfi_xxx interfaces.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/ntux_driver_ctx.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/driver/ntux_driver_ctx.c b/src/driver/ntux_driver_ctx.c
index 370c69b..8445b3e 100644
--- a/src/driver/ntux_driver_ctx.c
+++ b/src/driver/ntux_driver_ctx.c
@@ -4,13 +4,14 @@
/* Released under GPLv2 and GPLv3; see COPYING.NTUX. */
/***********************************************************/
-#include <ntapi/ntapi.h>
-#include <psxscl/psxscl.h>
+#include <psxabi/sys_abitypes.h>
#include <psxabi/sys_fcntl.h>
+#include <psxscl/psxscl.h>
+
+#include <ntapi/nt_tty.h>
#include <stdint.h>
#include <ntux/ntux.h>
-#include "ntux_init_impl.h"
#include "ntux_nolibc_impl.h"
#define ARGV_DRIVER
@@ -27,9 +28,6 @@ static const nt_tty_affiliation tty_affiliation
__attr_section__(".midipix")
= NT_TTY_AFFILIATION_DEFAULT;
-/* ntapi accessor table */
-const ntapi_vtbl * ntux_ntapi;
-
/* ntux command names */
static const char * const ntux_cmd_name[NTUX_CMD_CAP] = {
[NTUX_CMD_STAT] = "stat",
@@ -309,10 +307,6 @@ int ntux_get_driver_ctx(
ARGV_MODE_SCAN,
0,0,0,0,0,0,0};
- /* init */
- if (ntux_init())
- return -1;
-
/* fdctx */
if (!fdctx) {
fdctx = &(const struct ntux_fd_ctx) {