KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
ioctl.h
Go to the documentation of this file.
1/* KallistiOS ##version##
2
3 sys/ioctl.h
4 Copyright (C) 2024 Andress Barajas
5 Copyright (C) 2025 Ruslan Rostovtsev
6
7*/
8
9/** \file sys/ioctl.h
10 \brief Header for terminal control operations.
11 \ingroup vfs_posix
12
13 This file contains definitions for terminal control operations, as specified by
14 the POSIX standard. It includes necessary constants and macros for performing
15 various control operations on terminals using the ioctl system call.
16
17 \author Andress Barajas
18*/
19
20#ifndef __SYS_IOCTL_H
21#define __SYS_IOCTL_H
22
23#include <sys/cdefs.h>
24
25__BEGIN_DECLS
26
27#include <kos/fs.h>
28
29#ifndef IOCTL_FS_ROOTBUS_DMA_READY
30/** \brief This operation can determine that file system
31 * can read data directly into SPU and PVR RAM's thought the Root Bus
32 * and are all the conditions for this met like file position
33 * on sector boundary at first reading and DMA aligning for others,
34 * if the data stream was not interrupted by another request or seeking.
35 * You can also get current alignment requirement in the argument (use uint32_t).
36 */
37#define IOCTL_FS_ROOTBUS_DMA_READY 0x8001
38#endif
39
40/* Define ioctl as an alias for fs_ioctl */
41#define ioctl fs_ioctl
42
43__END_DECLS
44
45#endif /* __SYS_IOCTL_H */
Virtual filesystem support.