-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathasio_os.c
More file actions
executable file
·115 lines (83 loc) · 1.93 KB
/
Copy pathasio_os.c
File metadata and controls
executable file
·115 lines (83 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/* arsc_asio.c - soudcard functions for OS devices [DUMMY VERSION] */
#include "arscdev.h"
static int dio = 0; // device identifier offset
/***************************************************************************/
/* _ar_os_num_dev - return number of OS devices */
static long
_ar_os_num_dev()
{
int nd = 0;
return (nd);
}
/* _ar_os_dev_name - return name of I/O device */
static char *
_ar_os_dev_name(long di)
{
char *name = 0;
return (name);
}
/* _ar_os_close - close I/O device */
static void
_ar_os_close(long di)
{
}
/* _ar_os_open - open I/O device */
static long
_ar_os_open(long di)
{
long err = 0;
ARDEV *a;
a = _ardev[di];
return (err);
}
/* _ar_os_io_prepare - prepare device and buffers for I/O */
static long
_ar_os_io_prepare(long di)
{
ARDEV *a;
a = _ardev[di];
return (0);
}
/* _ar_os_xfer_seg - this segment is ready to go */
static long
_ar_os_xfer_seg(long di, long b)
{
return (0);
}
/* _ar_os_chk_seg - check for segment completion */
static long
_ar_os_chk_seg(long di, long b)
{
return (0);
}
/* _ar_os_io_start - start I/O */
static void
_ar_os_io_start(long di)
{
}
/* _ar_os_io_stop - stop I/O */
static void
_ar_os_io_stop(long di)
{
}
/* _ar_os_bind - bind OS functions */
long
_ar_os_bind(long ndt, long tnd)
{
long nd;
nd = _ar_os_num_dev();
if (nd > 0) {
_ardvt[ndt].num_dev = _ar_os_num_dev;
_ardvt[ndt].dev_name = _ar_os_dev_name;
_ardvt[ndt].io_stop = _ar_os_io_stop;
_ardvt[ndt].close = _ar_os_close;
_ardvt[ndt].open = _ar_os_open;
_ardvt[ndt].io_prepare = _ar_os_io_prepare;
_ardvt[ndt].io_start = _ar_os_io_start;
_ardvt[ndt].xfer_seg = _ar_os_xfer_seg;
_ardvt[ndt].chk_seg = _ar_os_chk_seg;
dio = tnd;
}
return (nd);
}
/**************************************************************************/