KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
fs_dcload.h
Go to the documentation of this file.
1/* KallistiOS ##version##
2
3 kernel/arch/dreamcast/include/dc/fs_dcload.h
4 (c)2002 Andrew Kieschnick
5
6*/
7
8/** \file dc/fs_dcload.h
9 \brief Implementation of dcload "filesystem".
10 \ingroup vfs_dcload
11
12 This file contains declarations related to using dcload, both in its -ip and
13 -serial forms. This is only used for dcload-ip support if the internal
14 network stack is not initialized at start via KOS_INIT_FLAGS().
15
16 \author Andrew Kieschnick
17*/
18
19#ifndef __DC_FS_DCLOAD_H
20#define __DC_FS_DCLOAD_H
21
22/* Definitions for the "dcload" file system */
23
24#include <kos/cdefs.h>
25__BEGIN_DECLS
26
27#include <stdbool.h>
28#include <kos/fs.h>
29#include <kos/dbgio.h>
30
31/** \defgroup vfs_dcload PC
32 \brief VFS driver for accessing a remote PC via
33 DC-Load/Tool
34 \ingroup vfs
35
36 @{
37*/
38
39/* \cond */
40extern dbgio_handler_t dbgio_dcload;
41/* \endcond */
42
43/* dcload magic value */
44/** \brief The dcload magic value! */
45#define DCLOADMAGICVALUE 0xdeadbeef
46
47/** \brief The address of the dcload magic value */
48#define DCLOADMAGICADDR (unsigned int *)0x8c004004
49
50/* Are we using dc-load-serial or dc-load-ip? */
51#define DCLOAD_TYPE_NONE -1 /**< \brief No dcload connection */
52#define DCLOAD_TYPE_SER 0 /**< \brief dcload-serial connection */
53#define DCLOAD_TYPE_IP 1 /**< \brief dcload-ip connection */
54
55/** \brief What type of dcload connection do we have? */
56extern int dcload_type;
57
58/* \cond */
59
60/* Tests for the dcload syscall being present. */
61int syscall_dcload_detected(void);
62
63/* Init func */
64void fs_dcload_init_console(void);
65void fs_dcload_init(void);
66void fs_dcload_shutdown(void);
67
68/* \endcond */
69
70/** @} */
71
72__END_DECLS
73
74#endif /* __DC_FS_DCLOAD_H */
Various common macros used throughout the codebase.
Debug I/O.
Virtual filesystem support.
int dcload_type
What type of dcload connection do we have?
Debug I/O Interface.
Definition dbgio.h:42