blob: 139a74b20d0c8826edbea0f2e50b8ee7b733c73f (
plain) (
blame)
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
116
|
--- src/gens/segacd/cd_aspi.c.orig
+++ src/gens/segacd/cd_aspi.c
@@ -8,6 +8,8 @@
#include "cd_aspi.h"
#include "mem_s68k.h"
+#ifdef linux
+
#define HIBYTE(x) x >> 8
#define LOBYTE(x) x & 0xff
void Sleep (int i);
@@ -760,3 +762,104 @@
CD_Present = 0;
}
+
+#else
+
+int CUR_DEV;
+int Num_CD_Drive;
+
+int
+ASPI_Close_Tray_CDD_cC_COMP (SRB_ExecSCSICmd * s)
+{
+ return -1;
+}
+
+int
+ASPI_End (void)
+{
+ return 1;
+}
+
+int
+ASPI_Fast_Seek_COMP (SRB_ExecSCSICmd * s)
+{
+ return 0;
+}
+
+void
+ASPI_Flush_Cache_CDC (void)
+{
+ return;
+}
+
+int
+ASPI_Init (void)
+{
+ Num_CD_Drive = 0;
+ return 0;
+}
+
+int
+ASPI_Lock (int flock)
+{
+ return 5;
+}
+
+int
+ASPI_Open_Tray_CDD_cD_COMP (SRB_ExecSCSICmd * s)
+{
+ return -1;
+}
+
+void
+ASPI_Read_One_LBA_CDC (void)
+{
+ return;
+}
+
+void
+ASPI_Reset_Drive (char *buf)
+{
+ return;
+}
+
+int
+ASPI_Seek (int pos, int async,
+ int (*PostProc) (struct tagSRB32_ExecSCSICmd *))
+{
+ return 5;
+}
+
+int
+ASPI_Seek_CDD_c4_COMP (SRB_ExecSCSICmd * s)
+{
+ return -1;
+}
+
+int
+ASPI_Star_Stop_Unit (int op,
+ int (*PostProc) (struct tagSRB32_ExecSCSICmd *))
+{
+ return 5;
+}
+
+int
+ASPI_Stop_CDD_c1_COMP (SRB_ExecSCSICmd * s)
+{
+ return 0;
+}
+
+int
+ASPI_Stop_Play_Scan (int async,
+ int (*PostProc) (struct tagSRB32_ExecSCSICmd *))
+{
+ return 5;
+}
+
+void
+Wait_Read_Complete (void)
+{
+ return;
+}
+
+#endif
|