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 \see dc/fs_dclsocket.h
18*/
19
20#ifndef __DC_FS_DCLOAD_H
21#define __DC_FS_DCLOAD_H
22
23/* Definitions for the "dcload" file system */
24
25#include <kos/cdefs.h>
26__BEGIN_DECLS
27
28#include <stdbool.h>
29#include <kos/fs.h>
30#include <kos/dbgio.h>
31
32/** \defgroup vfs_dcload PC
33 \brief VFS driver for accessing a remote PC via
34 DC-Load/Tool
35 \ingroup vfs
36
37 @{
38*/
39
40/* \cond */
41extern dbgio_handler_t dbgio_dcload;
42/* \endcond */
43
44/* dcload magic value */
45/** \brief The dcload magic value! */
46#define DCLOADMAGICVALUE 0xdeadbeef
47
48/** \brief The address of the dcload magic value */
49#define DCLOADMAGICADDR (unsigned int *)0x8c004004
50
51/* Are we using dc-load-serial or dc-load-ip? */
52#define DCLOAD_TYPE_NONE -1 /**< \brief No dcload connection */
53#define DCLOAD_TYPE_SER 0 /**< \brief dcload-serial connection */
54#define DCLOAD_TYPE_IP 1 /**< \brief dcload-ip connection */
55
56/** \brief What type of dcload connection do we have? */
57extern int dcload_type;
58
59/* \cond */
60
61/* Tests for the dcload syscall being present. */
62int syscall_dcload_detected(void);
63
64/* Init func */
65void fs_dcload_init_console(void);
66void fs_dcload_init(void);
67void fs_dcload_shutdown(void);
68
69/* \endcond */
70
71/** @} */
72
73__END_DECLS
74
75#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:39